FileNotFoundError: [Errno 2] No such file or directory: '.\\cifar-10-batches-py\\data_batch_1'

学习cnn时加载cifar-10-batches-py数据报错
源代码:
cifar10_dir = '.\\cifar-10-batches-py\\
报错:FileNotFoundError: [Errno 2] No such file or directory: ‘.\cifar-10-batches-py\data_batch_1’
修改为绝对路径即可,修改如下:cifar10_dir = r'E:\PycharmProject\CNN\cifar-10-python\cifar-10-batches-py'


版权声明:本文为Kenard原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。