diff options
| -rw-r--r-- | test-mogrify-recursive.sh | 33 | ||||
| -rw-r--r-- | test-mogrify.py | 4 |
2 files changed, 26 insertions, 11 deletions
diff --git a/test-mogrify-recursive.sh b/test-mogrify-recursive.sh index 7f8df1a..b7ec281 100644 --- a/test-mogrify-recursive.sh +++ b/test-mogrify-recursive.sh @@ -17,31 +17,44 @@ how_many=200 # --norm batch python test-mogrify.py \ - --dataroot "$dataset/train/" \ - --start_img "$dataset/test/frame_00003.png" \ - --experiment "${tag}_sequence" \ + --dataroot "/home/lens/Desktop/woods_videos/processed/dataset/B/train/" \ + --start_img "/home/lens/Desktop/woods_videos/processed/dataset/B/test/frame_00003.png" \ + --experiment "spin_sequence" \ --name pcfade \ --sequence --sequence-frac 0.999 \ - --loadSize 256 --fineSize 256 --how_many $how_many \ + --loadSize 256 --fineSize 256 --how_many 200 \ --model test --which_model_netG unet_256 \ --which_direction AtoB --dataset_mode recursive \ --recursive --recursive-frac 0.0005 \ --norm batch - # --clahe --process-frac 0.001 \ - # --sequence --sequence-frac 0.49 \ + python test-mogrify.py \ --dataroot "$dataset/train/" \ --start_img "$dataset/test/frame_00003.png" \ - --experiment "sequence_process_less" \ + --experiment "${tag}_sequence" \ --name pcfade \ --sequence --sequence-frac 0.999 \ - --loadSize 256 --fineSize 256 --how_many 200 \ + --loadSize 256 --fineSize 256 --how_many $how_many \ --model test --which_model_netG unet_256 \ --which_direction AtoB --dataset_mode recursive \ --recursive --recursive-frac 0.0005 \ - --norm batch --tag "pcfade_spin_sequence_process_less_201805150450" \ - --render-frames --mov + --norm batch + # --clahe --process-frac 0.001 \ + # --sequence --sequence-frac 0.49 \ + +# python test-mogrify.py \ +# --dataroot "$dataset/train/" \ +# --start_img "$dataset/test/frame_00003.png" \ +# --experiment "sequence_process_less" \ +# --name pcfade \ +# --sequence --sequence-frac 0.999 \ +# --loadSize 256 --fineSize 256 --how_many 200 \ +# --model test --which_model_netG unet_256 \ +# --which_direction AtoB --dataset_mode recursive \ +# --recursive --recursive-frac 0.0005 \ +# --norm batch --tag "pcfade_spin_sequence_process_less_201805150450" \ +# --render-frames --mov # python test-mogrify.py \ # --dataroot "$dataset/train/" \ diff --git a/test-mogrify.py b/test-mogrify.py index d181ddf..787f07d 100644 --- a/test-mogrify.py +++ b/test-mogrify.py @@ -90,7 +90,6 @@ if __name__ == '__main__': img = cv2.Canny(img, data_opt.canny_lo, data_opt.canny_hi) if processed is False: - print("No processing occurred.") return img src_img = im[:, :, ::-1].copy() @@ -178,8 +177,11 @@ if __name__ == '__main__': tmp_path = render_dir + "frame_{:05d}_tmp.png".format(i+1) edges_path = render_dir + "frame_{:05d}.png".format(i+1) render_path = render_dir + "ren_{:05d}.png".format(i+1) + print(render_path) + print(edges_path) if A_dir is not None: sequence_path = A_dir.format(A_offset+i+1) + print(sequence_path) # A_offset # save rendered image |
