Convert-own-data-to-MNIST-format
Convert-own-data-to-MNIST-format copied to clipboard
AttributeError: 'NoneType' object has no attribute 'sort'
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'
Maybe this program don't get any picture files from folder. This program only supports PNG file.