HRNet-Semantic-Segmentation
HRNet-Semantic-Segmentation copied to clipboard
AttributeError: SyncBatchNorm is only supported within torch.nn.parallel.DistributedDataParallel?
i also have this problem, do you solve it now?
SyncBatchNorm only used for multi-GPU parallel training, if you only have one GPU to train, you can change "torch.nn.SyncBatchNorm" to "torch.nn.BatchNorm2d", so you can solve this problem.
me too here are the details:
=> init weights from normal distribution
Traceback (most recent call last):
File "tools/test.py", line 139, in
Also have this problem. And i'm using DDP training.
CUDA_VISIBLE_DEVICES=0,1 python3 -m torch.distributed.launch --nproc_per_node=2 train.py ...