MicrocontrollersAndMore / TensorFlow_Tut_2_Classification_Walk-through

TensorFlow Tutorial 2: Image Classification Walk-through
41 stars 47 forks source link

faced this issue while training #1

Open mayur17mirashi opened 6 years ago

mayur17mirashi commented 6 years ago

Traceback (most recent call last): File "retrain.py", line 1221, in main() File "retrain.py", line 210, in main resized_image_tensor, bottleneck_tensor, ARCHITECTURE) File "retrain.py", line 808, in cache_bottlenecks jpeg_data_tensor, decoded_image_tensor, resized_input_tensor, bottleneck_tensor, architecture) File "retrain.py", line 848, in get_or_create_bottleneck decoded_image_tensor, resized_input_tensor, bottleneck_tensor) File "retrain.py", line 922, in create_bottleneck_file with open(bottleneck_path, 'w') as bottleneck_file: FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\hp\Desktop\TensorFlow_Tut_2_Classification_Walk-through-master\TensorFlow_Tut_2_Classification_Walk-through-master/bottleneck_data\macncheese\Homemade-One-Pot-Stovetop-Macaroni-and-Cheese-Cooked-in-Milk-by-Five-Heart-Home_700pxTitle1.jpg_inception_v3.txt'

prasanth-rgb commented 4 years ago

1. When i used one similar code from github, i had to handle the exceptions when it meet error with JPEG decoding (invalid jpeg files) for bottleneck creation.

2. For some files, bottleneck files have only NULL and loading this file followed by string.split and float conversion shall cause exception. Handled those as well.

I am not sure whether the mentioned issue belongs to that