pytorch-book icon indicating copy to clipboard operation
pytorch-book copied to clipboard

第六章 测试时报错

Open GYE19970220 opened this issue 5 years ago • 3 comments

请问各位前辈,训练成功了,测试时报错: imgs = sorted(imgs, key=lambda x: int(x.split('.')[-2].split('/')[-1])) ValueError: invalid literal for int() with base 10: 'test1\\1' 是什么意思?

GYE19970220 avatar Oct 17 '19 10:10 GYE19970220

把dataset中split中/换成\试试

wym5 avatar May 24 '20 02:05 wym5

主函数中import models出错该怎么改啊

halfsummer583 avatar Aug 19 '20 08:08 halfsummer583

解决了吗

dslmjyy avatar Apr 08 '21 02:04 dslmjyy