train_photo.sh 1.0 KB

123456789101112
  1. #!/bin/sh
  2. th convert_data.lua -style photo -data_dir ./data/photo -model_dir models/photo
  3. th train.lua -style photo -method scale -data_dir ./data/photo -model_dir models/photo_uk -test work/scale_test_photo.png -color rgb -thread 4 -backend cudnn -random_unsharp_mask_rate 0.1 -validation_crops 160
  4. th tools/cleanup_model.lua -model models/photo/scale2.0x_model.t7 -oformat ascii
  5. th train.lua -style photo -method noise -noise_level 1 -data_dir ./data/photo -model_dir models/photo -test work/noise_test_photo.jpg -color rgb -thread 4 -backend cudnn -random_unsharp_mask_rate 0.5 -validation_crops 160 -nr_rate 0.6 -epoch 33
  6. th tools/cleanup_model.lua -model models/photo/noise1_model.t7 -oformat ascii
  7. th train.lua -style photo -method noise -noise_level 2 -data_dir ./data/photo -model_dir models/photo -test work/noise_test_photo.jpg -color rgb -thread 4 -backend cudnn -random_unsharp_mask_rate 0.5 -validation_crops 160 -nr_rate 0.8 -epoch 38
  8. th tools/cleanup_model.lua -model models/photo/noise2_model.t7 -oformat ascii