|
@@ -26,19 +26,19 @@ cmd:option("-method", "scale", 'method to training (noise|scale)')
|
|
cmd:option("-noise_level", 1, '(1|2)')
|
|
cmd:option("-noise_level", 1, '(1|2)')
|
|
cmd:option("-style", "art", '(art|photo)')
|
|
cmd:option("-style", "art", '(art|photo)')
|
|
cmd:option("-color", 'rgb', '(y|rgb)')
|
|
cmd:option("-color", 'rgb', '(y|rgb)')
|
|
-cmd:option("-color_noise", 0, 'data augmentation using color noise (1|0)')
|
|
|
|
-cmd:option("-overlay", 0, 'data augmentation using overlay (1|0)')
|
|
|
|
|
|
+cmd:option("-random_color_noise_rate", 0.0, 'data augmentation using color noise (0.0-1.0)')
|
|
|
|
+cmd:option("-random_overlay_rate", 0.0, 'data augmentation using flipped image overlay (0.0-1.0)')
|
|
|
|
+cmd:option("-random_half_rate", 0.0, 'data augmentation using half resolution image (0.0-1.0)')
|
|
cmd:option("-scale", 2.0, 'scale factor (2)')
|
|
cmd:option("-scale", 2.0, 'scale factor (2)')
|
|
cmd:option("-learning_rate", 0.00025, 'learning rate for adam')
|
|
cmd:option("-learning_rate", 0.00025, 'learning rate for adam')
|
|
-cmd:option("-random_half", 0, 'data augmentation using half resolution image (0|1)')
|
|
|
|
cmd:option("-crop_size", 46, 'crop size')
|
|
cmd:option("-crop_size", 46, 'crop size')
|
|
cmd:option("-max_size", 256, 'if image is larger than max_size, image will be crop to max_size randomly')
|
|
cmd:option("-max_size", 256, 'if image is larger than max_size, image will be crop to max_size randomly')
|
|
cmd:option("-batch_size", 8, 'mini batch size')
|
|
cmd:option("-batch_size", 8, 'mini batch size')
|
|
cmd:option("-epoch", 200, 'number of total epochs to run')
|
|
cmd:option("-epoch", 200, 'number of total epochs to run')
|
|
cmd:option("-thread", -1, 'number of CPU threads')
|
|
cmd:option("-thread", -1, 'number of CPU threads')
|
|
cmd:option("-jpeg_sampling_factors", 444, '(444|420)')
|
|
cmd:option("-jpeg_sampling_factors", 444, '(444|420)')
|
|
-cmd:option("-validation_rate", 0.05, 'validation-set rate of data')
|
|
|
|
-cmd:option("-validation_crops", 80, 'number of region per image in validation')
|
|
|
|
|
|
+cmd:option("-validation_rate", 0.05, 'validation-set rate (number_of_training_images * validation_rate > 1)')
|
|
|
|
+cmd:option("-validation_crops", 80, 'number of cropping region per image in validation')
|
|
cmd:option("-active_cropping_rate", 0.5, 'active cropping rate')
|
|
cmd:option("-active_cropping_rate", 0.5, 'active cropping rate')
|
|
cmd:option("-active_cropping_tries", 10, 'active cropping tries')
|
|
cmd:option("-active_cropping_tries", 10, 'active cropping tries')
|
|
cmd:option("-nr_rate", 0.7, 'trade-off between reducing noise and erasing details (0.0-1.0)')
|
|
cmd:option("-nr_rate", 0.7, 'trade-off between reducing noise and erasing details (0.0-1.0)')
|
|
@@ -69,21 +69,6 @@ if not (settings.style == "art" or
|
|
settings.style == "photo") then
|
|
settings.style == "photo") then
|
|
error(string.format("unknown style: %s", settings.style))
|
|
error(string.format("unknown style: %s", settings.style))
|
|
end
|
|
end
|
|
-if settings.random_half == 1 then
|
|
|
|
- settings.random_half = true
|
|
|
|
-else
|
|
|
|
- settings.random_half = false
|
|
|
|
-end
|
|
|
|
-if settings.color_noise == 1 then
|
|
|
|
- settings.color_noise = true
|
|
|
|
-else
|
|
|
|
- settings.color_noise = false
|
|
|
|
-end
|
|
|
|
-if settings.overlay == 1 then
|
|
|
|
- settings.overlay = true
|
|
|
|
-else
|
|
|
|
- settings.overlay = false
|
|
|
|
-end
|
|
|
|
|
|
|
|
if settings.thread > 0 then
|
|
if settings.thread > 0 then
|
|
torch.setnumthreads(tonumber(settings.thread))
|
|
torch.setnumthreads(tonumber(settings.thread))
|