GithubHelp home page GithubHelp logo

Comments (10)

xinntao avatar xinntao commented on May 7, 2024 1

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.

xiong-jie-y avatar xiong-jie-y commented on May 7, 2024 1

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.

xiong-jie-y avatar xiong-jie-y commented on May 7, 2024 1

@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.

Ibrahimmughal47 avatar Ibrahimmughal47 commented on May 7, 2024

I am not satisfied 😏😏😏

from real-esrgan.

xinntao avatar xinntao commented on May 7, 2024

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.

zdyshine avatar zdyshine commented on May 7, 2024

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.

xinntao avatar xinntao commented on May 7, 2024

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.

xiong-jie-y avatar xiong-jie-y commented on May 7, 2024

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.

jorjiang avatar jorjiang commented on May 7, 2024

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:

  1. 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
  2. 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.

sunyclj avatar sunyclj commented on May 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.