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

AttributeError: 'ConfigDict' object has no attribute 'dist_params' #292

Open
wendeyy opened this issue Jan 16, 2025 · 0 comments
Open

AttributeError: 'ConfigDict' object has no attribute 'dist_params' #292

wendeyy opened this issue Jan 16, 2025 · 0 comments

Comments

@wendeyy
Copy link

wendeyy commented Jan 16, 2025

how to solve this error? anyone encountered same issue?

Error Message:

(open-mmlab) (base) cbdes@X86-GPU-office-xunlian4:~/BEVFormer$ ./tools/dist_test.sh ./projects/configs/bevformer/bevformer_base.py /home/cbdes/BEVFormer/ckpts/bevformer_r101_dcn_24ep.pth 4
/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/distributed/launch.py:178: FutureWarning: The module torch.distributed.launch is deprecated
and will be removed in future. Use torch.distributed.run.
Note that --use_env is set by default in torch.distributed.run.
If your script expects --local_rank argument to be set, please
change it to read from os.environ['LOCAL_RANK'] instead. See
https://pytorch.org/docs/stable/distributed.html#launch-utility for
further instructions

warnings.warn(
WARNING:torch.distributed.run:*****************************************
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.


projects.mmdet3d_plugin
Traceback (most recent call last):
File "./tools/test.py", line 266, in
main()
File "./tools/test.py", line 189, in main
init_dist(args.launcher, **cfg.dist_params)
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/mmcv/utils/config.py", line 507, in getattr
return getattr(self._cfg_dict, name)
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/mmcv/utils/config.py", line 48, in getattr
raise ex
AttributeError: 'ConfigDict' object has no attribute 'dist_params'
projects.mmdet3d_plugin
Traceback (most recent call last):
File "./tools/test.py", line 266, in
main()
File "./tools/test.py", line 189, in main
init_dist(args.launcher, **cfg.dist_params)
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/mmcv/utils/config.py", line 507, in getattr
return getattr(self._cfg_dict, name)
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/mmcv/utils/config.py", line 48, in getattr
raise ex
AttributeError: 'ConfigDict' object has no attribute 'dist_params'
projects.mmdet3d_plugin
Traceback (most recent call last):
File "./tools/test.py", line 266, in
main()
File "./tools/test.py", line 189, in main
init_dist(args.launcher, **cfg.dist_params)
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/mmcv/utils/config.py", line 507, in getattr
return getattr(self._cfg_dict, name)
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/mmcv/utils/config.py", line 48, in getattr
raise ex
AttributeError: 'ConfigDict' object has no attribute 'dist_params'
projects.mmdet3d_plugin
Traceback (most recent call last):
File "./tools/test.py", line 266, in
main()
File "./tools/test.py", line 189, in main
init_dist(args.launcher, **cfg.dist_params)
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/mmcv/utils/config.py", line 507, in getattr
return getattr(self._cfg_dict, name)
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/mmcv/utils/config.py", line 48, in getattr
raise ex
AttributeError: 'ConfigDict' object has no attribute 'dist_params'
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 3575259) of binary: /home/cbdes/anaconda3/envs/open-mmlab/bin/python
Traceback (most recent call last):
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/distributed/launch.py", line 193, in
main()
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/distributed/launch.py", line 189, in main
launch(args)
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/distributed/launch.py", line 174, in launch
run(args)
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/distributed/run.py", line 689, in run
elastic_launch(
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 116, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/home/cbdes/anaconda3/envs/open-mmlab/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 244, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:

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

1 participant