【发布时间】:2020-06-18 09:27:43
【问题描述】:
设置:带有 Coral USB 加速器的 Raspberry PI 4b 4GB。
我正在运行来自 Coral USB 官方网站的 this detection program。
使用 mobilenet_ssd_v2_face_quant_postprocess_edgetpu.tflite 以 30FPS 运行检测。 Coral USB 上的 LED 会发出脉冲,which means the Edge TPU is running。
python3 detect.py --model=../all_models/mobilenet_ssd_v2_face_quant_postprocess_edgetpu.tflite --labels=../all_models/coco_labels.txt
输出是这样的流:
96% person Inference: 11.99ms FPS:22.9
运行 mymodel.tflite 以 3FPS 运行。 coral USB 上的 LED 常亮,表示 Coral USB 已初始化但未运行。
python3 detect.py --model=../all_models/mymodel.tflite --labels=../all_models/dict.txt
输出是类似 tis 的流:
85% S_13 Inference: 290.25ms FPS:3.2
如果我运行我自己的模型,但所有使用 mobilenet 的模型都以 30FPS 运行并且 LED 在所有三种情况下都闪烁,那么 GitHub 存储库中的 gstreamer、pygame 和 raspicam 示例会产生相同的结果 (3FPS) 和常亮。
我认为问题与当 Raspberry 执行我自己的模型时 Coral USB 未运行有关,该模型具有这些 specs
其他内容
我的标签与 coco_labels.txt 的格式相同,即使速度很慢,也会发生检测。因此,标签似乎不是问题。
【问题讨论】:
标签: python detection tensorflow-lite google-coral