系统环境:Win10+Python3.6.5+YOLOV3

文章目录

  • 1.错误提示
  • 2.错误原因
  • 3.解决办法

1.错误提示

Sizes of tensors must match except in dimension 1. Got 85 and 6 in dimension 2

2.错误原因

该错误主要是由于cfg文件内容配置错误

cfg文件当中的classes的默认值为80,filters初始值为255。

当中的classes数目需要根据自己训练模型进行修改,filters的值根据classes的值和num的值计算的来

3.解决办法

如果识别种类为1时:classes=1,num=6,filters=18。

[convolutional]
size=1
stride=1
pad=1
filters=18
activation=linear[yolo]
mask = 0,1,2
anchors = 10,14,  23,27,  37,58,  81,82,  135,169,  344,319
classes=1
num=6
jitter=.3
ignore_thresh = .7
truth_thresh = 1
random=1

Sizes of tensors must match except in dimension 1. Got 85 and 6 in dimension 2相关推荐

  1. invalid argument 0: Sizes of tensors must match except in dimension 0. Got 1

    invalid argument 0: Sizes of tensors must match except in dimension 0. Got 1 原因:dataloader 需要的数据维度是一 ...

  2. RuntimeError: Sizes of tensors must match except in dimension 1. Got 61 and 60 in dimension 2

    1. 背景介绍 在训练语义分割模型时,出现以下错误: RuntimeError: Sizes of tensors must match except in dimension 1. Got 61 a ...

  3. RuntimeError: Sizes of tensors must match except in dimension 2. Got 5 and 4

    调试代码的时候,遇到***RuntimeError: Sizes of tensors must match except in dimension 2. Got 5 and 4*** 这个问题, 解 ...

  4. RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1.

    最近在修改模型不支持的算子后,由于对模型的效果产生了影响,所以需要进行微调训练,但是训练的时候报错了,如下: File "/home/xxxxxxx/EdgeNets/nn_layers/e ...

  5. pytorch dataload 出错:: invalid argument 0: Sizes of tensors must match except in dimension 0

    错误信息:"RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got ...

  6. Pytorch_Geometric(PyG)使用DataLoader报错RuntimeError: Sizes of tensors must match except in dimension 0.

    使用Pytorch_Geometric(PyG)时构建DataLoader,从DataLoader获取样本Batch时报错:RuntimeError: Sizes of tensors must ma ...

  7. RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0—问题分析

    声明: 这里仅仅提供一个思路,暂时没有绝对正确通用的解决方案 作者:{ 墨理 } 感谢通过私信.评论交流,协力探讨解决问题的同学 UP .Penser 文章目录 探讨的 pytorch 报错信息如下 ...

  8. 记录解决RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 27 but got size

    问题描述 在做目标检测服务过程中,将yolov7模型通过flask打包成预测服务API,此次训练的图像输入大小是1280,输入预测图片是如果图像大于1280则预测成功,小于1280则报RuntimeE ...

  9. Sizes of tensors must match except in dimension 1. Expected size 24 but got size 25 for tensor numbe

    在做图像分割的时候遇到了错误,错误如下: File "D:/segmentation/Pytorch-UNet-master/train.py", line 193, in < ...

  10. Sizes of tensors must match except in dimension 1. Got 61 and 60 in dimension 2

    1. 背景介绍       在训练编码解码网络模型时,出现以下错误: RuntimeError: Sizes of tensors must match except in dimension 1. ...

最新文章

  1. 计算机学硕哪些学校好考,什么学校研究生好考,计算机专业研究生哪个学校好考一点...
  2. 【Android 安全】使用 360 加固宝加固应用 ( 加固工具准备 | 生成签名 APK | 加固操作 | 反编译验证加固效果 )
  3. 5界面怎么做窗帘拉动的效果_布艺窗帘款式有哪些?附2020年最新窗帘款式图!...
  4. JAVA NIO概述(一):I/O模型
  5. cassandra使用心得_使用Spring Data Cassandra缓存的预备语句
  6. 认知:什么是真正的产品思维?
  7. angular 获取ng-repeat完成状态 $last
  8. 设计模式常见面试题汇总
  9. 大话设计模式之装饰者模式
  10. 熬了多少个夜晚,大家期待的《网络工程师思科华为华三实战案例红宝书》即网工必备技术命令大全版本1完书...
  11. debian笔记本电源管理
  12. 档案管理系统,项目总结
  13. 计算机专业研究生和本科生工资差距,本科生和研究生的工资差距,到底有多大?...
  14. Mitmproxy 新版配置上游(二级)代理
  15. java单击按钮实现窗口隐藏
  16. 波浪下划线怎么设置_如何在word中的文字下面加波浪线
  17. java数组初始化0_Java自学-数组 初始化数组
  18. BUU-MISC-你能看懂音符码
  19. pyltp的初始化报错:segmentor = Segmentor() # 初始化实例TypeError: __init__(): incompatible constructor argument
  20. 手写代码详解Android Hook入门demo,android应用案例开发大全第四版源码

热门文章

  1. office表格怎么冻结前两行_「excel冻结前两行」excel2013怎么冻结前两行 - seo实验室...
  2. ATFX:美国通胀转折点已来,激进加息势将暂缓?
  3. 机器学习模型评价指标(准确率、精度、召回率)
  4. tas5707php,TAS5707PHP
  5. 间接寻址储存的线性表—基本操作实现
  6. 你有哪些独到的识人技巧?(转自知乎)
  7. 刘晓艳老师的考研单词记忆
  8. 计算机海报制作过程以及内容,《海报的设计与制作》计算机职教课件.ppt
  9. 大话设计模式:第27章 解释器模式
  10. python 1加到100的三种方法