Skip to content

Commit

Permalink
update a few imgs
Browse files Browse the repository at this point in the history
  • Loading branch information
luanfujun committed Apr 10, 2018
1 parent 60e7cde commit ae4cf70
Show file tree
Hide file tree
Showing 15 changed files with 5 additions and 4 deletions.
Binary file modified data/0_c_mask.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/0_c_mask_dilated.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/0_naive.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/0_target.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/2_c_mask.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/2_c_mask_dilated.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/2_naive.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/2_target.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions gen_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import math

numImgs = 35
numGpus = 16
# numGpus = 16
numGpus = 1

if os.path.exists('results') == 0:
os.mkdir('results')
Expand All @@ -13,8 +14,9 @@
cmd = ''
for i in range(1, N+1):
idx = (i-1) * numGpus + (j-1)
if idx >= 0 and idx < numImgs:
print 'Working on image idx = ', idx
# if idx >= 0 and idx < numImgs:
if idx == 0 or idx == 2:
print('Working on image idx = ', idx)
part_cmd1 =' th neural_gram.lua '\
' -content_image data/' + str(idx) + '_naive.jpg '\
' -style_image data/' + str(idx) + '_target.jpg '\
Expand All @@ -23,7 +25,6 @@
' -gpu ' + str(j-1) + ' -original_colors 0 -image_size 700 '\
' -output_image results/' + str(idx) + '_inter_res.jpg'\
' -print_iter 100 -save_iter 100 && '

part_cmd2 =' th neural_paint.lua '\
' -content_image data/' + str(idx) + '_naive.jpg '\
' -style_image data/' + str(idx) + '_target.jpg '\
Expand Down
Binary file modified results/0_final_res.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed results/0_final_res2.png
Binary file not shown.
Binary file modified results/0_inter_res.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified results/2_final_res.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed results/2_final_res2.png
Binary file not shown.
Binary file modified results/2_inter_res.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ae4cf70

Please sign in to comment.