|
本帖最后由 zhouzhouzlove 于 2019-3-11 20:54 编辑
按照toolkit工具手册的流程图,比对并照搬example文件夹中的Mobilenet_V2代码,把*.prototxt和*.caffemodel换成了自己的caffe文件,然后上虚拟机上跑了一遍,没问题,能够跑通,
但是把文件复制到3399pro板子上的时候,就挂了,输出信息如下:
[toybrick@localhost 111]$ sudo python3 ./face_det_new.py
/usr/lib64/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
--> config model
done
--> Loading model
done
--> Building model
done
--> Export RKNN model
done
--> Init runtime environment
done
--> Running model
E Catch exception when setting inputs.
T Traceback (most recent call last):
T File "rknn/api/rknn_base.py", line 614, in rknn.api.rknn_base.RKNNBase.inference
T File "rknn/api/rknn_base.py", line 532, in rknn.api.rknn_base.RKNNBase.set_inputs
T File "rknn/api/rknn_runtime.py", line 318, in rknn.api.rknn_runtime.RKNNRuntime.set_inputs
T Exception: Set inputs failed. error code: RKNN_ERR_PARAM_INVALID
Traceback (most recent call last):
File "./face_det_new.py", line 72, in <module>
show_outputs(outputs)
File "./face_det_new.py", line 6, in show_outputs
output = outputs[0][0]
TypeError: 'NoneType' object is not subscriptable
[toybrick@localhost 111]$
ubuntu虚拟机上结果如下:
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|