replicate/cog-real-esrgan
Python
Captured source
source ↗replicate/cog-real-esrgan
Description: Cog implementation of Real-ESRGAN
Language: Python
License: BSD-3-Clause
Stars: 3
Forks: 2
Open issues: 0
Created: 2024-07-23T04:53:15Z
Pushed: 2024-09-05T19:52:13Z
Default branch: main
Fork: no
Archived: no
README:
##
🔥 AnimeVideo-v3 model (动漫视频小模型). Please see [[*anime video models*](docs/anime_video_model.md)] and [[*comparisons*](docs/anime_comparisons.md)]
🔥 RealESRGAN_x4plus_anime_6B for anime images (动漫插图模型). Please see [[*anime_model*](docs/anime_model.md)]
1. Portable Windows / Linux / MacOS executable files for Intel/AMD/Nvidia GPU. You can find more information [here](#portable-executable-files-ncnn). The ncnn implementation is in Real-ESRGAN-ncnn-vulkan
Real-ESRGAN aims at developing Practical Algorithms for General Image/Video Restoration.
We extend the powerful ESRGAN to a practical restoration application (namely, Real-ESRGAN), which is trained with pure synthetic data.
🌌 Thanks for your valuable feedbacks/suggestions. All the feedbacks are updated in [feedback.md](docs/feedback.md).
---
If Real-ESRGAN is helpful, please help to ⭐ this repo or recommend it to your friends 😊
Other recommended projects:
▶️ GFPGAN: A practical algorithm for real-world face restoration
▶️ BasicSR: An open-source image and video restoration toolbox
▶️ facexlib: A collection that provides useful face-relation functions.
▶️ HandyView: A PyQt5-based image viewer that is handy for view and comparison
▶️ HandyFigure: Open source of paper figures
---
📖 Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data
> [Paper]   [YouTube Video]   [B站讲解]   [Poster]   [PPT slides]
> Xintao Wang, Liangbin Xie, Chao Dong, Ying Shan
> Tencent ARC Lab; Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences
---
🚩 Updates
- ✅ Add the realesr-general-x4v3 model - a tiny small model for general scenes. It also supports the -dn option to balance the noise (avoiding over-smooth results). -dn is short for denoising strength.
- ✅ Update the RealESRGAN AnimeVideo-v3 model. Please see [anime video models](docs/anime_video_model.md) and [comparisons](docs/anime_comparisons.md) for more details.
- ✅ Add small models for anime videos. More details are in [anime video models](docs/anime_video_model.md).
- ✅ Add the ncnn implementation Real-ESRGAN-ncnn-vulkan.
- ✅ Add *RealESRGAN_x4plus_anime_6B.pth*, which is optimized for anime images with much smaller model size. More details and comparisons with waifu2x are in [anime_model.md](docs/anime_model.md)
- ✅ Support finetuning on your own data or paired data (*i.e.*, finetuning ESRGAN). See [here](docs/Training.md#Finetune-Real-ESRGAN-on-your-own-dataset)
- ✅ Integrate GFPGAN to support face enhancement.
- ✅ Integrated to Huggingface Spaces with Gradio. See Gradio Web Demo. Thanks @AK391
- ✅ Support arbitrary scale with
--outscale(It actually further resizes outputs withLANCZOS4). Add *RealESRGAN_x2plus.pth* model. - ✅ [The inference code](inference_realesrgan.py) supports: 1) tile options; 2) images with alpha channel; 3) gray images; 4) 16-bit images.
- ✅ The training codes have been released. A detailed guide can be found in [Training.md](docs/Training.md).
---
👀 Demos Videos
Bilibili
YouTube
🔧 Dependencies and Installation
- Python >= 3.7 (Recommend to use Anaconda or Miniconda)
- PyTorch >= 1.7
Installation
1. Clone repo
git clone https://github.com/xinntao/Real-ESRGAN.git cd Real-ESRGAN
1. Install dependent packages
# Install basicsr - https://github.com/xinntao/BasicSR # We use BasicSR for both training and inference pip install basicsr # facexlib and gfpgan are for face enhancement pip install facexlib pip install gfpgan pip install -r requirements.txt python setup.py develop
---
⚡ Quick Inference
There are usually three ways to inference Real-ESRGAN.
1. [Online inference](#online-inference) 1. [Portable executable files (NCNN)](#portable-executable-files-ncnn) 1. [Python script](#python-script)
Online inference
1. You can try in our website: ARC Demo (now only support RealESRGAN_x4plus_anime_6B) 1. Colab Demo for Real-ESRGAN | Colab Demo for Real-ESRGAN (anime videos).
Portable executable files (NCNN)
You can download…
Excerpt shown — open the source for the full document.
Notability
notability 2.0/10Low traction routine repo