MhLiao / MaskTextSpotter

A PyTorch implementation of Mask TextSpotter
https://github.com/MhLiao/MaskTextSpotter
414 stars 96 forks source link

module 'torch.distributed' has no attribute 'deprecated' #55

Open LittleCurry opened 4 years ago

LittleCurry commented 4 years ago

pip list

toolz 0.10.0
torch 1.2.0
torchvision 0.4.0a0

finetune.yaml

SOLVER: IMS_PER_BATCH: 1

python -m torch.distributed.launch --nproc_per_node=1 tools/train_net.py --config-file configs/finetune.yaml

MhLiao commented 4 years ago

@LittleCurry This is related to the Pytorch version. You may need to modify some code if you use a higher Pytorch version.

AmberMsy commented 3 years ago

@LittleCurry Have you solved this problem? I meet the same error

AmberMsy commented 3 years ago

I solved this problem by remove deprecated, just change torch.distributed.deprecated.is_initialized() to torch.distributed.is_initialized()