Hi,
I tried to inceptionv3 tensorflow model to uff following the command:
convert-to-uff tensorflow -o ./models/tensorflow_inception_graph.uff.pb --input-file
./models/tensorflow_inception_graph.pb -O softmax
there are some error.
Warning: No conversion function registered for layer: ExpandDims yet.
…
Warning: No conversion function registered for layer: Cast yet.
…
Warning: No conversion function registered for layer: DecodeJpeg yet.
Converting as custom op DecodeJpeg DecodeJpeg
Traceback (most recent call last):
File “/usr/local/bin/convert-to-uff”, line 11, in
sys.exit(main())
File “/usr/local/lib/python2.7/dist-packages/uff/bin/convert_to_uff.py”, line 104, in main
output_filename=args.output
File “/usr/local/lib/python2.7/dist-packages/uff/converters/tensorflow/conversion_helpers.py”, line 103, in from_tensorflow_frozen_model
return from_tensorflow(graphdef, output_nodes, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/uff/converters/tensorflow/conversion_helpers.py”, line 75, in from_tensorflow
name=“main”)
File “/usr/local/lib/python2.7/dist-packages/uff/converters/tensorflow/converter.py”, line 64, in convert_tf2uff_graph
uff_graph, input_replacements)
File “/usr/local/lib/python2.7/dist-packages/uff/converters/tensorflow/converter.py”, line 51, in convert_tf2uff_node
op, name, tf_node, inputs, uff_graph, tf_nodes=tf_nodes)
File “/usr/local/lib/python2.7/dist-packages/uff/converters/tensorflow/converter.py”, line 32, in convert_layer
return cls.registry_[op](name, tf_node, inputs, uff_graph, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/uff/converters/tensorflow/converter_functions.py”, line 26, in convert_const
array = tf2uff.convert_tf2numpy_const_node(tf_node)
File “/usr/local/lib/python2.7/dist-packages/uff/converters/tensorflow/converter.py”, line 99, in convert_tf2numpy_const_node
array = np.fromstring(data, dtype=np_dtype)
ValueError: zero-valued itemsize
Thanks
err.log (16 KB)