print('--> Building model')
rknn.build(do_quantization=False)
print('done')
rknn.export_rknn('./digital_gesture.rknn')
rknn.release()
不然报错
--> Loading model
E length of input_size_list is not equal to inputs
E Catch exception when loading tensorflow model: good_frozen.pb!
E Traceback (most recent call last):
E File "rknn/api/rknn_base.py", line 137, in rknn.api.rknn_base.RKNNBase.load_tensorflow
E File "rknn/base/RKNNlib/converter/convert_tf.py", line 89, in rknn.base.RKNNlib.converter.convert_tf.convert_tf.__init__
E File "/home/toybrick/.local/lib/python3.7/site-packages/rknn/base/RKNNlib/RKNNlog.py", line 327, in e
E raise ValueError(msg)
E ValueError: length of input_size_list is not equal to inputs
done
--> Building model
Traceback (most recent call last):
File "convert.py", line 17, in <module>
rknn.build(do_quantization=False)
File "/home/toybrick/.local/lib/python3.7/site-packages/rknn/api/rknn.py", line 148, in build
inputs = self.rknn_base.net.get_input_layers()
AttributeError: 'NoneType' object has no attribute 'get_input_layers'