Sizes of tensors must match except in dimension 1. Got 85 and 6 in dimension 2
系统环境: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相关推荐
- 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 需要的数据维度是一 ...
- 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 ...
- 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*** 这个问题, 解 ...
- RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1.
最近在修改模型不支持的算子后,由于对模型的效果产生了影响,所以需要进行微调训练,但是训练的时候报错了,如下: File "/home/xxxxxxx/EdgeNets/nn_layers/e ...
- 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 ...
- 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 ...
- RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0—问题分析
声明: 这里仅仅提供一个思路,暂时没有绝对正确通用的解决方案 作者:{ 墨理 } 感谢通过私信.评论交流,协力探讨解决问题的同学 UP .Penser 文章目录 探讨的 pytorch 报错信息如下 ...
- 记录解决RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 27 but got size
问题描述 在做目标检测服务过程中,将yolov7模型通过flask打包成预测服务API,此次训练的图像输入大小是1280,输入预测图片是如果图像大于1280则预测成功,小于1280则报RuntimeE ...
- 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 < ...
- 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. ...
最新文章
- 计算机学硕哪些学校好考,什么学校研究生好考,计算机专业研究生哪个学校好考一点...
- 【Android 安全】使用 360 加固宝加固应用 ( 加固工具准备 | 生成签名 APK | 加固操作 | 反编译验证加固效果 )
- 5界面怎么做窗帘拉动的效果_布艺窗帘款式有哪些?附2020年最新窗帘款式图!...
- JAVA NIO概述(一):I/O模型
- cassandra使用心得_使用Spring Data Cassandra缓存的预备语句
- 认知:什么是真正的产品思维?
- angular 获取ng-repeat完成状态 $last
- 设计模式常见面试题汇总
- 大话设计模式之装饰者模式
- 熬了多少个夜晚,大家期待的《网络工程师思科华为华三实战案例红宝书》即网工必备技术命令大全版本1完书...
- debian笔记本电源管理
- 档案管理系统,项目总结
- 计算机专业研究生和本科生工资差距,本科生和研究生的工资差距,到底有多大?...
- Mitmproxy 新版配置上游(二级)代理
- java单击按钮实现窗口隐藏
- 波浪下划线怎么设置_如何在word中的文字下面加波浪线
- java数组初始化0_Java自学-数组 初始化数组
- BUU-MISC-你能看懂音符码
- pyltp的初始化报错:segmentor = Segmentor() # 初始化实例TypeError: __init__(): incompatible constructor argument
- 手写代码详解Android Hook入门demo,android应用案例开发大全第四版源码