|
库地址:https://github.com/victordibia/handtracking.git
模型路径:handtracking/hand_inference_graph
⇒ cat hand_label_map.pbtxt
item {
id: 1
name: 'hand'
}
LOG:
$ python3 ssd.py
--> Loading model
E Catch exception when loading tensorflow model: ./frozen_inference_graph.pb!
T Traceback (most recent call last):
T File "rknn/api/rknn_base.py", line 143, in rknn.api.rknn_base.RKNNBase.load_tensorflow
T File "rknn/base/rknnlib/converter/convert_tf.py", line 93, in rknn.base.rknnlib.converter.convert_tf.convert_tf.__init__
T File "rknn/base/rknnlib/converter/tensorflowloader.py", line 53, in rknn.base.rknnlib.converter.tensorflowloader.TF_Graph_Preprocess.__init__
T AttributeError: 'NoneType' object has no attribute 'op'
done
--> Building model
E Catch exception when building RKNN model!
T Traceback (most recent call last):
T File "rknn/api/rknn_base.py", line 470, in rknn.api.rknn_base.RKNNBase.build
T File "rknn/api/rknn_base.py", line 874, in rknn.api.rknn_base.RKNNBase._quantize
T File "rknn/base/tensorzonex.py", line 213, in rknn.base.tensorzonex.get_data_file
T File "/usr/lib/python3.5/posixpath.py", line 122, in splitext
T return genericpath._splitext(p, sep, None, extsep)
T File "/usr/lib/python3.5/genericpath.py", line 118, in _splitext
T sepIndex = p.rfind(sep)
T AttributeError: 'NoneType' object has no attribute 'rfind'
done
--> Init runtime environment
done
--> Running model
E RKNN model is None
done
inference result: None
Traceback (most recent call last):
File "ssd.py", line 106, in <module>
predictions = outputs[1].reshape((1, NUM_RESULTS, 4))
TypeError: 'NoneType' object is not subscriptable
|
|