|
I modifed ssd-model.py to conver convert ssd_mobilenet_v2_coco_2018_03_29 to RKNN as below.
rknn.load_tensorflow(tf_pb='./ssd_mobilenet_v2_coco_2018_03_29/frozen_inference_graph.pb')
inputs=['FeatureExtractor/MobilenetV2/MobilenetV2/Conv2d_0/BatchNorm/batchnorm/mul_1'],
But I got the following errors:
--> Loading model
Catch exception when loading tensorflow model: ./frozen.pb!
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/rknn/api/rknn.py", line 50, in load_tensorflow
std_values=std_values)
File "rknn/api/redirect_stdout.py", line 67, in rknn.api.redirect_stdout.redirect_stdout.func_wrapper
File "rknn/api/redirect_stdout.py", line 68, in rknn.api.redirect_stdout.redirect_stdout.func_wrapper
File "rknn/api/rknn_base.py", line 138, in rknn.api.rknn_base.RKNNBase.load_tensorflow
File "rknn/base/rknnlib/converter/convert_tf.py", line 93, in rknn.base.rknnlib.converter.convert_tf.convert_tf.__init__
File "rknn/base/rknnlib/converter/tensorflowloader.py", line 53, in rknn.base.rknnlib.converter.tensorflowloader.TF_Graph_Preprocess.__init__
AttributeError: 'NoneType' object has no attribute 'op'
done
--> Building model
Catch exception when building RKNN model!
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/rknn/api/rknn.py", line 159, in build
ret = self.rknn_base.build(do_quantization=do_quantization, dataset=dataset, pack_vdata=pre_compile)
File "rknn/api/redirect_stdout.py", line 67, in rknn.api.redirect_stdout.redirect_stdout.func_wrapper
File "rknn/api/redirect_stdout.py", line 68, in rknn.api.redirect_stdout.redirect_stdout.func_wrapper
File "rknn/api/rknn_base.py", line 404, in rknn.api.rknn_base.RKNNBase.build
File "rknn/api/rknn_base.py", line 703, in rknn.api.rknn_base.RKNNBase._quantize
File "rknn/base/tensorzonex.py", line 213, in rknn.base.tensorzonex.get_data_file
File "/usr/lib/python3.5/posixpath.py", line 122, in splitext
return genericpath._splitext(p, sep, None, extsep)
File "/usr/lib/python3.5/genericpath.py", line 118, in _splitext
sepIndex = p.rfind(sep)
AttributeError: 'NoneType' object has no attribute 'rfind'
done
Export RKNN model failed!
done
Any idea why this happens?
Pangu,
|
|