question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to train the model for x8 scale?

See original GitHub issue

Thanks for creating this repo and very helpful blog post. I tried inference x2 and x4 of EDSR model and it is good. I’m changing source code to train for x8 model. In the upsampling method of model/edsr.py, I change it like this Screen Shot 2019-10-30 at 10 28 39 The training code of x8 run for 10000 step but the PSNR is just around 15. How should I update the EDSR training code for x8? Thanks in advance.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
krassermcommented, Oct 31, 2019

I’d expect it is able to learn that to some extend.

1reaction
krassermcommented, Oct 31, 2019

I fixed this issue by resizing the upscaled image to be the same shape as HR image.

A proper solution would be to center-crop the HR image, using the SR image size as crop window. Resizing recomputes all pixel values via (bilinear, bicubic, …) interpolation which may explain the low PSNR values you see during validation.

About reusing weights of lower factors, layers have to be named consistently so that weights from lower resolution models can be loaded

Exactly, this must be done for all model implementations. What you proposed for up-sampling looks good to me (didn’t see the “wrong” names in your first proposal).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fine-tuning at x8 up-sampling · Issue #233 - GitHub
Hello, The general image up-sampling model RealESRGAN_x4plus is doing a good job and it makes fine-tuning rather easy.
Read more >
Scale & Gauge - cs.wisc.edu
Scale is something you see with model railroads, it is the proportion or fraction of size of the real or prototype.
Read more >
100 4x8 HO Layouts ideas in 2022 | model railway track plans ...
Dec 19, 2022 - Explore Ron's board "4x8 HO Layouts" on Pinterest. See more ideas about model railway track plans, model train layouts,...
Read more >
5 Remarkable N Scale Layouts 4x8 - Model Train Books
4'x8′ layouts provide more versatility to construct more realistic prototypes and can provide enough room for scenic views as well. Continue reading and...
Read more >
How (Not) To Scale Deep Learning in 6 Easy Steps - Databricks
That process does, however, require training lots of models in a ... When increasing the batch size by 8x, it's typically advisable to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found