Thank you for your dedication and generosity in making this work available. It has been incredibly insightful and beneficial for my own projects.
when I use python train.py --config configs/default.txt --data_dir D:\OmniTrackFast\dataset\lab-coat there are some bugs:
raft_online.py
……
for i in tqdm.trange(self.num_imgs):
for j in range(-16, 17):
if j == 0:
continue
if i + j < 0 or i + j >= self.num_imgs:
continue
flow_file = os.path.join(self.flow_dir, '{}_{}.npy'.format(self.img_names[i], self.img_names[i+j]))
flow = np.load(flow_file)
mask_file = flow_file.replace('raft_exhaustive', 'full_mask').replace('.npy', '.png')
masks = imageio.imread(mask_file) / 255.
if masks.sum() < 4096:
continue
self.candidate_pair_range[i, 0] = min(self.candidate_pair_range[i, 0], j)
self.candidate_pair_range[i, 1] = max(self.candidate_pair_range[i, 1], j)
if j > 0:
self.flow[i, j+15] = flow
self.masks[i, j+15] = masks
else:
self.flow[i, j+16] = flow
**self.masks[i, j+16] = masks**
……
self.masks[i, j+16] shape is 2D,masks shape is 3D,is it change to self.masks[i, j+16] = masks[:,:,0]?
Then in trainer_combo.py it assert:
……
depth_files = depth_files[:self.num_imgs]
assert len(depth_files) == self.num_imgs
……
So I comment it to
……
depth_files = depth_files[:self.num_imgs]
#assert len(depth_files) == self.num_imgs
……
but then assert it:
assert x_range > 0 and y_range > 0 and z_range > 0
I dont know how to solve it,can you help me to solve it.
Thank you for your dedication and generosity in making this work available. It has been incredibly insightful and beneficial for my own projects.
when I use python train.py --config configs/default.txt --data_dir D:\OmniTrackFast\dataset\lab-coat there are some bugs:
raft_online.py
……
for i in tqdm.trange(self.num_imgs):
for j in range(-16, 17):
if j == 0:
continue
if i + j < 0 or i + j >= self.num_imgs:
continue
flow_file = os.path.join(self.flow_dir, '{}_{}.npy'.format(self.img_names[i], self.img_names[i+j]))
flow = np.load(flow_file)
mask_file = flow_file.replace('raft_exhaustive', 'full_mask').replace('.npy', '.png')
masks = imageio.imread(mask_file) / 255.
if masks.sum() < 4096:
continue
self.candidate_pair_range[i, 0] = min(self.candidate_pair_range[i, 0], j)
self.candidate_pair_range[i, 1] = max(self.candidate_pair_range[i, 1], j)
if j > 0:
self.flow[i, j+15] = flow
self.masks[i, j+15] = masks
……
self.masks[i, j+16] shape is 2D,masks shape is 3D,is it change to self.masks[i, j+16] = masks[:,:,0]?
Then in trainer_combo.py it assert:
……
depth_files = depth_files[:self.num_imgs]
assert len(depth_files) == self.num_imgs
……
So I comment it to
……
depth_files = depth_files[:self.num_imgs]
#assert len(depth_files) == self.num_imgs
……
but then assert it:
assert x_range > 0 and y_range > 0 and z_range > 0
I dont know how to solve it,can you help me to solve it.