I am trying to relearn the Inception v3 model in a tensor stream for my own categories. I downloaded some data and formatted it in directories. When I run, the python script creates bottlenecks for the images, and then when it starts, in the first stage of training (step 0) it has a critical error, where it tries modulo to 0. It appears in the get_image_path function when calculating mod_index, which is the index% len (category_list), so should category_list be 0 correct?
Why is this happening and how can I prevent it?
EDIT: Here is the exact code that I see inside the docker
2016-07-04 01:27:52.005912: Step 0: Train accuracy = 40.0% 2016-07-04 01:27:52.006025: Step 0: Cross entropy = 1.109777 CRITICAL:tensorflow:Category has no images - validation. Traceback (most recent call last): File "tensorflow/examples/image_retraining/retrain.py", line 824, in <module> tf.app.run() File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 30, in run sys.exit(main(sys.argv)) File "tensorflow/examples/image_retraining/retrain.py", line 794, in main bottleneck_tensor)) File "tensorflow/examples/image_retraining/retrain.py", line 484, in get_random_cached_bottlenecks bottleneck_tensor) File "tensorflow/examples/image_retraining/retrain.py", line 392, in get_or_create_bottleneck bottleneck_dir, category) File "tensorflow/examples/image_retraining/retrain.py", line 281, in get_bottleneck_path category) + '.txt' File "tensorflow/examples/image_retraining/retrain.py", line 257, in get_image_path mod_index = index % len(category_list) ZeroDivisionError: integer division or modulo by zero
python machine-learning tensorflow
loganrussell48
source share