I am attempting to retrain the model but am receiving the error posted below.
I have tried using the ICDAR2015 training data to ensure the appropriate formatting.
I'm using tensorflow-gpu 1.13.1 and cuda 10.
Regarding the shape I feed in, the error above shows 12 which reflects that annotation file having two lines. So for an annotation file with 4 lines, there it will have shape 24.
Traceback (most recent call last):
File "multigpu_train.py", line 203, in <module>
tf.app.run()
File "/home/lookdeep/.venv/FOTS_TF_PY2/local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "multigpu_train.py", line 169, in main
dl, rl, tl, _ = sess.run([d_loss, r_loss, total_loss, train_op], feed_dict=inp_dict)
File "/home/lookdeep/.venv/FOTS_TF_PY2/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 929, in run
run_metadata_ptr)
File "/home/lookdeep/.venv/FOTS_TF_PY2/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1152, in _run
feed_dict_tensor, options, run_metadata)
File "/home/lookdeep/.venv/FOTS_TF_PY2/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1328, in _do_run
run_metadata)
File "/home/lookdeep/.venv/FOTS_TF_PY2/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1348, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Input to reshape is a tensor with 6 values, but the requested shape has 12
[[node RoIrotate/Reshape (defined at /home/lookdeep/gits/FOTS_TF/module/stn/transformer.py:49) ]]
[[node transpose (defined at /home/lookdeep/gits/FOTS_TF/module/Recognition_branch.py:94) ]]
Caused by op u'RoIrotate/Reshape', defined at:
File "multigpu_train.py", line 203, in <module>
tf.app.run()
File "/home/lookdeep/.venv/FOTS_TF_PY2/local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "multigpu_train.py", line 81, in main
f_score, f_geometry, recognition_logits = build_graph(input_images, input_transform_matrix, input_box_masks, input_box_widths, input_seq_len)
File "multigpu_train.py", line 36, in build_graph
pad_rois = roi_rotate_part.roi_rotate_tensor_pad(shared_feature, input_transform_matrix, input_box_masks, input_box_widths)
File "/home/lookdeep/gits/FOTS_TF/module/RoI_rotate.py", line 99, in roi_rotate_tensor_pad
trans_feature_map = transformer(tile_feature_maps, transform_matrixs)
File "/home/lookdeep/gits/FOTS_TF/module/stn/transformer.py", line 49, in spatial_transformer_network
theta = tf.reshape(theta, [B, 2, 3])
File "/home/lookdeep/.venv/FOTS_TF_PY2/local/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 7179, in reshape
"Reshape", tensor=tensor, shape=shape, name=name)
File "/home/lookdeep/.venv/FOTS_TF_PY2/local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 788, in _apply_op_helper
op_def=op_def)
File "/home/lookdeep/.venv/FOTS_TF_PY2/local/lib/python2.7/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
return func(*args, **kwargs)
File "/home/lookdeep/.venv/FOTS_TF_PY2/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3300, in create_op
op_def=op_def)
File "/home/lookdeep/.venv/FOTS_TF_PY2/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1801, in __init__
self._traceback = tf_stack.extract_stack()
InvalidArgumentError (see above for traceback): Input to reshape is a tensor with 6 values, but the requested shape has 12
[[node RoIrotate/Reshape (defined at /home/lookdeep/gits/FOTS_TF/module/stn/transformer.py:49) ]]
[[node transpose (defined at /home/lookdeep/gits/FOTS_TF/module/Recognition_branch.py:94) ]]