1
0
Fork 0
mirror of synced 2024-05-19 20:32:22 +12:00
Commit graph

46 commits

Author SHA1 Message Date
nagadomi 64cd0959df Update waifu2x.lua, default model=cunet/art 2018-11-14 17:41:20 +09:00
nagadomi 581c27a2cb Change the default crop_size from 128 to 256 2018-11-09 17:47:17 +09:00
nagadomi 20abbbc68e Support for binary model file 2018-10-03 18:42:05 +09:00
nagadomi 6ba6cfe1ff Fix gpu option 2017-04-01 03:55:09 +09:00
nagadomi 50fd999c38 Add -gpu option 2016-10-18 19:54:00 +09:00
nagadomi 0e93848984 Add error message for image loading error #133 2016-07-26 18:54:32 +09:00
nagadomi be67a4e001 Fix a bug that the alpha channel is upscaled by noise_scale model 2016-07-14 23:38:04 +09:00
nagadomi edac608f18 Add support for user specified pairwise data for universal filter 2016-07-05 02:42:40 +09:00
nagadomi 416f9f2b40 Add -q (quiet) option to waifu2x.lua 2016-06-17 16:09:17 +09:00
nagadomi af74a67bd1 Add -force_cudnn option; support for cuDNN in waifu2x.lua/web.lua 2016-06-12 16:33:50 +09:00
nagadomi 599da6a665 refactor 2016-06-12 15:56:44 +09:00
nagadomi 01b2e6d441 Remove -upsampling_filter option 2016-06-10 07:34:11 +09:00
nagadomi afac4b52ab Add -batch_size option to waifu2x.lua/web.lua 2016-06-09 14:03:18 +09:00
nagadomi 0b949c05a7 Add support for TTA level 2016-06-09 13:09:28 +09:00
nagadomi 37bc7a5eea Add support for new noise_scale method 2016-06-08 09:32:27 +09:00
nagadomi abae4cb855 Fix processing time 2016-06-02 10:13:07 +09:00
nagadomi a210090033 Convert model files; Add new pretrained model
- Add new pretrained model to ./models/upconv_7
- Move old models to ./models/vgg_7
- Use nn.LeakyReLU instead of w2nn.LeakyReLU
- Add useful attribute to .json

New JSON attribute:
The first layer has `model_config` attribute.
It contains:
  model_arch: architecture name of model. see `lib/srcnn.lua`
  scale_factor: if scale_factor > 1, model:forward() changes image resolution with scale_factor.
  channels: input/output channels. if channels == 3, model is RGB model.
  offset: pixel size that is to be removed from output.
          for example:
            (scale_factor=1, offset=7, input=100x100) => output=(100-7)x(100-7)
            (scale_factor=2, offset=12, input=100x100) => output=(100*2-12)x(100*2-12)
And each layer has `class_name` attribute.
2016-05-15 03:04:08 +09:00
nagadomi 1464b0db3e Improve output file format
supported format variable:
  %s: basename of the source filename
  %d: sequence number

example:
   output/2x/%s.png
   output/%d.png
   output/%06d_%s.png
   output/%s_%d.png
2016-04-23 12:44:40 +09:00
nagadomi 3a27e122ac Add support for grayscale output 2016-04-15 13:29:50 +09:00
nagadomi fbad30c031 Fix embed gamma handling 2016-04-15 09:13:37 +09:00
nagadomi 30fe5db735 Add upsampling_filter option 2016-04-02 22:03:27 +09:00
nagadomi 86ad50f7cd Merge branch 'master' of github.com:nagadomi/waifu2x into dev 2016-03-21 03:59:17 +09:00
nagadomi 57e0f52b41 Reduce memory usage 2016-03-21 03:42:47 +09:00
nagadomi 8a799e2d56 Add support for noise level 3 2016-03-18 15:47:53 +09:00
nagadomi c4df6f11f4 Fix error in video conversion 2015-12-05 02:13:32 +09:00
nagadomi d2c081bbcf Improve alpha channel handling #29
- make border
- scale the alpha channel by waifu2x
- composite
2015-12-01 17:26:45 +09:00
nagadomi 4a4885c856 Add -white_noise option
post-processing for anime screencap.
2015-11-11 10:42:33 +09:00
nagadomi c21516f04d Fix unused crop_size option 2015-11-09 04:10:51 +09:00
nagadomi b335f3a9ad Add -tta option
The TTA mode:
- 8x slower than normal mode
- improves PSNR +0.1
2015-11-09 04:01:28 +09:00
nagadomi 5ab2c605c8 Fix header include order issues 2015-11-08 18:31:46 +09:00
nagadomi 57115bdcac Add -depth option 2015-11-07 23:01:57 +09:00
nagadomi 903d945652 cleanup 2015-11-06 10:08:54 +09:00
nagadomi 1f91548c6e Fix model loading error when using ukbench model; Add error handling 2015-11-05 16:17:55 +09:00
nagadomi 425898a3aa Don't use cudnn.benchmark mode when predicting 2015-10-31 22:09:21 +09:00
nagadomi 3abc5a03e3 refactor 2015-10-28 16:01:07 +09:00
nagadomi 8dea362bed sync from internal repo
- Memory compression by snappy (lua-csnappy)
- Use RGB-wise Weighted MSE(R*0.299, G*0.587, B*0.114) instead of MSE
- Aggressive cropping for edge region
and some change.
2015-10-26 09:23:52 +09:00
nagadomi 5b4d692f03 add support for RGB color space reconstruction
- add new RGB model (models/anime_style_art_rgb).
- RGB model can reduce color noise.
- waifu2x uses this RGB model by default.

You can use Y model with:
$ th waifu2x.lua -model_dir models/anime_style_art -i input.png -o output.png
$ th train.lua -color y ...
2015-06-23 02:55:30 +09:00
nagadomi bbc3cac273 add support for transparent png (retain the alpha channel) 2015-06-16 20:41:48 +09:00
nagadomi a706892b59 merge develop repo
- remove support for cuDNN
- add new pre-trained model and json files
- some changes in training script

If you have cuDNN model, Please run following commands to convert.
$ cp models/your_own_model.t7 models/your_own_model.t7.backup
$ th cudnn2cunn.lua -model models/your_own_model.t7
2015-06-13 15:20:40 +09:00
nagadomi 2a30216798 add resume option
you can resume video upscaling with `-resume 1` option.
2015-05-26 00:37:23 +09:00
nagadomi 11ff1d54ce use path.exists 2015-05-26 00:25:14 +09:00
BrokenSilence c48c3eb017 Added ability to resume Video Upscaling
You can stop the Video Upscaling by sending "Ctrl + C" to the terminal.
Then simply run the same command again to start video upscaling, and it will skip all frames already processed.
2015-05-25 15:22:29 +01:00
nagadomi 7e34dff543 add a little support for video 2015-05-24 22:09:42 +09:00
nagadomi 1c1f2292d1 fix ugly chroma scaling 2015-05-22 20:06:25 +09:00
nagadomi ffd52fdb2b super typo fix 2015-05-19 16:47:52 +09:00
nagadomi 1273b3609e first commit 2015-05-16 14:48:05 +09:00