Update stereo_datasets.py
This commit is contained in:
parent
73e65f99b8
commit
9df896bb70
@ -73,7 +73,6 @@ class StereoDataset(data.Dataset):
|
|||||||
img2 = np.array(img2).astype(np.uint8)
|
img2 = np.array(img2).astype(np.uint8)
|
||||||
|
|
||||||
disp = np.array(disp).astype(np.float32)
|
disp = np.array(disp).astype(np.float32)
|
||||||
assert not (True in np.isnan(disp))
|
|
||||||
|
|
||||||
flow = np.stack([disp, np.zeros_like(disp)], axis=-1)
|
flow = np.stack([disp, np.zeros_like(disp)], axis=-1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user