摇滚马侬 2020-01-03 00:17 采纳率: 0%
浏览 1432

yolo3 使用convert.py报错,TypeError: buffer is too small for requested array

Traceback (most recent call last):
File "convert.py", line 262, in
_main(parser.parse_args())
File "convert.py", line 143, in _main
buffer=weights_file.read(weights_size * 4))
TypeError: buffer is too small for requested array

请大佬指导

  • 写回答

1条回答 默认 最新

  • 编码人员 2020-04-28 22:37
    关注

    我下载了官网代码直接转换,运行指令也是报这个错误,有没有人解决呀?

    Parsing section convolutional_1
    conv2d bn leaky (3, 3, 32, 64)
    Parsing section convolutional_2
    conv2d bn leaky (1, 1, 64, 32)
    Parsing section convolutional_3
    conv2d bn leaky (3, 3, 32, 64)
    Parsing section shortcut_0
    Parsing section convolutional_4
    conv2d bn leaky (3, 3, 64, 128)
    Parsing section convolutional_5
    conv2d bn leaky (1, 1, 128, 64)
    Parsing section convolutional_6
    conv2d bn leaky (3, 3, 64, 128)
    Parsing section shortcut_1
    Parsing section convolutional_7
    conv2d bn leaky (1, 1, 128, 64)
    Parsing section convolutional_8
    conv2d bn leaky (3, 3, 64, 128)
    Parsing section shortcut_2
    Parsing section convolutional_9
    conv2d bn leaky (3, 3, 128, 256)
    Traceback (most recent call last):
      File "convert.py", line 263, in <module>
        _main(parser.parse_args())
      File "convert.py", line 144, in _main
        buffer=weights_file.read(weights_size * 4))
    TypeError: buffer is too small for requested array
    
    评论

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料