chenyuntc / pytorch-book

PyTorch tutorials and fun projects including neural talk, neural style, poem writing, anime generation (《深度学习框架PyTorch:入门与实战》)
MIT License
11.99k stars 3.73k forks source link

第六章 测试时报错 #189

Open GYE19970220 opened 4 years ago

GYE19970220 commented 4 years ago

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

wym5 commented 4 years ago

把dataset中split中/换成\试试

halfsummer583 commented 4 years ago

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

dslmjyy commented 3 years ago

解决了吗