Skip to content

Error when run TUM dataset #10

@zhanghua7099

Description

@zhanghua7099

I try to run code in TUM datasets but get the error message.

Traceback (most recent call last):
File "main.py", line 109, in
run(args)
File "main.py", line 65, in run
loader = create_dataloader(config["dataset"])
File "/home/zhy/PyProject/Python-VO/DataLoader/init.py", line 9, in create_dataloader
loader = eval(code_line)
File "", line 1, in
File "/home/zhy/PyProject/Python-VO/DataLoader/TUMRGBLoader.py", line 32, in init
self.read_imgs()
File "/home/zhy/PyProject/Python-VO/DataLoader/TUMRGBLoader.py", line 76, in read_imgs
rgb_list = lines[:, 1]
IndexError: too many indices for array

I use this code for running:
python main.py --config params/tumrgb_superpoint_supergluematch.yaml

The TUM dataset is organized as follows:
├ TUM
└rgbd_dataset_freiburg1_360
   └── depth
└ ...
   └── rgb
└ ...
   └── depth.txt
   └── rgb.txt
   └── rgbd_gt.txt

How to fix this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions