zju3dv / PVO

[CVPR 2023] PVO: Panoptic Visual Odometry
https://zju3dv.github.io/pvo/
209 stars 15 forks source link

dymask_list为空 #11

Open nono666 opened 11 months ago

nono666 commented 11 months ago

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 commented 11 months ago

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 commented 10 months ago

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

nuko7055 commented 10 months ago

@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 commented 10 months ago

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 commented 10 months ago

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