Skip to content

Commit 2504001

Browse files
authored
Update mpisintel.py
as discussed
1 parent cbbc263 commit 2504001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datasets/mpisintel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def make_dataset(dataset_dir, split, dataset_type='clean'):
2929
img1 = os.path.join(img_dir, scene_dir, '{}_{:04d}.png'.format(prefix, frame_nb))
3030
img2 = os.path.join(img_dir, scene_dir, '{}_{:04d}.png'.format(prefix, frame_nb + 1))
3131
flow_map = os.path.join(flow_dir,flow_map)
32-
if not (os.path.isfile(os.path.join(dataset_dir,img1)) or os.path.isfile(os.path.join(dataset_dir,img2))):
32+
if not (os.path.isfile(os.path.join(dataset_dir,img1)) and os.path.isfile(os.path.join(dataset_dir,img2))):
3333
continue
3434
images.append([[img1,img2],flow_map])
3535

0 commit comments

Comments
 (0)