summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-15 04:14:04 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-15 04:14:04 +0200
commita7ce2ce3be5b6d5b1542b055ccb5b193c97369d5 (patch)
tree8c7675f8046e55ad038f1ab53af1d71c7b94b77c
parent1c5b42a65208672909a88d1a70819c435f900a9a (diff)
testy
-rw-r--r--test-mogrify-recursive.sh248
-rw-r--r--test-mogrify.py4
2 files changed, 126 insertions, 126 deletions
diff --git a/test-mogrify-recursive.sh b/test-mogrify-recursive.sh
index 8d1b413..c75dc2c 100644
--- a/test-mogrify-recursive.sh
+++ b/test-mogrify-recursive.sh
@@ -28,141 +28,141 @@ python test-mogrify.py \
--recursive --clahe --posterize \
--norm batch
-python test-mogrify.py \
- --dataroot "$dataset/train/" \
- --start_img "$dataset/test/frame_00003.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_00003.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_00003.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_00003.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_00003.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_00003.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_01003.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_01003.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_01003.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_01003.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_01003.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_01003.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_05003.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_05003.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_05005.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_05005.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_05005.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_05005.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_10003.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_10003.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_05005.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_05005.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
diff --git a/test-mogrify.py b/test-mogrify.py
index 49ca1dd..f330230 100644
--- a/test-mogrify.py
+++ b/test-mogrify.py
@@ -51,12 +51,12 @@ if __name__ == '__main__':
def load_first_frame():
if data_opt.just_copy:
- copyfile(opt.start_img, render_dir + "frame_00000.png")
+ copyfile(opt.start_img, os.path.join(render_dir, "frame_00000.png"))
else:
A_img = Image.open(opt.start_img).convert('RGB')
A_im = np.asarray(A_img)
A = process_image(A_im)
- cv2.imwrite(render_dir + "frame_00000.png", A)
+ cv2.imwrite(os.path.join(render_dir, "frame_00000.png"), A)
numz = re.findall(r'\d+', os.path.basename(opt.start_img))
if len(numz) > 0: