Skip to content

Commit d21ba48

Browse files
Merge pull request #35 from bit1002lst/patch-1
[typo] check for validity of BOTH frames
2 parents e736da0 + a93d0ce commit d21ba48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datasets/flyingchairs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def make_dataset(dir, split=None):
1212
root_filename = flow_map[:-9]
1313
img1 = root_filename+'_img1.ppm'
1414
img2 = root_filename+'_img2.ppm'
15-
if not (os.path.isfile(os.path.join(dir,img1)) or os.path.isfile(os.path.join(dir,img2))):
15+
if not (os.path.isfile(os.path.join(dir,img1)) and os.path.isfile(os.path.join(dir,img2))):
1616
continue
1717

1818
images.append([[img1,img2],flow_map])

0 commit comments

Comments
 (0)