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

TypeError: cannot pickle 'dict_keys' object #38

Open
wzh506 opened this issue Nov 23, 2024 · 1 comment
Open

TypeError: cannot pickle 'dict_keys' object #38

wzh506 opened this issue Nov 23, 2024 · 1 comment

Comments

@wzh506
Copy link

wzh506 commented Nov 23, 2024

Thanks for your great work!But I have a small problem with the implementation.
When I load the dataset,I find:
Traceback (most recent call last):
File "tools/train.py", line 260, in
main()
File "tools/train.py", line 249, in main
train_model(
File "/home/wzh/study/github/3Dobjectdetection/Sparse4D/mmdetection3d/mmdet3d/apis/train.py", line 64, in train_model
train_detector(
File "/home/wzh/study/github/3Dobjectdetection/PF-Track/mmdetection/mmdet/apis/train.py", line 244, in train_detector
runner.run(data_loaders, cfg.workflow)
File "/home/wzh/study/github/3Dobjectdetection/Sparse4D/mmcv/mmcv/runner/epoch_based_runner.py", line 127, in run
epoch_runner(data_loaders[i], **kwargs)
File "/home/wzh/study/github/3Dobjectdetection/Sparse4D/mmcv/mmcv/runner/epoch_based_runner.py", line 47, in train
for i, data_batch in enumerate(self.data_loader):
File "/home/wzh/anaconda3/envs/sparse4d/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 359, in iter
return self._get_iterator()
File "/home/wzh/anaconda3/envs/sparse4d/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 305, in _get_iterator
return _MultiProcessingDataLoaderIter(self)
File "/home/wzh/anaconda3/envs/sparse4d/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 918, in init
w.start()
File "/home/wzh/anaconda3/envs/sparse4d/lib/python3.8/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
File "/home/wzh/anaconda3/envs/sparse4d/lib/python3.8/multiprocessing/context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "/home/wzh/anaconda3/envs/sparse4d/lib/python3.8/multiprocessing/context.py", line 284, in _Popen
return Popen(process_obj)
File "/home/wzh/anaconda3/envs/sparse4d/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 32, in init
super().init(process_obj)
File "/home/wzh/anaconda3/envs/sparse4d/lib/python3.8/multiprocessing/popen_fork.py", line 19, in init
self._launch(process_obj)
File "/home/wzh/anaconda3/envs/sparse4d/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File "/home/wzh/anaconda3/envs/sparse4d/lib/python3.8/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle 'dict_keys' object
I download the full dataset and the data annotation files, So could someone help me?

@ziqipang
Copy link
Contributor

@wzh506 My guess is that you are using some newer version of mmdet3d?

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