We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 989e2cf commit b9640caCopy full SHA for b9640ca
datasets/monocular.py
@@ -90,7 +90,6 @@ def read_meta(self):
90
if self.start_frame <= j-1 < self.end_frame:
91
visibilities[j-1-self.start_frame, i] = 1
92
93
- # TODO: take care of forward moving scenes...
94
min_depth = 1e8
95
for i in range(self.N_frames):
96
# for each image, compute the nearest depth according to real depth from COLMAP
@@ -213,7 +212,8 @@ def define_transforms(self):
213
212
self.transform = T.ToTensor()
214
215
def __len__(self):
216
- if self.split == 'train': return 5000
+ if self.split == 'train':
+ return self.img_wh[0]*self.img_wh[1]*self.N_frames//1000
217
if self.split == 'val': return 1
218
return len(self.poses_test)
219
0 commit comments