summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-04-22 14:47:57 +0200
committerJules Laplace <julescarbon@gmail.com>2018-04-22 14:47:57 +0200
commit46044c7c0f92ea3b4b7162001691125e36fd2d52 (patch)
treedc9267e9e92a1c9fc8c7ae9d9bac32e5ee8672eb /test.py
parent28aeac762722e464826cd9947a4e430953031f0d (diff)
push
Diffstat (limited to 'test.py')
-rw-r--r--test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.py b/test.py
index 4efddb8..7655cdb 100644
--- a/test.py
+++ b/test.py
@@ -66,12 +66,12 @@ if __name__ == '__main__':
array_a = np.multiply(im, 1/frac)
array_b = np.multiply(last_im, (frac-1)/frac)
print(im.shape, array_a.shape, array_b.shape)
- im = np.add(array_a, array_b).clip(0, 255)
+ im = np.add(array_a, array_b)
last_im = tmp_im
else:
last_im = im.copy()
print(im.shape)
- image_pil = Image.fromarray(im)
+ image_pil = Image.fromarray(im, mode='RGB')
image_pil.save(save_path)
os.rename(save_path, final_path)
webpage.save()