ResNet-50-CBAM-PyTorch icon indicating copy to clipboard operation
ResNet-50-CBAM-PyTorch copied to clipboard

Please tell me how to deal with RuntimeError: connect() timed out

Open Fight4fun-ych opened this issue 2 years ago • 5 comments

Fight4fun-ych avatar Mar 26 '22 10:03 Fight4fun-ych

将train.py中的os.envion['MASTER_ADDR']='xxxx'和os.envion['MASTER_PORT']='xxxx',分别替换为自己电脑的IP地址和端号试试。

poetteop avatar Apr 04 '22 13:04 poetteop

谢谢你,我会尝试,但如果是在学校的集群服务器上也是同等替换吗

------------------ 原始邮件 ------------------ 发件人: "Ugenteraan/ResNet-50-CBAM-PyTorch" @.>; 发送时间: 2022年4月4日(星期一) 晚上9:30 @.>; @.@.>; 主题: Re: [Ugenteraan/ResNet-50-CBAM-PyTorch] Please tell me how to deal with RuntimeError: connect() timed out (Issue #5)

将train.py中的os.envion['MASTER_ADDR']='xxxx'和os.envion['MASTER_PORT']='xxxx',分别替换为自己电脑的IP地址和端号试试。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Fight4fun-ych avatar May 04 '22 12:05 Fight4fun-ych

image 请问这种错误如何解决啊?好久都没解决,没办法了,特来请教 [email protected]

zyh477 avatar Dec 06 '22 09:12 zyh477

图像请问这种错误如何解决啊?好久都没解决,没办法了,特来请教 [email protected]

你可以试试把“class_idx = self.classes.index(x.split('/')[-2])”中得“/”改为“\\”。

poetteop avatar Dec 06 '22 10:12 poetteop

图像请问这种错误如何解决啊?好久都没解决,没办法了,特来请教 [email protected]

你可以试试把“class_idx = self.classes.index(x.split('/')[-2])”中得“/”改为“\”。

多谢老大,修改了相关的代码和一些配置后可以运行了,多谢老大的贡献。还有一个问题,就是对老大代码进行学习后,新建了一个文件夹放了几张图片,想试着进行热力图绘制,但出现了模型加载正常,但并不运行的情况,如图 image 请教一下老大,可有解决之道,刚入行的小白,不太懂(哭)

zyh477 avatar Dec 09 '22 09:12 zyh477