Open iariav opened 2 years ago
DepthFormer as discussed in the paper doesn't require pose information, however it was designed to also work in the generalized stereo setting, using multiple cameras at each time step. Seems like the model requires this information, I'll try to modify it soon to support temporal-only, but in the meantime you can just comment out all parts related to stereo
.
Hi, when training a DepthFormerModel, in the process_stereo function
it fails if there is no 'pose' in the batch. is it designed to work only with datasets with pose information (training on custom dataset)? thanks
Hi iarav, I met the same problem with you. And I tried replacing line 64~67 with the followings:
if 'pose' in batch:
for key in batch['pose'].keys():
if not is_str(key) and key != 0:
new_intrinsics[key] = batch['intrinsics'][0]
else:
new_intrinsics[-1] = batch['intrinsics'][0]
new_intrinsics[1] = batch['intrinsics'][0]
batch['intrinsics'] = new_intrinsics
and that works well for me. Hopefully this will help you!
Hi, when training a DepthFormerModel, in the process_stereo function https://github.com/TRI-ML/vidar/blob/a306e23cc47ae05a0c35b0bf8acf7112c87c049c/vidar/arch/models/depth/DepthFormerModel.py#L64
it fails if there is no 'pose' in the batch. is it designed to work only with datasets with pose information (training on custom dataset)? thanks
Hi iarav, I met the same problem with you. And I tried replacing line 64~67 with the followings:
if 'pose' in batch: for key in batch['pose'].keys(): if not is_str(key) and key != 0: new_intrinsics[key] = batch['intrinsics'][0] else: new_intrinsics[-1] = batch['intrinsics'][0] new_intrinsics[1] = batch['intrinsics'][0] batch['intrinsics'] = new_intrinsics
and that works well for me. Hopefully this will help you!
Hi, don't know if you are still there; I replace the code as you have mentioned above, the "pose" bug is solved, however a new bug jump out as follows:
Traceback (most recent call last):
File "scripts/run.py", line 25, in
Have you ever met this? thanks
Hi, when training a DepthFormerModel, in the process_stereo function
https://github.com/TRI-ML/vidar/blob/a306e23cc47ae05a0c35b0bf8acf7112c87c049c/vidar/arch/models/depth/DepthFormerModel.py#L64
it fails if there is no 'pose' in the batch. is it designed to work only with datasets with pose information (training on custom dataset)? thanks