Convert-own-data-to-MNIST-format icon indicating copy to clipboard operation
Convert-own-data-to-MNIST-format copied to clipboard

AttributeError: 'NoneType' object has no attribute 'sort'

Open hinash88 opened this issue 5 years ago • 1 comments

Can anybody help to identify? I am having following error: File "convert_to_mnist_format.py", line 215, in <module> main(sys.argv) File "convert_to_mnist_format.py", line 193, in main labelsAndFiles = get_labels_and_files(argv[1]) File "convert_to_mnist_format.py", line 82, in get_labels_and_files subdir = get_subdir(folder) File "convert_to_mnist_format.py", line 75, in get_subdir listDir.sort() AttributeError: 'NoneType' object has no attribute 'sort'

hinash88 avatar Mar 24 '19 17:03 hinash88

Maybe this program don't get any picture files from folder. This program only supports PNG file.

sword-huang avatar Oct 16 '19 05:10 sword-huang