RSN
RSN copied to clipboard
运行RSN18.mpii出错
作者您好,我再运行程序时,使用命令
python -m torch.distributed.launch --nproc_per_node=1 train.py
但是错误告诉我: AttributeError: 'Engine' object has no attribute 'local_rank'.
请问是我分布式这里出错了吗? 该如何处理呢?
https://github.com/caiyuanhao1998/RSN/blob/master/cvpack/torch_modeling/engine/engine.py#L55-L66
当我self.distributed 未False时,似乎self.local_rank并没有定义。
强行在train.py里把它屏蔽掉