summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-04-22 14:24:33 +0200
committerJules Laplace <julescarbon@gmail.com>2018-04-22 14:24:33 +0200
commit83ece7094392e047a337df8482fb22730cb7651a (patch)
treebf40f3ab195d8f70f3a3ce1c18bbf49bb894838f /test.py
parentff8f1abf5612e3114e8e5f72a55a404e18698e53 (diff)
push
Diffstat (limited to 'test.py')
-rw-r--r--test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.py b/test.py
index 7ef1d3a..4d1da3f 100644
--- a/test.py
+++ b/test.py
@@ -65,7 +65,7 @@ if __name__ == '__main__':
im = np.add(np.multiply(im, 1/frac), np.multiply(last_im, (frac-1)/frac))
last_im = tmp_im
else:
- last_im = im
+ last_im = im.copy()
print(im.shape)
image_pil = Image.fromarray(im)
image_pil.save(save_path)