Elegance

A deeplearning application of mobile photography

INFO

What is Elegance

elegance 是一个专门针对手机摄影手残党开发的一款深度学习应用,其目的是降低美图门槛,通过生成模型尽可能的完成一些基础视觉特效。目前已经支持:

特色:

Version

How to Use

目前Elegance只有命令行界面,视发展情况会决定是否开发GUI(毕竟对于我个人来说命令行够用了)

usage: elegance.py [-h] [--output OUTPUT] [-p [PARAMS [PARAMS ...]]]
                   [-split SPLIT] [-c] [-dir]
                   {demotion,denoise,sr} input

elegance

positional arguments:
  {demotion,denoise,sr}
                        the name of plugin you need to use
                        (options:['demotion', 'denoise', 'sr'])
  input                 the path of image you need to process

optional arguments:
  -h, --help            show this help message and exit
  --output OUTPUT       the path of image you processed(default=output.jpg)
  -p [PARAMS [PARAMS ...]], --params [PARAMS [PARAMS ...]]
                        the params of plugin
  -split SPLIT          the size of image need to split,like 256 default
                        np.inf
  -c, --combine         whether combine the origin image and processed image
  -dir                  whether dir the path your input

Example

与训练模型请到release tag上下载,只需放到对应的目录下即可

maxsize 参数 图片最大尺寸,超出该尺寸的图片会按比例规整到该尺寸下,默认为1380

Example

maxsize 参数 图片最大尺寸,超出该尺寸的图片会按比例规整到该尺寸下,默认为1380

Example

  1. up参数,将图片变大,可视为超分,理论上可无穷整数倍数放大,但为了性能考虑建议up <= 4,默认值为1

  2. maxsize 参数 图片最大尺寸,超出该尺寸的图片会按比例规整到该尺寸下,默认为1380

  3. blur 是否再进入神经网络前进行滤波处理,默认为None,可选值有g代表高斯模糊,m 代表中值模糊,r参数代表上述操作的核的半径,默认为5。,

Example:

Denpendent

TODO

资助作者给黄老板家里送钱(买GPU)

本项目会长期维护,捐款名单会周期更新,名字取支付宝ID的的最后一位,如郭靖和黄蓉,则是*蓉 捐款1元,谢谢各位朋友。

LICENSE

MIT