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

detectron2框架出现RuntimeError: Address already in use错误 #3

Open
sea190 opened this issue Jan 6, 2025 · 0 comments
Open

detectron2框架出现RuntimeError: Address already in use错误 #3

sea190 opened this issue Jan 6, 2025 · 0 comments

Comments

@sea190
Copy link
Owner

sea190 commented Jan 6, 2025

修改方式
image
这个文件中定义了训练端口,与用户id有关
port = 2 ** 15 + 2 ** 14 + hash(os.getuid()) % 2 ** 14
parser.add_argument("--dist-url", default="tcp://127.0.0.1:{}".format(port))
将其修改为随机即可
具体参见
https://blog.csdn.net/m0_48896123/article/details/144963923?sharetype=blogdetail&sharerId=144963923&sharerefer=PC&sharesource=m0_48896123&spm=1011.2480.3001.8118

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

1 participant