萧安笛 2022-01-04 11:29 采纳率: 0%
浏览 21
已结题

V6.0部署自己训练的网络权重,上传图片后报错

127 0 0 1 - - [04/Jan/2022 11:16:15] "OPTIONS /predict/ HTTP/1 1" 200 -
YOLOv5 🚀 2021-12-4 torch 1 7 0 CUDA:0 (GeForce RTX 2080 Ti, 11011MiB)

127 0 0 1 - - [04/Jan/2022 11:16:16] "POST /predict/ HTTP/1 1" 500 -
Traceback (most recent call last):
File "/home/goolton/.local/lib/python3.8/site-packages/flask/app.py", line 2091, in call
return self.wsgi_app(environ, start_response)
File "/home/goolton/.local/lib/python3.8/site-packages/flask/app.py", line 2076, in wsgi_app
response = self.handle_exception(e)
File "/home/goolton/.local/lib/python3.8/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/home/goolton/.local/lib/python3.8/site-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/goolton/.local/lib/python3.8/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/home/goolton/.local/lib/python3.8/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/home/goolton/kongke_pro/test_pro/flask_app.py", line 44, in get_prediction
results = predict(opt, model, img_arr) # 预测图像
File "/home/goolton/kongke_pro/test_pro/backend/predict.py", line 45, in predict
for path, img, im0s, _ in dataset:
ValueError: too many values to unpack (expected 4)

  • 写回答

1条回答 默认 最新

  • 有问必答小助手 2022-01-06 09:49
    关注

    你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答


    本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。


    因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。

    评论

报告相同问题?

问题事件

  • 系统已结题 1月12日
  • 创建了问题 1月4日

悬赏问题

  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题