Hi,
I debugged the error and resolved the issue.After that,I got another error.
DEBUG [/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter.py:93] For node lambda_3/strided_slice with op StridedSlice, using conversion function: <function convert_strided_slice at 0x7f69d61d08>
Traceback (most recent call last):
File “…/…/mrcnn_to_trt_single.py”, line 186, in
main()
File “…/…/mrcnn_to_trt_single.py”, line 143, in main
text=True, list_nodes=list_nodes)
File “…/…/mrcnn_to_trt_single.py”, line 179, in convert_model
debug_mode = True
File “/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/conversion_helpers.py”, line 276, in from_tensorflow_frozen_model
return from_tensorflow(graphdef, output_nodes, preprocessor, **kwargs)
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 94, in convert_layer
return cls.registry_[op](name, tf_node, inputs, uff_graph, **kwargs)
File “/usr/lib/python3.6/dist-packages/uff/converters/tensorflow/converter_functions.py”, line 619, in convert_strided_slice
raise ValueError(“ellipsis_mask not supported”)
ValueError: ellipsis_mask not supported
I solved this error by changing “lambda_1”: mrcnn_detection_bboxes iof namespace_plugin_map in config.py. Then I was able to obtain the .uff model.
No. nodes: 2171
UFF Output written to mrcnn_nchw_anomalydetect.uff
UFF Text Output written to mrcnn_nchw_anomalydetect.pbtxt
But when I am running the inference,I got this error
05/07/2021-13:11:01] [I] Building and running a GPU inference engine for Mask RCNN
[05/07/2021-13:11:06] [E] [TRT] UffParser: Parser error: mrcnn_class_conv1/convolution: Order size is not matching the number dimensions of TensorRT
Also, I am not sure why the model summary of the model I trained is showing no specific shape of input.