I ran train.sh on a number of JPEG images, all of them more or less below 200 KB. Some are larger, and these are typically the ones that throw the error message. Below is the output:
tensorflow.python.framework.errors.InvalidArgumentError: Invalid JPEG data, size 885566
[[Node: DecodeJpeg = DecodeJpeg[acceptable_fraction=1, channels=3, fancy_upscaling=true, ratio=1, try_recover_truncated=false, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_DecodeJpeg/contents_0)]]
Caused by op u'DecodeJpeg', defined at:
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 716, in main
create_inception_graph())
File "tensorflow/examples/image_retraining/retrain.py", line 300, in create_inception_graph
RESIZED_INPUT_TENSOR_NAME]))
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/importer.py", line 274, in import_graph_def
op_def=op_def)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2260, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1230, in __init__
self._traceback = _extract_stack()
Is there an upper limit for the JPEG filesize or pixel count?
I ran train.sh on a number of JPEG images, all of them more or less below 200 KB. Some are larger, and these are typically the ones that throw the error message. Below is the output:
Is there an upper limit for the JPEG filesize or pixel count?