Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading of KITTI dataset for evaluation #39

Open
Jael8300 opened this issue Nov 6, 2023 · 6 comments
Open

Downloading of KITTI dataset for evaluation #39

Jael8300 opened this issue Nov 6, 2023 · 6 comments

Comments

@Jael8300
Copy link

Jael8300 commented Nov 6, 2023

Hi,

Thank you so much for sharing your amazing work. I've got a really simple problem that I can't seem to solve, hence submitting an issue.
I was able to replicate the evaluation for the MGL dataset, however when downloading and preparing the dataset for kitti, I would always encounter the following error:

OrienterNetTest) tester@workstation3:~/ChingHui/OrienterNet$ python -m maploc.data.kitti.prepare
Traceback (most recent call last):
File "/home/tester/miniconda3/envs/OrienterNetTest/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/tester/miniconda3/envs/OrienterNetTest/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/tester/ChingHui/OrienterNet/maploc/data/kitti/prepare.py", line 100, in
"--data_dir", type=Path, default=Path(KittiDataModule.default_cfg["local_dir"])
KeyError: 'local_dir'

How can I resolve this issue? Thank you so much for your time!

@sarlinpe
Copy link
Collaborator

sarlinpe commented Nov 6, 2023

Fixed in 38e60a1.

@Jael8300
Copy link
Author

Jael8300 commented Nov 6, 2023

Thank you so much for your quick reply!

I've made amendments to my code as provided in your reply. However when I run the evaluation, it would provide me with an error
FileNotFoundError: [Errno 2] No such file or directory: '/home/tester/ChingHui/OrienterNet/datasets/kitti/2011_09_26/2011_09_26_drive_0002_sync/oxts/data/0000000048.txt'

It would seem that the files I downloaded does not have the same drive name as in names in the train_files.txt, which I assume is what is required here. How should I navigate this problem?
OrienterNet_kittidataset

@sarlinpe
Copy link
Collaborator

sarlinpe commented Feb 7, 2024

Did you eventually figure out this problem? Which lines throws this error? 2011_09_26_drive_0002_sync is included in train_files.txt so it should have been downloaded automatically - did any error appear in the downloading step?

@Jael8300
Copy link
Author

Hi! I didn't manage to solve the previous error, but instead I ran everything from the beginning again, and was able to download the kitti dataset without any trouble. However, the error this time is different and instead what I received during evaluation is the
'FileNotFoundError: Cannot find the KITTI dataset, run maploc.data.kitti.prepare' from maploc/data/kitti/dataset.py line 74.

image

When I checked the code, the error is thrown when self-root or self.root.downloaded does not exist. The self.root turns out to be datasets/kitti which exists, however a downloaded folder did not exist in the datasets/kitti folder which resulted in the thrown error.

image

Do you have any advice on how I should go about solving this error?

@Jael8300
Copy link
Author

image
As for the error mentioned previously, I tried downloading the KITTI dataset again but the 2011_09_26_drive_0002_sync doesn't seem to be available which is causing the error.

@sarlinpe
Copy link
Collaborator

There was indeed a bug in the downloading code, it has been fixed in #45. Please delete the existing data folder and run maploc.data.kitti.prepare again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants