Open ChiaoSun opened 6 years ago
I have meet the same problem. Have you solved the problem?@ChiaoSun
Hi @chituma110 , I haven't 100% solved this problem yet. But I already know this problem caused by the new string format in python 3.6. Therefore, I replace line 169 with name = "p{0}".format(str(index+2)) which suit on python 3.5. It looks like solved this error but get another error. Maybe you can try it.
I too get this error, using Windows 8, python 3.5
We're using python 3.6 ...sorry, never tried on 3.5
**After running this line from akshaybapat04: <name = "p{index_substi + 2}".format(index_substri = index)> I get the following error:**
InvalidArgumentError Traceback (most recent call last) /usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/common_shapes.py in _call_cpp_shape_fn_impl(op, input_tensors_needed, input_tensors_as_shapes_needed, require_shape_fn) 653 graph_def_version, node_def_str, input_shapes, input_tensors, --> 654 input_tensors_as_shapes, status) 655 except errors.InvalidArgumentError as err:
/usr/lib/python3.5/contextlib.py in exit(self, type, value, traceback) 65 try: ---> 66 next(self.gen) 67 except StopIteration:
/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/errors_impl.py in raise_exception_on_not_ok_status() 465 compat.as_text(pywrap_tensorflow.TF_Message(status)), --> 466 pywrap_tensorflow.TF_GetCode(status)) 467 finally:
InvalidArgumentError: indices.shape[-1] must be <= params.rank, but saw indices shape: [1,?,3] and params shape: [1,?] for 'rpn_8/GatherNd_1' (op: 'GatherNd') with input shapes: [1,?], [1,?,3].
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
Hi, I got a SyntaxError: invalid syntax in
keras_rcnn\models_rpn.py", line 169 name = f"p{index + 2}"
I use anaconda 3 and python 3.5, anyone can help me fix this problem?