mtcnn_facenet_cpp_tensorRT icon indicating copy to clipboard operation
mtcnn_facenet_cpp_tensorRT copied to clipboard

Issue with .pb to uff conversion

Open sildipankar opened this issue 4 years ago • 1 comments

Following issue is observed:- arning: No conversion function registered for layer: L2Norm_Helper_TRT yet. Converting embeddings/Rsqrt as custom op: L2Norm_Helper_TRT Traceback (most recent call last): File "step01_pb_to_uff.py", line 33, in output_filename=uff_file, text=False) File "/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/conversion_helpers.py", line 225, in from_tensorflow debug_mode=debug_mode) File "/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter.py", line 141, in convert_tf2uff_graph uff_graph, input_replacements, debug_mode=debug_mode) File "/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter.py", line 126, in convert_tf2uff_node op, name, tf_node, inputs, uff_graph, tf_nodes=tf_nodes, debug_mode=debug_mode) File "/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter.py", line 88, in convert_layer fields = cls.parse_tf_attrs(tf_node.attr) File "/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter.py", line 269, in parse_tf_attrs return {key: cls.parse_tf_attr_value(val) for key, val in attrs.items() if val is not None and val.WhichOneof('value') is not None} File "/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter.py", line 269, in return {key: cls.parse_tf_attr_value(val) for key, val in attrs.items() if val is not None and val.WhichOneof('value') is not None} File "/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter.py", line 265, in parse_tf_attr_value return cls.convert_tf2uff_field(code, val) File "/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter.py", line 226, in convert_tf2uff_field if isinstance(val, tf.AttrValue): This was mentioned in https://github.com/nwesem/mtcnn_facenet_cpp_tensorRT/issues/9 but I'm also using Jetpack 4.4 and it seem sthe project is updated for that. Tensorflow Version 2.321 is used.

sildipankar avatar Dec 28 '20 17:12 sildipankar

It works with tensorflow 1.15.0 or 1.15.2 version. please try with it

jishang1602 avatar Dec 29 '20 09:12 jishang1602