I am converting tensorflow resnet-50 Frcnn pb file to uff using convert-to-uff script.
I have error as
Traceback (most recent call last):
File "/home/itc/venv/bin/convert-to-uff", line 8, in <module>
sys.exit(main())
File "/home/itc/venv/lib/python3.6/site-packages/uff/bin/convert_to_uff.py", line 92, in main
debug_mode=args.debug
File "/home/itc/venv/lib/python3.6/site-packages/uff/converters/tensorflow/conversion_helpers.py", line 229, in from_tensorflow_frozen_model
return from_tensorflow(graphdef, output_nodes, preprocessor, **kwargs)
File "/home/itc/venv/lib/python3.6/site-packages/uff/converters/tensorflow/conversion_helpers.py", line 106, in from_tensorflow
pre.preprocess(dynamic_graph)
File "/home/itc/TensorRT/TensorRT-7.0.0.11/samples/sampleUffFasterRCNN/config.py", line 34, in preprocess
dynamic_graph.remove('input_2')
File "/home/itc/venv/lib/python3.6/site-packages/uff/bin/../../graphsurgeon/DynamicGraph.py", line 470, in remove
nodes = self._force_to_nodes(nodes)
File "/home/itc/venv/lib/python3.6/site-packages/uff/bin/../../graphsurgeon/DynamicGraph.py", line 324, in _force_to_nodes
buf = self._force_to_names(buf)
File "/home/itc/venv/lib/python3.6/site-packages/uff/bin/../../graphsurgeon/DynamicGraph.py", line 307, in _force_to_names
assert False, "The name %s does not exist" % el
AssertionError: The name input_2 does not exist
When I remove input_2 in config.py, I have another error as
Traceback (most recent call last):
File "/home/itc/venv/bin/convert-to-uff", line 8, in <module>
sys.exit(main())
File "/home/itc/venv/lib/python3.6/site-packages/uff/bin/convert_to_uff.py", line 92, in main
debug_mode=args.debug
File "/home/itc/venv/lib/python3.6/site-packages/uff/converters/tensorflow/conversion_helpers.py", line 229, in from_tensorflow_frozen_model
return from_tensorflow(graphdef, output_nodes, preprocessor, **kwargs)
File "/home/itc/venv/lib/python3.6/site-packages/uff/converters/tensorflow/conversion_helpers.py", line 110, in from_tensorflow
gs.extras.process_dilated_conv(dynamic_graph)
File "/home/itc/venv/lib/python3.6/site-packages/uff/bin/../../graphsurgeon/extras.py", line 32, in process_dilated_conv
crops = dynamic_graph.find_node_inputs_by_name(chain[-1], "crops")[0]
IndexError: list index out of range
My config.py and pb file are attached.
config.log is config.py and plate.pb file is in the link. The pb file size is bog so I can’t attach in this fourm.
config.log (1.6 KB)