Huangying-Zhan / DF-VO

Depth and Flow for Visual Odometry
https://df-vo.readthedocs.io
MIT License
565 stars 117 forks source link

AttributeError: 'EasyDict' object has no attribute 'depth' #23

Closed quanqhow closed 3 years ago

quanqhow commented 3 years ago

After I run this command: python run.py -d options/examples/default_configuration.yml

The results showing below is: _Save result in result/tmp/0/? [y/n]y Traceback (most recent call last): File "run.py", line 84, in vo = DFVO(cfg) File "/home/qzhou10/Documents/DF-VO/libs/dfvo.py", line 51, in init self.setup() File "/home/qzhou10/Documents/DF-VO/libs/dfvo.py", line 68, in setup self.dataset = Dataset.datasetsself.cfg.dataset File "/home/qzhou10/Documents/DF-VO/libs/datasets/kitti.py", line 68, in init super(KittiOdom, self).init(*args, *kwargs) File "/home/qzhou10/Documents/DF-VO/libs/datasets/kitti.py", line 23, in init super(KITTI, self).init(args, **kwargs) File "/home/qzhou10/Documents/DF-VO/libs/datasets/dataset.py", line 31, in init self.data_dir = self.get_data_dir() File "/home/qzhou10/Documents/DF-VO/libs/datasets/kitti.py", line 105, in get_data_dir data_dir['depth_src'] = self.cfg.depth.depthsrc AttributeError: 'EasyDict' object has no attribute 'depth'

Do you know how to solve this problem? Thanks a lot.

Huangying-Zhan commented 3 years ago

HI @quanqhow could you double check your default_configuration.yml and see if depth is there. image

quanqhow commented 3 years ago

@Huangying-Zhan I found that there's a typo in depth part. I have solved this issue, thank you very much.