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

dymask_list为空 #11

Open
nono666 opened this issue Dec 11, 2023 · 5 comments
Open

dymask_list为空 #11

nono666 opened this issue Dec 11, 2023 · 5 comments

Comments

@nono666
Copy link

nono666 commented Dec 11, 2023

Traceback (most recent call last):
File "/mnt/share_disk/lvnuo/LN/code/pvo/VO_Module/evaluation_scripts/test_vo2.py", line 93, in
for i_batch, item in enumerate(train_loader):
File "/usr/local/envs/pvoenv/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 521, in next
data = self._next_data()
File "/usr/local/envs/pvoenv/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1203, in _next_data
return self._process_data(data)
File "/usr/local/envs/pvoenv/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1229, in _process_data
data.reraise()
File "/usr/local/envs/pvoenv/lib/python3.9/site-packages/torch/_utils.py", line 434, in reraise
raise exception
IndexError: Caught IndexError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/local/envs/pvoenv/lib/python3.9/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/envs/pvoenv/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/envs/pvoenv/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/envs/pvoenv/lib/python3.9/site-packages/torch/utils/data/dataset.py", line 308, in getitem
return self.datasets[dataset_idx][sample_idx]
File "/mnt/share_disk/lvnuo/LN/code/pvo/VO_Module/droid_slam/data_readers/base.py", line 189, in getitem
mask, v = self.class.dymask_read(dymask_list[i])
IndexError: list index out of range

我在运行test_vo_scene.sh时报如下的错误,请帮帮我

@nuko7055
Copy link

Hi,

The reason why the dynamic mask list is empty is the "generate_dynamic_masks.py" (tools/datasets/generate_dynamic_masks.py) only inference the mask for "clone" which is for training. The 15-deg-left (using in testing) doesn't inference. This is my simple debug log for the github repo. Hope it helps you.

https://hackmd.io/@neko7055/HJCTkx7U6

@110sha
Copy link

110sha commented Jan 15, 2024

@nuko7055 Your link cannot be opened. What is the solution?

@nuko7055
Copy link

@nuko7055 Your link cannot be opened. What is the solution?

I modified tools/datasets/generate_dynamic_masks.py to look like the following.
image

@nuko7055
Copy link

nuko7055 commented Jan 15, 2024

By the way, VO_Module/droid_slam/data_readers/vkitti2.py loads the dynamic mask with wrong path. You also need to modify it to look like the following.

From
image
To
image

@110sha
Copy link

110sha commented Jan 15, 2024

@nuko7055 Thank you very much for providing the solution, it's very useful!

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

3 participants