Code Monkey home page Code Monkey logo

Comments (4)

Phhofm avatar Phhofm commented on July 22, 2024 1

Just to add to the understanding (its whats already written here, just re-stated): net_d has nothing to do with the network.

Since you listed SPAN and SAFMN, it doesnt matter, you could list all of them here (ATD, SRFormer, HAT, SwinIR, ESRGAN, etc) or not a single one. It is more coupled to a loss, gan loss, not a network.
So none of those require a net_d. All of them can use it. Its not the network. (im just stating my points in the extreme to make it more clear)

An official pretrain almost never has a net_d because in most cases they are trained with pixel loss only on bicubic downsampled dataset like div2k or df2k. Thats what you will most likely find in papers or in official github repositories. Unless they release a real world model where they use the Real-ESRGAN degradation pipeline or something similiar, where they add noise, blur, compression to the dataset so the model can deal with those.

If you want to see a manual example of this you can have a look at my 4xNomosWebPhoto Dataset PDF where I showed how I created it, it is also attached in the release of my 4xNomosWebPhoto_realplksr model.

Hm maybe not the best example but you could have a look at what I used for my SPAN pretrains since I included the config files in the attachements where I basically deactivated any loss except pixel (or mssim) and ran on a downsampled-only lr.

Maybe this helps a bit, simply wanted to add to the already answers here.

from neosr.

muslll avatar muslll commented on July 22, 2024

Hi, glad you got it working.
About GAN and discriminator: it works regardless of the network. GAN is usually applied to real-world SISR to push the network to generate more perceptually pleasant images. The default configurations on neosr of all networks targets the best real-world SISR practices, so in all of them GAN is enabled. Neosr also supports different kinds of discriminators that you can try out. Unet-SN is standard, but a2fpn also works pretty well (sometimes even better, depending on your dataset and LQ degradations).

from neosr.

seanko29 avatar seanko29 commented on July 22, 2024

So, if I understood your reply correctly,
Q1. discriminators in neosr boost real world SISR and does it work independently from the generator network?
Q2. If I am looking at more research-focused SR, is it perfectly fine to turn-off the discriminator setting first during my experiments?

Thank you.

from neosr.

muslll avatar muslll commented on July 22, 2024

Yes to both Q1 and Q2. About Q2: usually when training from scratch (no pretrained network), you should disable GAN and train with only pixel_opt or mssim_opt first. GAN is only used after you have a stable model.

from neosr.

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.