Coder Social home page Coder Social logo

Training questions about waifu2x HOT 11 OPEN

nagadomi avatar nagadomi commented on June 25, 2024
Training questions

from waifu2x.

Comments (11)

nagadomi avatar nagadomi commented on June 25, 2024

training step runs #200 epochs by default.

from waifu2x.

an-electric-sheep avatar an-electric-sheep commented on June 25, 2024

Another question about training: does the batch_size make any quality difference or is it just for performance tuning?

from waifu2x.

nagadomi avatar nagadomi commented on June 25, 2024

In waifu2x, computing performance mostly not influenced by batch_size (but slow performance when batch_size=1).
I recommend small batch_size (2~4).
small batch_size: low memory usage. fast convergence. reducing over tting.

NOTICE: waifu2x is using Adam for CNN training (http://arxiv.org/abs/1412.6980)

from waifu2x.

drdaxxy avatar drdaxxy commented on June 25, 2024

I have another question: how long did the entire training process take for your training set?

from waifu2x.

nagadomi avatar nagadomi commented on June 25, 2024

2x scaling model: 16 hours
Noise reduction model: 28 hours * 2
Total: around 72 hours
(on GTX760, 3000 images)

from waifu2x.

c0d3rman avatar c0d3rman commented on June 25, 2024

The facts brought up here (how long training takes, batch size recommendation, epochs to training end) should be added to the documentation - they would be EXTREMELY useful to someone like me trying to train their own model.

from waifu2x.

djdjoko avatar djdjoko commented on June 25, 2024

Could you please let me know how many iterations did you train it for? Also did you use all the current default settings when training your anime model?

from waifu2x.

nagadomi avatar nagadomi commented on June 25, 2024

See https://github.com/nagadomi/waifu2x/blob/master/train.sh
The default setting is defined at https://github.com/nagadomi/waifu2x/blob/master/lib/settings.lua
I was used 3000 images for training.

And I'm currently running the traning script for the next version using dev branch code and 6000 images.

from waifu2x.

djdjoko avatar djdjoko commented on June 25, 2024

Thanks! Could you share what the next version is and what the differences are?

from waifu2x.

nagadomi avatar nagadomi commented on June 25, 2024

I released new version yesterday.
Summary of difference in training script:

  • Add data compression method for on-memory image (reducing memory usage for dataset)
  • Change loss function (MSE to Customized Huber Loss)
  • Improve some image processing functions
  • Add some data augmentation methods
  • Tuning default parameters
  • Improve code readability
  • Improve training time (4x~ faster)

Sorry, my english skill is very poor. Please refer the code for more details.

from waifu2x.

djdjoko avatar djdjoko commented on June 25, 2024

I would like to ask you a hypothetical question. If I have only one specific type of image I want to scale up, would it be possible to train the algorithm only on one perfect image with maximum resolution?

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.