summaryrefslogtreecommitdiff
path: root/data/recursive_dataset.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-07 18:06:14 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-07 18:06:14 +0200
commitc5e2957b7620014db7e75ebc86fe4b6ab95fda5a (patch)
tree2a7c69f4f756f3f1b29061fa4b9425f422985775 /data/recursive_dataset.py
parenta134759f41c998cfd551c52bf08a92335caa59eb (diff)
debuggin..
Diffstat (limited to 'data/recursive_dataset.py')
-rw-r--r--data/recursive_dataset.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/recursive_dataset.py b/data/recursive_dataset.py
index 7bf7941..1460567 100644
--- a/data/recursive_dataset.py
+++ b/data/recursive_dataset.py
@@ -18,12 +18,14 @@ class RecursiveDataset(BaseDataset):
def __getitem__(self, index):
A_path = os.path.join(self.opt.render_dir, "frame_{:05d}.png".format(index))
- # print(A_path)
+ print(A_path)
if not os.path.exists(A_path):
A_path2 = os.path.join(self.opt.render_dir, "frame_{:05d}.png".format(index+1))
if os.path.exists(A_path2):
+ print('oops: {}'.format(A_path2))
A_path = A_path2
else:
+ print('not there yet...')
while not os.path.exists(A_path):
gevent.sleep(self.opt.poll_delay)
A_img = Image.open(A_path).convert('RGB')