5b4d692f03
- 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 ...
10 lines
625 B
Bash
Executable file
10 lines
625 B
Bash
Executable file
#!/bin/sh
|
|
|
|
th train.lua -color rgb -method noise -noise_level 1 -model_dir models/anime_style_art_rgb -test images/miku_noisy.png
|
|
th cleanup_model.lua -model models/anime_style_art_rgb/noise1_model.t7 -oformat ascii
|
|
|
|
th train.lua -color rgb -method noise -noise_level 2 -model_dir models/anime_style_art_rgb -test images/miku_noisy.png
|
|
th cleanup_model.lua -model models/anime_style_art_rgb/noise2_model.t7 -oformat ascii
|
|
|
|
th train.lua -color rgb -method scale -scale 2 -model_dir models/anime_style_art_rgb -test images/miku_small.png
|
|
th cleanup_model.lua -model models/anime_style_art_rgb/scale2.0x_model.t7 -oformat ascii
|