TensorFlow2.0-Examples
TensorFlow2.0-Examples copied to clipboard
执行$ python yymnist/make_data.py --images_num 1000 --images_path ./data/dataset/train --labels_txt ./data/dataset/yymnist_ train.txt
出现
Traceback (most recent call last):
File "yymnist/make_data.py", line 114, in
出现了同样的错误
我又用了自己的训练集测试可以了,不用yymnist。
When reading a image with imread, if the path doesn't exist, it will return a None without raising an error. A None object can't be resized, thus having an assertion failure. You may want to check the path of your training data.
我又用了自己的训练集测试可以了,不用yymnist。
我用自己的训练集发现报错如下: Traceback (most recent call last): File "make_data.py", line 111, in
data[0] = make_image(data, image_paths[idx], ratio) IndexError: list index out of range