Coder Social home page Coder Social logo

Training - How does it work? about waifu2x HOT 5 CLOSED

nagadomi avatar nagadomi commented on July 23, 2024
Training - How does it work?

from waifu2x.

Comments (5)

nagadomi avatar nagadomi commented on July 23, 2024
  1. replace "Box" filter with "Blackman" filter ( https://github.com/nagadomi/waifu2x/search?utf8=%E2%9C%93&q=Box)
  2. remove scale%2 == 0 assertion from code ( https://github.com/nagadomi/waifu2x/blob/master/lib/settings.lua#L46 )
  3. train your own model
th train.lua -method scale -scale 2.26218461
# and 2.26218461 scaling
th waifu2x.lua -m scale -scale 2.26218461 -i input.png -o output.png

It might work. but I have not tested it.
In my experiment, Box filter + 2x scaling gives me best 2x quality but Box filter does not support 3x and 2.26218461x scaling (it can but poor quality case).

from waifu2x.

Zotikus1001 avatar Zotikus1001 commented on July 23, 2024

I'm experimenting 2.25x scaling.. I only removed the lock on the mod 2..
I'll try later with the blackman filter.. and compare..

Now a cool and amazing feature would be to be able to gradually train it..
Like, train it with 100 images today, tomorrow another 100 different images, and so on..
I realize that will not be as easy, but it would be very beneficial..

Also maybe a bug, or maybe its my system's fault..
When converting data, it will increase the RAM usage to full. then it will start using the SWAP.. And also fill it up to max, after that everything just freezes in time..

I only have 8GB RAM, 3.8GB SWAP..
This was with 1500 images..

Should I increase the SWAP memory?
Or what do you have on your system?

from waifu2x.

nagadomi avatar nagadomi commented on July 23, 2024

convert_data.lua and train.lua require lots of RAM(16GB~32GB). The code is not efficient. loading all uncompressed image to the RAM.
I have 32GB RAM.

from waifu2x.

Zotikus1001 avatar Zotikus1001 commented on July 23, 2024

But if I add 30 GB to the SWAP, maybe I can still do it.. Right?

from waifu2x.

nagadomi avatar nagadomi commented on July 23, 2024

Probably very slow.

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.