Comments (10)
We have not tried a smaller network. You may have a try, for example, with fewer RRDB blocks.
I think the performance may have a drop, but I cannot tell how large the drop is.
from real-esrgan.
Hi
I also trained a SRResNet model in the Real ESRGAN framework.
It's fast (around 50fps when upscaling 256x256 image by 4x) and the appearance of the upscaled image is not bad, though it has some weakness.
Please give it a try if someone needs lightweight model.
Model
https://huggingface.co/xiongjie/realtime-SRGAN-for-anime
Example
https://github.com/xiong-jie-y/ml-examples/tree/master/realtime_srgan_anime
Hugging Face Space (Running time in hugging face space is slow)
https://huggingface.co/spaces/xiongjie/realtime-SRGAN-for-anime-example
This is the model paramater for someone who want to train the same model.
network_g:
type: MSRResNet
num_in_ch: 3
num_out_ch: 3
num_feat: 32
num_block: 6
from real-esrgan.
@jorjiang
Hi
Thank you!
do you only train the models on anime images, is it possible to achieve good results with the real photo when I train on real photos
I trained the models on only anime images. I tried training another models with real images for 12 hours, but it seems more difficult than anime images because output is really smooth. 😢
How exactly did you manage to shrink the model, do you just use a smaller model and train it from scratch or did you used some techniques such as knowledge distillation
I just used a smaller model for anime model and followed a training procedure in Raal ESRGAN repository.
from real-esrgan.
I am not satisfied 😏😏😏
from real-esrgan.
For the anime model, we use a much smaller model, which has about 4,467,779 parameters (~25%). It can achieve similar performance. https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth
For general images, we have also tried a smaller network and has a slight performance drop.
We are also developing much smaller models with comparable performance. Will release when they are ready :-)
from real-esrgan.
Thanks for the reply, I am also trying to train a small model. The data degradation of the scene I faced is not very serious, so I am trying to weaken the degradation process to train a small model. However, a suitable parameter has not yet been adjusted. Do you have any suggestions for degraded parameter modification?
from real-esrgan.
You can tune the hyper-parameters by looking at the generated degraded images.
I think the generated images should look like the real images as much as possible, especially the degradations.
from real-esrgan.
Hi
I trained a smaller RRDBNet model with these hyper parameters.
network_g:
type: RRDBNet
num_in_ch: 3
num_out_ch: 3
num_feat: 32
num_block: 3
num_grow_ch: 32
If someone needs it, please give it a try :D
I'm considering to improve this model more in near future.
from real-esrgan.
Hi
I also trained a SRResNet model in the Real ESRGAN framework. It's fast (around 50fps when upscaling 256x256 image by 4x) and the appearance of the upscaled image is not bad, though it has some weakness. Please give it a try if someone needs lightweight model.
Model https://huggingface.co/xiongjie/realtime-SRGAN-for-anime Example https://github.com/xiong-jie-y/ml-examples/tree/master/realtime_srgan_anime Hugging Face Space (Running time in hugging face space is slow) https://huggingface.co/spaces/xiongjie/realtime-SRGAN-for-anime-example
This is the model paramater for someone who want to train the same model.
network_g: type: MSRResNet num_in_ch: 3 num_out_ch: 3 num_feat: 32 num_block: 6
very cool, but I feel the result works very good on anime but overtly smooth on real photos
may I ask a few questions:
- do you only train the models on anime images, is it possible to achieve good results with the real photo when I train on real photos
- How exactly did you manage to shrink the model, do you just use a smaller model and train it from scratch or did you used some techniques such as knowledge distillation
from real-esrgan.
Hi
I also trained a SRResNet model in the Real ESRGAN framework. It's fast (around 50fps when upscaling 256x256 image by 4x) and the appearance of the upscaled image is not bad, though it has some weakness. Please give it a try if someone needs lightweight model.
Model https://huggingface.co/xiongjie/realtime-SRGAN-for-anime Example https://github.com/xiong-jie-y/ml-examples/tree/master/realtime_srgan_anime Hugging Face Space (Running time in hugging face space is slow) https://huggingface.co/spaces/xiongjie/realtime-SRGAN-for-anime-example
This is the model paramater for someone who want to train the same model.
network_g: type: MSRResNet num_in_ch: 3 num_out_ch: 3 num_feat: 32 num_block: 6
I use smaller models trained on real data, and as the number of iterations increases, the value of PSNR gets smaller and smaller.The results of the tests were also poor.
from real-esrgan.
Related Issues (20)
- funky result HOT 2
- Trying to use AMF for FFMPEG
- ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' HOT 7
- 使用RMSprop优化器问题
- ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' HOT 8
- 关于用自己第一次训练好的模型,再用新的数据继续迭代训练的问题 HOT 2
- Colab started failing HOT 2
- 请问该项目支持模型的增量学习吗?
- how to use HOT 5
- Request the YML file of (realesr-general-x4v3.pth) HOT 1
- vkQueueSubmit failed -4 (Error)
- OST: https://openmmlab.oss-cn-hangzhou.aliyuncs.com/datasets/OST_dataset.zip无法下载了 HOT 3
- 训练数据集是jpg格式,退化过程还需采取jpeg压缩吗
- ModuleNotFoundError HOT 3
- 模型训练时不使用gpu HOT 2
- UserWarning:The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
- How to train the model with double gpu? HOT 2
- Can someone make a simple exe for CPU users? HOT 2
- ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' HOT 2
- 一些评价及建议 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from real-esrgan.