NCNN 实现了 Real-ESRGAN。Real-ESRGAN 的目标是开发用于一般图像恢复的实用算法。
NCNN 实现了 Real-ESRGAN。Real-ESRGAN 的目标是开发用于一般图像恢复的实用算法。
## :hourglass_flowing_sand: TODO List - [ ] Support further cheap arbitrary resize (*e.g.*, bicubic, bilinear) for the model outputs - [ ] Bug: Some PCs will output black images - [ ] Add the guidance for ncnn model conversion - [ ] Support face restoration - GFPGAN ## :computer: Usages ### Example Command ```shell realesrgan-ncnn-vulkan.exe -i input.jpg -o output.png -n realesr-animevideov3 -s 2 ``` ### Full Usages ``` … ``` - `input-path` and `output-path` accept either file path or directory path - `scale` = scale level - `tile-size` = tile size, use smaller value to reduce GPU memory usage, default selects automatically - `load:proc:save` = thread count for the three stages (image decoding + model upscaling + image encoding), using larger values may increase GPU usage and consume more GPU memory. You can tune this configuration with "4:4:4" for many small-size images, and "2:2:2" for large-size images. The default setting usually works fine for most situations. If you find that your GPU is hungry, try increasing thread count to achieve faster processing. - `format` = the format of the image to be output, png is better supported, however webp generally yields smaller file sizes, both are losslessly encoded If you encounter crash or error, try to upgrade your GPU driver - Intel: https://downloadcenter.intel.com/product/80939/Graphics-Drivers - AMD: https://www.amd.com/en/support - NVIDIA: https://www.nvidia.com/Download/index.aspx ## :earth_asia: Other Open-Source Code Used - https://github.com/Tencent/ncnn for fast neural network inference on ALL PLATFORMS - https://github.com/webmproject/libwebp for encoding and decoding Webp images on ALL PLATFORMS - https://github.com/nothings/stb for decoding and encoding image on Linux / MacOS - https://github.com/tronkko/dirent for listing files in directory on Windows ## :scroll: BibTeX @InProceedings{wang2021realesrgan, author = {Xintao Wang and Liangbin Xie and Chao Dong and Ying Shan}, title = {Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data}, booktitle = {International Conference on Computer Vision Workshops (ICCVW)}, date = {2021} } ## :e-mail: Contact If you have any question, please email `[email protected]` or `[email protected]`.
暂无开放 Issues,或尚未同步最近议题。