Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行RSN18.mpii出错 #20

Open
YuQi9797 opened this issue Apr 19, 2021 · 2 comments
Open

运行RSN18.mpii出错 #20

YuQi9797 opened this issue Apr 19, 2021 · 2 comments

Comments

@YuQi9797
Copy link

作者您好,我再运行程序时,使用命令
python -m torch.distributed.launch --nproc_per_node=1 train.py

但是错误告诉我:
AttributeError: 'Engine' object has no attribute 'local_rank'.

请问是我分布式这里出错了吗? 该如何处理呢?

@YuQi9797
Copy link
Author

https://github.com/caiyuanhao1998/RSN/blob/master/cvpack/torch_modeling/engine/engine.py#L55-L66

当我self.distributed 未False时,似乎self.local_rank并没有定义。

@KAWAKO-in-GAYHUB
Copy link

image
强行在train.py里把它屏蔽掉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants