I'm getting below error when i start training. Any help is appreciated.
100 bottleneck files created.
200 bottleneck files created.
2017-06-11 21:05:40.722552: Step 0: Train accuracy = 75.0%
2017-06-11 21:05:40.722729: Step 0: Cross entropy = 1.850812
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 43, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "/tensorflow/tensorflow/examples/image_retraining/retrain.py", line 839, in main
bottleneck_tensor))
File "/tensorflow/tensorflow/examples/image_retraining/retrain.py", line 480, in get_random_cached_bottlenecks
bottleneck_tensor)
File "/tensorflow/tensorflow/examples/image_retraining/retrain.py", line 388, in get_or_create_bottleneck
bottleneck_dir, category)
File "/tensorflow/tensorflow/examples/image_retraining/retrain.py", line 245, in get_bottleneck_path
category) + '.txt'
File "/tensorflow/tensorflow/examples/image_retraining/retrain.py", line 221, in get_image_path
mod_index = index % len(category_list)
ZeroDivisionError: integer division or modulo by zero
997 ops in the final graph.
I'm getting below error when i start training. Any help is appreciated.
100 bottleneck files created. 200 bottleneck files created. 2017-06-11 21:05:40.722552: Step 0: Train accuracy = 75.0% 2017-06-11 21:05:40.722729: Step 0: Cross entropy = 1.850812 tf.app.run(main=main, argv=[sys.argv[0]] + unparsed) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 43, in run sys.exit(main(sys.argv[:1] + flags_passthrough)) File "/tensorflow/tensorflow/examples/image_retraining/retrain.py", line 839, in main bottleneck_tensor)) File "/tensorflow/tensorflow/examples/image_retraining/retrain.py", line 480, in get_random_cached_bottlenecks bottleneck_tensor) File "/tensorflow/tensorflow/examples/image_retraining/retrain.py", line 388, in get_or_create_bottleneck bottleneck_dir, category) File "/tensorflow/tensorflow/examples/image_retraining/retrain.py", line 245, in get_bottleneck_path category) + '.txt' File "/tensorflow/tensorflow/examples/image_retraining/retrain.py", line 221, in get_image_path mod_index = index % len(category_list) ZeroDivisionError: integer division or modulo by zero 997 ops in the final graph.