代码调试时,显示ValueError: num_samples should be a positive integer value, but got num_samples=0
因为我用的数据集是已经划分好的,所以不需要再shuffle。加载数据时将shuffle = False,错误即可消除。
pytorch报错:ValueError: num_samples should be a positive integer value, but got num_samples=0
最新推荐文章于 2024-04-10 12:16:08 发布