Cause:
use mmdetection’s tools/benchmark An error occurs when py calculates FPS
the error contents are as follows:
Traceback (most recent call last):
File "tools/analysis_tools/benchmark.py", line 191, in <module>
main()
File "tools/analysis_tools/benchmark.py", line 183, in main
init_dist(args.launcher, **cfg.dist_params)
File "D:\Anaconda\envs\eagermot\lib\site-packages\mmcv\runner\dist_utils.py", line 18, in init_dist
_init_dist_pytorch(backend, **kwargs)
File "D:\Anaconda\envs\eagermot\lib\site-packages\mmcv\runner\dist_utils.py", line 32, in _init_dist_pytorch
dist.init_process_group(backend=backend, **kwargs)
File "D:\Anaconda\envs\eagermot\lib\site-packages\torch\distributed\distributed_c10d.py", line 510, in init_process_group
timeout=timeout))
File "D:\Anaconda\envs\eagermot\lib\site-packages\torch\distributed\distributed_c10d.py", line 597, in _new_process_group_helper
raise RuntimeError("Distributed package doesn't have NCCL "
RuntimeError: Distributed package doesn't have NCCL built in
Cause analysis:
Windows does not support nccl backend
Solution:
1. Locate the following code location
File "D:\Anaconda\envs\eagermot\lib\site-packages\mmcv\runner\dist_utils.py", line 32, in _init_dist_pytorch
2. Add code before 1 (line 32)
backend='gloo'
Read More:
- [Solved] RuntimeError: NCCL error in: XXX, unhandled system error, NCCL version 2.7.8
- [Pytorch Error Solution] Pytorch distributed RuntimeError: Address already in use
- Using postman Test Django Interface error: RuntimeError:You called this URL via POST,but the URL doesn‘t end in a slash
- [Solved] mmdetection Error: ImportError: /home/user/repos/mmdetection/mmdet/ops/dcn/deform_conv_cuda.cpython-37m-x
- RuntimeError: Address already in use [How to Solve]
- RuntimeError: NCCL Error 2: unhandled system error [How to Solve]
- [Solved] PyTorch Caught RuntimeError in DataLoader worker process 0和invalid argument 0: Sizes of tensors mus
- Error:output with shape [1, 224, 224] doesn‘t match the broadcast shape [3, 224, 224]
- [Solved] Python matplotlib Error: RuntimeError: In set_size: Could not set the fontsize…
- [Solved] RuntimeError: function ALSQPlusBackward returned a gradient different than None at position 3, but t
- [Solved] Sudo doesn‘t work: “/etc/sudoers is owned by uid 1000, should be 0”
- [ncclUnhandledCudaError] unhandled cuda error, NCCL version xx.x.x
- [Solved] Pyinstaller Package and Run Error: RuntimeError: Unable to open/read ui device
- [Solved] Pymysql Use Error: RuntimeError: ‘cryptography‘ package is required for sha256_password
- Jetson MONAILabel(arm) Failed to Run distributed Module [How to Solve]
- [Solved] RuntimeError: ProcessGroupNCCL is only supported with GPUs, no GPUs found
- [Solved] python tqdm raise RuntimeError(“cannot join current thread“) RuntimeError: cannot join current thr
- [Solved] Grid Search Error (GridSearchCV): ‘ascii‘ codec can‘t encode characters in position 18-20: ordinal not in r
- [Solved] DDP/DistributedDataParallel Error: RuntimeError: Address already in use
- Python installs virtualenv through PIP and always reports an error: response.py“, line 438, in _error_catcher yield