Guest User

SF-DELTA-G7.sh

a guest
Jun 27th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.76 KB | None | 0 0
  1. STYLE_IMAGE=OVENSTYLES/B2C7/
  2. CONTENT_IMAGE=OVEN/007.jpg
  3.  
  4.  
  5. STYLE_WEIGHT=800
  6. STYLE_SCALE=1
  7. CONTENT_WEIGHT=275
  8.  
  9.  
  10. th neural_style_dir_rng_fix.lua \
  11. -style_image $STYLE_IMAGE \
  12. -style_weight $STYLE_WEIGHT \
  13. -style_scale $STYLE_SCALE \
  14. -content_image $CONTENT_IMAGE \
  15. -content_weight $CONTENT_WEIGHT \
  16. -output_image D1.png \
  17. -model_file models/nin_imagenet_conv.caffemodel \
  18. -proto_file models/train_val.prototxt \
  19. -num_iterations 1000 \
  20. -content_layers relu0,relu1,relu2,relu3,relu5,relu6,relu7,relu8,relu9,relu10,relu11,relu12 \
  21. -style_layers relu0,relu1,relu2,relu3,relu5,relu6,relu7,relu8,relu9,relu10,relu11,relu12 \
  22. -optimizer lbfgs \
  23. -print_iter 1 \
  24. -save_iter 100 \
  25. -tv_weight 0.00001 \
  26. -backend cudnn \
  27. -init random \
  28. -learning_rate 1 \
  29. -image_size 512 \
  30. -gpu 1 \
  31. -original_colors 0 \
  32. -normalize_gradients \
  33. -multigpu_strategy 11 \
  34. -lbfgs_num_correction 5 \
  35.  
  36.  
  37. python linear-color-transfer.py \
  38. --target_image $CONTENT_IMAGE \
  39. --source_image D1.png \
  40. --output_image PRIMER.png
  41.  
  42. # USES NEW PRIMER
  43. CONTENT_IMAGE=PRIMER.png
  44.  
  45.  
  46. STYLE_WEIGHT=800
  47. STYLE_SCALE=1
  48. CONTENT_WEIGHT=175
  49.  
  50.  
  51.  
  52.  
  53. th neural_style_dir_rng_fix.lua \
  54. -style_image $STYLE_IMAGE \
  55. -style_weight $STYLE_WEIGHT \
  56. -style_scale $STYLE_SCALE \
  57. -content_image $CONTENT_IMAGE \
  58. -content_weight $CONTENT_WEIGHT \
  59. -init image -init_image D1.png \
  60. -output_image D2.png \
  61. -model_file models/train2_iter_20000.caffemodel \
  62. -proto_file models/train2_iter_20000_train.prototxt \
  63. -num_iterations 600 \
  64. -content_layers relu1_1,relu2_1,relu3_1,relu4_1,relu5_1 \
  65. -style_layers relu1_1,relu2_1,relu3_1,relu4_1,relu5_1 \
  66. -optimizer adam \
  67. -print_iter 1 \
  68. -save_iter 100 \
  69. -tv_weight 0.00001 \
  70. -backend cudnn \
  71. -learning_rate 1 \
  72. -image_size 600 \
  73. -gpu 1 \
  74. -original_colors 0 \
  75. -normalize_gradients \
  76. -multigpu_strategy 11 \
  77.  
  78.  
  79.  
  80.  
  81.  
  82. STYLE_WEIGHT=1000
  83. STYLE_SCALE=1
  84. CONTENT_WEIGHT=0.25
  85.  
  86.  
  87.  
  88. th neural_style_dir_rng_fix.lua \
  89. -style_image $STYLE_IMAGE \
  90. -style_weight $STYLE_WEIGHT \
  91. -style_scale $STYLE_SCALE \
  92. -content_image $CONTENT_IMAGE \
  93. -content_weight $CONTENT_WEIGHT \
  94. -output_image D3-1.png \
  95. -num_iterations 600 \
  96. -optimizer adam \
  97. -print_iter 1 \
  98. -save_iter 100 \
  99. -tv_weight 0.00001 \
  100. -backend cudnn \
  101. -init image -init_image D2.png \
  102. -learning_rate 1 \
  103. -image_size 850 \
  104. -gpu 1,0 \
  105. -original_colors 0 \
  106. -normalize_gradients \
  107. -multigpu_strategy 14,11 \
  108.  
  109.  
  110.  
  111. th neural_style_dir_rng_fix.lua \
  112. -style_image $STYLE_IMAGE \
  113. -style_weight $STYLE_WEIGHT \
  114. -style_scale $STYLE_SCALE \
  115. -content_image $CONTENT_IMAGE \
  116. -content_weight $CONTENT_WEIGHT \
  117. -output_image D3-2.png \
  118. -num_iterations 100 \
  119. -model_file models/channel_pruning.caffemodel \
  120. -proto_file models/channel_pruning.prototxt \
  121. -optimizer adam \
  122. -print_iter 1 \
  123. -save_iter 100 \
  124. -tv_weight 0 \
  125. -backend cudnn \
  126. -init image \
  127. -init_image D3-1.png \
  128. -learning_rate 1 \
  129. -image_size 1450 \
  130. -gpu 1,0 \
  131. -original_colors 0 \
  132. -multigpu_strategy 14,11 \
  133. -normalize_gradients \
  134.  
  135.  
  136.  
  137.  
  138. th neural_style_dir_rng_fix.lua \
  139. -style_image $STYLE_IMAGE \
  140. -style_weight $STYLE_WEIGHT \
  141. -style_scale $STYLE_SCALE \
  142. -content_image $CONTENT_IMAGE \
  143. -content_weight $CONTENT_WEIGHT \
  144. -output_image D4.png \
  145. -model_file models/nin_imagenet_conv.caffemodel \
  146. -proto_file models/train_val.prototxt \
  147. -num_iterations 20 \
  148. -content_layers relu0,relu1,relu2,relu3,relu5,relu6,relu7,relu8 \
  149. -style_layers relu0,relu1,relu2,relu3,relu5,relu6,relu7,relu8 \
  150. -optimizer adam \
  151. -print_iter 1 \
  152. -save_iter 100 \
  153. -tv_weight 0.00001 \
  154. -backend cudnn \
  155. -init image -init_image D3-2.png \
  156. -learning_rate 1 \
  157. -image_size 2150 \
  158. -gpu 1,0 \
  159. -original_colors 0 \
  160. -normalize_gradients \
  161. -multigpu_strategy 14,11 \
  162.  
  163.  
  164.  
  165.  
  166. STYLE_WEIGHT=1000
  167. STYLE_SCALE=0.90
  168. CONTENT_WEIGHT=0.25
  169.  
  170.  
  171. th neural_style_dir_rng_fix.lua \
  172. -style_image $STYLE_IMAGE \
  173. -style_weight $STYLE_WEIGHT \
  174. -style_scale $STYLE_SCALE \
  175. -content_image $CONTENT_IMAGE \
  176. -content_weight $CONTENT_WEIGHT \
  177. -output_image D5.png \
  178. -model_file models/nin_imagenet_conv.caffemodel \
  179. -proto_file models/train_val.prototxt \
  180. -num_iterations 20 \
  181. -content_layers relu0,relu1,relu2,relu3,relu5,relu6 \
  182. -style_layers relu0,relu1,relu2,relu3,relu5,relu6 \
  183. -optimizer adam \
  184. -print_iter 1 \
  185. -save_iter 100 \
  186. -tv_weight 0.00001 \
  187. -backend cudnn \
  188. -init image -init_image D4.png \
  189. -learning_rate 1 \
  190. -image_size 2150 \
  191. -gpu 1,0 \
  192. -original_colors 0 \
  193. -normalize_gradients \
  194. -multigpu_strategy 14,11 \
  195.  
  196.  
  197.  
  198. STYLE_SCALE=0.80
  199.  
  200.  
  201. th neural_style_dir_rng_fix.lua \
  202. -style_image $STYLE_IMAGE \
  203. -style_weight $STYLE_WEIGHT \
  204. -style_scale $STYLE_SCALE \
  205. -content_image $CONTENT_IMAGE \
  206. -content_weight $CONTENT_WEIGHT \
  207. -output_image D6.png \
  208. -model_file models/nin_imagenet_conv.caffemodel \
  209. -proto_file models/train_val.prototxt \
  210. -num_iterations 20 \
  211. -content_layers relu0,relu1,relu2,relu3,relu5,relu6,relu7,relu8 \
  212. -style_layers relu0,relu1,relu2,relu3,relu5,relu6,relu7,relu8 \
  213. -optimizer adam \
  214. -print_iter 1 \
  215. -save_iter 0 \
  216. -tv_weight 0 \
  217. -backend cudnn \
  218. -init image -init_image D5.png \
  219. -learning_rate 1 \
  220. -image_size 2150 \
  221. -gpu 1,0 \
  222. -original_colors 0 \
  223. -normalize_gradients \
  224. -multigpu_strategy 14,11 \
  225.  
  226.  
  227.  
  228.  
  229.  
  230. STYLE_SCALE=0.70
  231.  
  232. th neural_style_dir_rng_fix.lua \
  233. -style_image $STYLE_IMAGE \
  234. -style_weight $STYLE_WEIGHT \
  235. -style_scale $STYLE_SCALE \
  236. -content_image $CONTENT_IMAGE \
  237. -content_weight $CONTENT_WEIGHT \
  238. -output_image D7-FINAL.png \
  239. -model_file models/nin_imagenet_conv.caffemodel \
  240. -proto_file models/train_val.prototxt \
  241. -num_iterations 20 \
  242. -content_layers relu0,relu1 \
  243. -style_layers relu0,relu1 \
  244. -optimizer adam \
  245. -print_iter 1 \
  246. -save_iter 0 \
  247. -tv_weight 0 \
  248. -backend cudnn \
  249. -init image -init_image D6.png \
  250. -learning_rate 1 \
  251. -image_size 3150 \
  252. -gpu 1,0 \
  253. -original_colors 0 \
  254. -normalize_gradients \
  255. -multigpu_strategy 4,3 \
Advertisement
Add Comment
Please, Sign In to add comment