Coder Social home page Coder Social logo

Comments (7)

nagadomi avatar nagadomi commented on July 23, 2024

Use --validation_rate 0.17 option.
number of validation images = validation_rate * number_training_images.
validation_rate is 0.05 by default. (int(0.05 * 6) = 0, no validation image)

I think training on 6 images is unreasonable.
If you want to use photo model, you can use models/ukbench or models/photo.

th waifu2x.lua -model_dir models/ukbench -m scale -i input_image.png -o output.png

when you use photo branch,

th waifu2x.lua -model_dir models/photo -m scale -i input_image.png -o output.png

models/ukbench was trained on the ukbench dataset (It contains 10000 small photo). models/photo was trained on 5000 high-resolution raw photograph. Denoising is not supported (work in progress).

from waifu2x.

bmaltais avatar bmaltais commented on July 23, 2024

Cool, thank you!

from waifu2x.

bmaltais avatar bmaltais commented on July 23, 2024

I did a test run from 19 source pictures I use on and off as texture using a scale of 4 and I am amazed at how good the scaling work. I think running it on a small set work well as long as the same source of info was used to create the original that need scaling.

Can I keep adding pictures to the model or is it that once you are done making it you have to start from scratch? For example, if I add a new picture to my set, do I need to run learning against the 20 images or can I only run it against the 1 new to add the data to the model?

from waifu2x.

nagadomi avatar nagadomi commented on July 23, 2024

I think self-similarity based approach(e.g. SelfExSR) is better for your use case.
And single image super-resolution has its limit.

from waifu2x.

bmaltais avatar bmaltais commented on July 23, 2024

Interesting. I will have to get a matlab trial to give it a try. Too bad there is no free matlab starter version for testing purpose. I don't feel like buying the software just to play around and figure out if it work.

Based on how it is trained and what it does this should produce stellar resolution increase for what I intend to do... but perhaps not. Maybe your neural solution work best. Only testing would validate this.

from waifu2x.

bmaltais avatar bmaltais commented on July 23, 2024

Also, how should I set the following values since I use hi-res input images:

-max_size
-crop_size

from waifu2x.

nagadomi avatar nagadomi commented on July 23, 2024

-max_size and -crop_size are not need to change.
If your dataset is very small (less than 100), I recommend following option,

-random_half_rate 0.5 -random_color_noise_rate 0.5 -patches 1024 -epoch 200

But maybe it will overfit.

from waifu2x.

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.