Closed fangziy closed 1 year ago
If you train on one single GPU, try to modify the config file to norm_cfg=dict(type='BN', requires_grad=True)
If you train on one single GPU, try to modify the config file to
norm_cfg=dict(type='BN', requires_grad=True)
Hello author, I am trying to train with single player four cards based on reference./tools/dist_train.sh ${CONFIG_FILE} ${GPU_NUM} [optional arguments]. My command is./tools/dist_train.sh ./configs/lsknet/lsk_s_fpn_3x_hrscle90.py 4, but this issue still occurs: RuntimeError: Default process group has not been initialized, please make sure to call init Process_ Group May I ask how I should do it? Thank you.
If you using 4 GPUs, you can set norm_cfg=dict(type='SyncBN', requires_grad=True)
After setting up what you said, using 4 GPUs for training still shows this error. How can I solve it? Thank you. The training command I use is: ./tools/dist_train.sh ./configs/lsknet/lsk_s_fpn_3x_hrsc_le90.py 4 Thank you
If you using 4 GPUs, you can set
norm_cfg=dict(type='SyncBN', requires_grad=True)
After setting up what you said, using 4 GPUs for training still shows this error. How can I solve it? Thank you. The training command I use is: ./tools/dist_train.sh ./configs/lsknet/lsk_s_fpn_3x_hrsc_le90.py 4 Thank you
Prerequisite
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
master branch https://github.com/open-mmlab/mmrotate
Environment
sys.platform: linux Python: 3.8.8 (default, Feb 24 2021, 21:46:12) [GCC 7.3.0] CUDA available: True GPU 0: NVIDIA GeForce RTX 4090 CUDA_HOME: /usr/local/cuda NVCC: Cuda compilation tools, release 11.1, V11.1.105 GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 PyTorch: 1.8.1 PyTorch compiling details: PyTorch built with:
TorchVision: 0.9.1 OpenCV: 4.8.0 MMCV: 1.7.1 MMCV Compiler: GCC 7.3 MMCV CUDA Compiler: 11.1 MMRotate: 0.3.4+12961ad
Reproduces the problem - code sample
CUDA_VISIBLE_DEVICES=0 python tools/train.py /root/workspace/Large-Selective-Kernel-Network/configs/lsknet/lsk_t_fpn_1x_dota_le90.py
Reproduces the problem - command or script
CUDA_VISIBLE_DEVICES=0 python tools/train.py /root/workspace/Large-Selective-Kernel-Network/configs/lsknet/lsk_t_fpn_1x_dota_le90.py
Reproduces the problem - error message
RuntimeError: Default process group has not been initialized, please make sure to call init_process_group.
Additional information
你好,我下载了预训练模型后,想使用您的config文件运行,但是报错了RuntimeError: Default process group has not been initialized, please make sure to call init_process_group.
在同样的环境下,我运行Orien RCNN是不会报错的,请问这是什么问题,应该如何解决呢?