WenmuZhou / DBNet.pytorch

A pytorch re-implementation of Real-time Scene Text Detection with Differentiable Binarization
Apache License 2.0
946 stars 249 forks source link

代码在单机多卡时无法运行 #159

Closed lizhenye2017 closed 1 year ago

lizhenye2017 commented 2 years ago

您好大佬,请问代码在单机三卡时无法运行如何处理 您的原代码直接运行报错: ValueError: Error initializing torch.distributed using env:// rendezvous: environment variable MASTER_ADDR expected, but not set 以下改动后:程序直接卡死,一直无反应 os.environ['MASTER_ADDR'] = 'localhost' os.environ['MASTER_PORT'] = '5668'

麻烦给点帮助,谢谢啦