初中生
最后登录1970-1-1
在线时间 小时
注册时间2024-4-9
|
楼主 |
发表于 2024-4-11 09:39:30
|
显示全部楼层
おおおじ。 发表于 2024-4-10 17:53
https://gitee.com/LubanCat/lubancat_ai_manual_code/tree/master/dev_env/rknn_toolkit_lite2/examples/y ...
试了一下,不报模型的错误
页面也能出摄像头的图像,但是一点击检测就画面就不动了,命令行的log如下:
I:werkzeug:172.16.11.32 - - [11/Apr/2024 09:17:04] "GET / HTTP/1.1" 200 -
[ WARN:0] global ./modules/videoio/src/cap_gstreamer.cpp (616) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
I:werkzeug:172.16.11.32 - - [11/Apr/2024 09:17:04] "GET /static/button_process.js HTTP/1.1" 304 -
--> Load RKNN model
--> Init runtime environment
I RKNN: [09:17:04.600] RKNN Runtime Information, librknnrt version: 2.0.0b0 (35a6907d79@2024-03-24T10:31:14)
I RKNN: [09:17:04.601] RKNN Driver Information, version: 0.9.3
I RKNN: [09:17:04.601] RKNN Model Information, version: 4, toolkit version: 1.5.0+1fa95b5c(compiler version: 1.5.0 (e6fe0c678@2023-05-25T16:15:03)), target: RKNPU v2, target platform: rk3588, framework name: ONNX, framework layout: NCHW, model inference type: static_shape
I:werkzeug:172.16.11.32 - - [11/Apr/2024 09:17:04] "GET /video_viewer HTTP/1.1" 200 -
I:werkzeug:172.16.11.32 - - [11/Apr/2024 09:17:14] "POST /process_status HTTP/1.1" 200 -
E Catch exception when setting inputs.
E Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/rknnlite/api/rknn_lite.py", line 201, in inference
self.rknn_runtime.set_inputs(inputs, data_type, data_format, inputs_pass_through=inputs_pass_through)
File "rknnlite/api/rknn_runtime.py", line 1082, in rknnlite.api.rknn_runtime.RKNNRuntime.set_inputs
Exception: The input[0] need 4dims input, but 3dims input buffer feed.
E:werkzeug:Error on request:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 319, in run_wsgi
execute(self.server.app)
File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 310, in execute
for data in application_iter:
File "/usr/lib/python3/dist-packages/werkzeug/wsgi.py", line 462, in __next__
return self._next()
File "/usr/lib/python3/dist-packages/werkzeug/wrappers/response.py", line 49, in _iter_encoded
for item in iterable:
File "/home/cat/lubancat-flask-opencv-rknn/controller/modules/home/views.py", line 29, in video_stream
frame = video_camera.get_frame()
File "/home/cat/lubancat-flask-opencv-rknn/controller/utils/camera.py", line 75, in get_frame
self.frame = process_image(self.image, self.outputs)
File "/home/cat/lubancat-flask-opencv-rknn/controller/utils/rknn_image.py", line 227, in process_image
input0_data = outputs[0]
TypeError: 'NoneType' object is not subscriptable
麻烦指点一下,十分感谢 |
|