Initial Commit
This commit is contained in:
parent
21243dfb11
commit
d1a395cc78
@ -302,6 +302,7 @@ class SparseFlowAugmentor:
|
|||||||
img2 = img2[y0:y0+self.crop_size[0], x0:x0+self.crop_size[1]]
|
img2 = img2[y0:y0+self.crop_size[0], x0:x0+self.crop_size[1]]
|
||||||
flow = flow[y0:y0+self.crop_size[0], x0:x0+self.crop_size[1]]
|
flow = flow[y0:y0+self.crop_size[0], x0:x0+self.crop_size[1]]
|
||||||
valid = valid[y0:y0+self.crop_size[0], x0:x0+self.crop_size[1]]
|
valid = valid[y0:y0+self.crop_size[0], x0:x0+self.crop_size[1]]
|
||||||
|
|
||||||
return img1, img2, flow, valid
|
return img1, img2, flow, valid
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user