diff options
| -rw-r--r-- | test-mogrify-recursive.sh | 335 | ||||
| -rw-r--r-- | test-mogrify.py | 8 |
2 files changed, 186 insertions, 157 deletions
diff --git a/test-mogrify-recursive.sh b/test-mogrify-recursive.sh index 2caa777..1300a0b 100644 --- a/test-mogrify-recursive.sh +++ b/test-mogrify-recursive.sh @@ -16,183 +16,212 @@ how_many=2000 # --recursive-frac $recursive_frac \ # --norm batch + # python test-mogrify.py \ + # --dataroot "/home/lens/Desktop/woods_videos/processed/combined" \ + # --start_img "/home/lens/Desktop/woods_videos/processed/combined/frame_00003.png" \ + # --experiment "spin_sequence_canny" \ + # --name pcfade \ + # --sequence --sequence-frac 0.04 \ + # --recursive --recursive-frac 0.3 \ + # --process-frac 0.5 \ + # --loadSize 256 --fineSize 256 --how_many 200 \ + # --model test --which_model_netG unet_256 \ + # --which_direction AtoB --dataset_mode recursive \ + # --blur --canny \ + # --norm batch + python test-mogrify.py \ --dataroot "/home/lens/Desktop/woods_videos/processed/combined" \ --start_img "/home/lens/Desktop/woods_videos/processed/combined/frame_00003.png" \ - --experiment "spin_sequence_canny" \ + --experiment "spin_sequence_r3_s1_posterize" \ --name pcfade \ - --sequence --sequence-frac 0.04 \ --recursive --recursive-frac 0.3 \ + --sequence --sequence-frac 0.1 \ + --recurse-roll 1 \ --process-frac 0.5 \ --loadSize 256 --fineSize 256 --how_many 200 \ --model test --which_model_netG unet_256 \ --which_direction AtoB --dataset_mode recursive \ - --blur --canny \ + --which_epoch latest \ --norm batch + python test-mogrify.py \ + --dataroot "/home/lens/Desktop/woods_videos/processed/combined" \ + --start_img "/home/lens/Desktop/woods_videos/processed/combined/frame_00003.png" \ + --experiment "spin_sequence_r1_s3_posterize" \ + --name pcfade \ + --recursive --recursive-frac 0.1 \ + --sequence --sequence-frac 0.3 \ + --recurse-roll 1 \ + --process-frac 0.5 \ + --loadSize 256 --fineSize 256 --how_many 200 \ + --model test --which_model_netG unet_256 \ + --which_direction AtoB --dataset_mode recursive \ + --which_epoch latest \ + --norm batch -python test-mogrify.py \ - --dataroot "$dataset" \ - --start_img "$dataset/frame_00003.png" \ - --experiment "${tag}_sequence" \ - --name pcfade \ - --sequence --sequence-frac 0.999 \ - --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 \ - --clahe --process-frac 0.001 \ - --sequence --sequence-frac 0.49 \ +# python test-mogrify.py \ +# --dataroot "$dataset" \ +# --start_img "$dataset/frame_00003.png" \ +# --experiment "${tag}_sequence" \ +# --name pcfade \ +# --sequence --sequence-frac 0.999 \ +# --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 \ +# --clahe --process-frac 0.001 \ +# --sequence --sequence-frac 0.49 \ -python test-mogrify.py \ - --dataroot "$dataset/train/" \ - --start_img "$dataset/test/frame_02003.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/" \ +# --start_img "$dataset/test/frame_02003.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/" \ - --start_img "$dataset/test/frame_04003.png" \ - --experiment "${tag}_dark_reverse" \ - --name pcfade \ - --loadSize 256 --fineSize 256 --how_many $how_many \ - --model test --which_model_netG unet_256 \ - --which_direction BtoA --dataset_mode recursive \ - --recursive --clahe --posterize \ - --recursive-frac $recursive_frac \ - --sequence \ - --norm batch +# python test-mogrify.py \ +# --dataroot "$dataset/train/" \ +# --start_img "$dataset/test/frame_04003.png" \ +# --experiment "${tag}_dark_reverse" \ +# --name pcfade \ +# --loadSize 256 --fineSize 256 --how_many $how_many \ +# --model test --which_model_netG unet_256 \ +# --which_direction BtoA --dataset_mode recursive \ +# --recursive --clahe --posterize \ +# --recursive-frac $recursive_frac \ +# --sequence \ +# --norm batch -python test-mogrify.py \ - --dataroot "$dataset/train/" \ - --start_img "$dataset/test/frame_08003.png" \ - --experiment "${tag}_sequence_posterize" \ - --name pcfade \ - --sequence \ - --loadSize 256 --fineSize 256 --how_many $how_many \ - --model test --which_model_netG unet_256 \ - --which_direction BtoA --dataset_mode recursive \ - --recursive --clahe --posterize \ - --norm batch +# python test-mogrify.py \ +# --dataroot "$dataset/train/" \ +# --start_img "$dataset/test/frame_08003.png" \ +# --experiment "${tag}_sequence_posterize" \ +# --name pcfade \ +# --sequence \ +# --loadSize 256 --fineSize 256 --how_many $how_many \ +# --model test --which_model_netG unet_256 \ +# --which_direction BtoA --dataset_mode recursive \ +# --recursive --clahe --posterize \ +# --norm batch -python test-mogrify.py \ - --dataroot "$dataset/train/" \ - --start_img "$dataset/test/frame_10003.png" \ - --experiment "${tag}_sequence_blur" \ - --name pcfade \ - --sequence \ - --loadSize 256 --fineSize 256 --how_many $how_many \ - --model test --which_model_netG unet_256 \ - --which_direction BtoA --dataset_mode recursive \ - --recursive --blur \ - --norm batch +# python test-mogrify.py \ +# --dataroot "$dataset/train/" \ +# --start_img "$dataset/test/frame_10003.png" \ +# --experiment "${tag}_sequence_blur" \ +# --name pcfade \ +# --sequence \ +# --loadSize 256 --fineSize 256 --how_many $how_many \ +# --model test --which_model_netG unet_256 \ +# --which_direction BtoA --dataset_mode recursive \ +# --recursive --blur \ +# --norm batch -python test-mogrify.py \ - --dataroot "$dataset/train/" \ - --start_img "$dataset/test/frame_12003.png" \ - --experiment "${tag}_1003" \ - --name pcfade \ - --sequence \ - --loadSize 256 --fineSize 256 --how_many $how_many \ - --model test --which_model_netG unet_256 \ - --which_direction AtoB --dataset_mode recursive \ - --recursive --clahe --posterize \ - --recursive-frac $recursive_frac \ - --norm batch +# python test-mogrify.py \ +# --dataroot "$dataset/train/" \ +# --start_img "$dataset/test/frame_12003.png" \ +# --experiment "${tag}_1003" \ +# --name pcfade \ +# --sequence \ +# --loadSize 256 --fineSize 256 --how_many $how_many \ +# --model test --which_model_netG unet_256 \ +# --which_direction AtoB --dataset_mode recursive \ +# --recursive --clahe --posterize \ +# --recursive-frac $recursive_frac \ +# --norm batch -python test-mogrify.py \ - --dataroot "$dataset/train/" \ - --start_img "$dataset/test/frame_14003.png" \ - --experiment "${tag}_1003_0_1frac" \ - --name pcfade \ - --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.1 \ - --sequence --sequence-frac 0.1 \ - --clahe --posterize \ - --norm batch +# python test-mogrify.py \ +# --dataroot "$dataset/train/" \ +# --start_img "$dataset/test/frame_14003.png" \ +# --experiment "${tag}_1003_0_1frac" \ +# --name pcfade \ +# --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.1 \ +# --sequence --sequence-frac 0.1 \ +# --clahe --posterize \ +# --norm batch -python test-mogrify.py \ - --dataroot "$dataset/train/" \ - --start_img "$dataset/test/frame_16003.png" \ - --experiment "${tag}_1003_0_8frac" \ - --name pcfade \ - --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.2 \ - --sequence --sequence-frac 0.3 \ - --clahe --posterize \ - --norm batch +# python test-mogrify.py \ +# --dataroot "$dataset/train/" \ +# --start_img "$dataset/test/frame_16003.png" \ +# --experiment "${tag}_1003_0_8frac" \ +# --name pcfade \ +# --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.2 \ +# --sequence --sequence-frac 0.3 \ +# --clahe --posterize \ +# --norm batch -python test-mogrify.py \ - --dataroot "$dataset/train/" \ - --start_img "$dataset/test/frame_18003.png" \ - --experiment "${tag}_5003" \ - --name pcfade \ - --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.1 \ - --sequence --sequence-frac 0.3 \ - --blur --posterize \ - --norm batch +# python test-mogrify.py \ +# --dataroot "$dataset/train/" \ +# --start_img "$dataset/test/frame_18003.png" \ +# --experiment "${tag}_5003" \ +# --name pcfade \ +# --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.1 \ +# --sequence --sequence-frac 0.3 \ +# --blur --posterize \ +# --norm batch -python test-mogrify.py \ - --dataroot "$dataset/train/" \ - --start_img "$dataset/train/frame_20005.png" \ - --experiment "${tag}_5005_rec_poster_blur" \ - --name pcfade \ - --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.3 \ - --sequence --sequence-frac 0.2 \ - --norm batch +# python test-mogrify.py \ +# --dataroot "$dataset/train/" \ +# --start_img "$dataset/train/frame_20005.png" \ +# --experiment "${tag}_5005_rec_poster_blur" \ +# --name pcfade \ +# --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.3 \ +# --sequence --sequence-frac 0.2 \ +# --norm batch -python test-mogrify.py \ - --dataroot "$dataset/train/" \ - --start_img "$dataset/train/frame_24005.png" \ - --experiment "${tag}_5005_rec_4" \ - --name pcfade \ - --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.4 \ - --norm batch +# python test-mogrify.py \ +# --dataroot "$dataset/train/" \ +# --start_img "$dataset/train/frame_24005.png" \ +# --experiment "${tag}_5005_rec_4" \ +# --name pcfade \ +# --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.4 \ +# --norm batch -python test-mogrify.py \ - --dataroot "$dataset/train/" \ - --start_img "$dataset/test/frame_26003.png" \ - --experiment "${tag}_10003" \ - --name pcfade \ - --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.5 \ - --clahe --posterize --blur \ - --norm batch +# python test-mogrify.py \ +# --dataroot "$dataset/train/" \ +# --start_img "$dataset/test/frame_26003.png" \ +# --experiment "${tag}_10003" \ +# --name pcfade \ +# --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.5 \ +# --clahe --posterize --blur \ +# --norm batch -python test-mogrify.py \ - --dataroot "$dataset/train/" \ - --start_img "$dataset/train/frame_28005.png" \ - --experiment "${tag}_5005_just_copy" \ - --name pcfade --just-copy \ - --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.4 \ - --norm batch +# python test-mogrify.py \ +# --dataroot "$dataset/train/" \ +# --start_img "$dataset/train/frame_28005.png" \ +# --experiment "${tag}_5005_just_copy" \ +# --name pcfade --just-copy \ +# --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.4 \ +# --norm batch -bash run.sh +# bash run.sh diff --git a/test-mogrify.py b/test-mogrify.py index 676b1ad..31eba64 100644 --- a/test-mogrify.py +++ b/test-mogrify.py @@ -215,10 +215,10 @@ if __name__ == '__main__': array_b = np.multiply(im.astype('float64'), frac_b) next_im = np.add(array_a, array_b).astype('uint8') - # if data_opt.recurse_roll != 0: - # last_im = np.roll(tmp_im, data_opt.recurse_roll, axis=data_opt.recurse_roll_axis) - # else: - last_im = next_im.copy().astype('uint8') + if data_opt.recurse_roll != 0: + last_im = np.roll(tmp_im, data_opt.recurse_roll, axis=data_opt.recurse_roll_axis) + else: + last_im = next_im.copy().astype('uint8') else: last_im = im.copy().astype('uint8') |
