-
Notifications
You must be signed in to change notification settings - Fork 29
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
met one error when run test.py for scannet dataset. KeyError: Caught KeyError in DataLoader worker process 0. KeyError: 'image_paths' #20
Comments
Hi @jasmine202106 , Did you follow our ScanNet instructions in README? |
the filenames in the sens_reader/scans/scene0000_00/out extracted from sensreader are 0.jpg, 0.txt, 1.jpg, 1.txt......, not frame-000001.color.jpg ..... others are all ok with your instruction. |
Are you running with One more thing about filenames. If your names are like |
[root@65eb20bdb6a8:/mmdetection3d#]python tools/create_data.py scannet --root-path ./data/scannet --out-dir ./data/scannet --extra-tag scannet --dataset scannet_monocular root@65eb20bdb6a8:/mmdetection3d#python tools/create_data.py scannet_monocular --root-path ./data/scannet --out-dir ./data/scannet --extra-tag scannet i update the lines in scannet_data_utils.py: then: i have no _info.txt, the files in out like this: i try to update the filenames to frame-000001.color.jpg frame-000001.pose.txt......, or 000001.color.jpg 000001.pose.txt, but still can not solve the problem. |
Also my PR for ScanNet preprocessing is today merged to I'm going to update this here when I have some time (very likely on this weekend). Sorry again for your inconveniences. |
PR #21 aims to merge the full ScanNet processing from |
Hi, when i run test.py for scannet dataset, i met one error.
please help, thanks very much.
root@65eb20bdb6a8:/mmdetection3d# python tools/test.py configs/imvoxelnet/imvoxelnet_scannet.py ./data/checkpoints/scannet.pth --show --show-dir ./data/scannet/show-dir/
Use load_from_local loader
[ ] 0/6, elapsed: 0s, ETA:Traceback (most recent call last):
File "tools/test.py", line 153, in
main()
File "tools/test.py", line 129, in main
outputs = single_gpu_test(model, data_loader, args.show, args.show_dir)
File "/mmdetection3d/mmdet3d/apis/test.py", line 27, in single_gpu_test
for i, data in enumerate(data_loader):
File "/opt/conda/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 363, in next
data = self._next_data()
File "/opt/conda/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 989, in _next_data
return self._process_data(data)
File "/opt/conda/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1014, in _process_data
data.reraise()
File "/opt/conda/lib/python3.7/site-packages/torch/_utils.py", line 395, in reraise
raise self.exc_type(msg)
Original Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 185, in _worker_loop
data = fetcher.fetch(index)
File "/opt/conda/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/opt/conda/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/mmdetection3d/mmdet3d/datasets/custom_3d.py", line 292, in getitem
return self.prepare_test_data(idx)
File "/mmdetection3d/mmdet3d/datasets/custom_3d.py", line 166, in prepare_test_data
input_dict = self.get_data_info(index)
File "/mmdetection3d/mmdet3d/datasets/scannet_monocular_dataset.py", line 19, in get_data_info
for i in range(len(info['image_paths'])):
KeyError: 'image_paths'
The text was updated successfully, but these errors were encountered: