summaryrefslogtreecommitdiff
path: root/test-mogrify.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-15 04:18:52 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-15 04:18:52 +0200
commit416ba77ed0a97f7604662e313000783a2b3354f5 (patch)
tree105e04d771b863516a1b102e2ae7724950e9adca /test-mogrify.py
parent2fd5f6bee2a53f2df3e98c5b61f1ba9da85777d5 (diff)
testy
Diffstat (limited to 'test-mogrify.py')
-rw-r--r--test-mogrify.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test-mogrify.py b/test-mogrify.py
index 8ad85a4..8e5c393 100644
--- a/test-mogrify.py
+++ b/test-mogrify.py
@@ -66,6 +66,8 @@ if __name__ == '__main__':
if A_offset:
print(">> starting offset: {}".format(A_offset))
A_dir = opt.start_img.replace(numz[0], "{:05d}")
+ else:
+ print("Sequence not found")
def process_image(im):
img = im[:, :, ::-1].copy()
@@ -117,7 +119,8 @@ if __name__ == '__main__':
tmp_path = render_dir + "frame_{:05d}_tmp.png".format(i+1)
edges_path = render_dir + "frame_{:05d}.png".format(i+1)
render_path = render_dir + "ren_{:05d}.png".format(i+1)
- sequence_path = A_dir.format(A_offset+i+1)
+ if A_dir is not None:
+ sequence_path = A_dir.format(A_offset+i+1)
# A_offset
# save rendered image
@@ -129,7 +132,7 @@ if __name__ == '__main__':
if data_opt.recursive and last_im is not None:
tmp_im = im.copy()
- if data_opt.sequence:
+ if data_opt.sequence and A_dir is not None:
A_img = Image.open(sequence_path).convert('RGB')
A_im = np.asarray(A_img)
frac_a = data_opt.recursive_frac