HttpExtensionErrorResponse- "message": "Image must be 416x416" - Yolov3 边缘模块

问题描述

我使用 Yolov3 镜像来部署边缘模块。 图片https://github.com/Azure/live-video-analytics/tree/master/utilities/video-analysis/yolov3-onnx 容器创建选项:{}

边缘模块正在运行

enter image description here

按照https://docs.microsoft.com/en-us/azure/media-services/live-video-analytics-edge/use-your-model-quickstart?pivots=programming-language-python创建了GraphTopology。

我在尝试进行推理时收到的以下回复

[IoTHubMonitor] [5:25:31 PM] Message received from [testingdevice/lvaEdge]:
{
  "body": {
    "code": "400","target": "http://yolov3/score","details": [
      {
        "code": "HttpExtensionErrorResponse","message": "Image must be 416x416"
      }
    ],"protocol": "http"
  },"properties": {
    "topic": "/subscriptions/f47e2355-0c1c-48a5-8b99-c13706803ce5/resourceGroups/LiveVideoAnalytics-demoApp/providers/microsoft.media/mediaservices/mediaserviceslva","subject": "/graphInstances/Sample-Graph-1/processors/httpExtension","eventType": "Microsoft.Media.Graph.Diagnostics.ProtocolError","eventTime": "2021-05-03T11:55:31.738Z","dataVersion": "1.0"
  },"systemProperties": {
    "iothub-connection-device-id": "testingdevice","iothub-connection-module-id": "lvaEdge","iothub-connection-auth-method": "{\"scope\":\"module\",\"type\":\"sas\",\"issuer\":\"iothub\",\"acceptingIpFilterRule\":null}","iothub-connection-auth-generation-id": "637543244075620591","iothub-enqueuedtime": 1620042931788,"iothub-message-source": "Telemetry","messageId": "6de28097-b9a4-4f28-b439-7c665074771d","contentType": "application/json","contentEncoding": "utf-8"
  }

你能帮我修复它吗,我想我应该做一些预处理来以预期的格式调整图像大小。非常感谢任何帮助。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)