
报错笔记
报错笔记
liqianjiqiren
世界和平
展开
-
在使用YOLOv5进行训练的时候报错 expected sequence of length 290 at dim 1 (got 547)
Pytorch出现 expected sequence of length 290 at dim 1 (got 547)是因为yolo5s.yaml中的格式错误所致anchors:[53,96, 67,61, 71,80] # P3/8[73,106, 86,87, 94,68] # P4/16[95,106, 105,86, 120,113] # P5/32原创 2022-04-17 14:49:13 · 1187 阅读 · 0 评论 -
去除xml文件的高宽为零的候选框
前段时间是将使用mmdetection中的Faster RCNN config 进行训练,将里边的L1 loss 换成了CIOU loss,训练的时候一显示loss值为nan,查看了情况,发现是因为xml文件中的含有候选框高宽为0的情况,在网上查没有找到相应去除高宽为零的候选框的代码,为此自己写了一个。"""read xml file and delete the object whose height or width is zero"""import osimport xml.etree原创 2022-04-17 14:45:51 · 173 阅读 · 0 评论 -
python 解析xml遇到xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 4, column 34
转自https://www.cnblogs.com/xiaxiaoxu/p/9244822.htmlpython 解析xml遇到xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 4, column 34在调试数字驱动用xml文件的方式时,包含读取xml文件的步骤,运行程序报错:d:\test\0629>python XmlUtil.pyTraceback (most recent call last)转载 2021-09-11 23:27:29 · 1737 阅读 · 0 评论