diff options
| -rw-r--r-- | test-mogrify-recursive.sh | 22 | ||||
| -rw-r--r-- | test-mogrify.py | 6 |
2 files changed, 14 insertions, 14 deletions
diff --git a/test-mogrify-recursive.sh b/test-mogrify-recursive.sh index 2863e03..91e6072 100644 --- a/test-mogrify-recursive.sh +++ b/test-mogrify-recursive.sh @@ -16,17 +16,17 @@ how_many=200 # --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" \ - --name pcfade \ - --sequence --sequence-frac 0.999 \ - --recursive --recursive-frac 0.0005 \ - --loadSize 256 --fineSize 256 --how_many 200 \ - --model test --which_model_netG unet_256 \ - --which_direction AtoB --dataset_mode recursive \ - --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" \ + --name pcfade \ + --sequence --sequence-frac 0.999 \ + --recursive --recursive-frac 0.0005 \ + --loadSize 256 --fineSize 256 --how_many 200 \ + --model test --which_model_netG unet_256 \ + --which_direction AtoB --dataset_mode recursive \ + --norm batch python test-mogrify.py \ diff --git a/test-mogrify.py b/test-mogrify.py index 083154a..3ef86b7 100644 --- a/test-mogrify.py +++ b/test-mogrify.py @@ -204,9 +204,9 @@ if __name__ == '__main__': array_a = np.multiply(last_im.astype('float64'), frac_a) array_b = np.multiply(A_im.astype('float64'), frac_b) array_c = np.multiply(im.astype('float64'), frac_c) - comb_ab = np.add(array_a, array_b) - comb_abc = np.add(array_ab, array_c) - next_im = comb_abc.astype('uint8') + array_ab = np.add(array_a, array_b) + array_abc = np.add(array_ab, array_c) + next_im = array_abc.astype('uint8') print("rec: {}, seq: {}, pix: {}".format(frac_a, frac_b, frac_c)) else: |
