Comments (6)
@xiongzihua 如果有空恳请交流一下。
from pytorch-yolo-v1.
@pkuyilong
box1[:, :2]是在0-1之间,预测的是相对该网格左上角的x1,y1,是相对于网格的0-1。
box1[:, 2:4]也在0-1,预测的是wh,是相对全图的0-1。
计算IOU时,除以14将x1,y1的坐标从网格视角转换到全图视角,不知道这样能不能理解,代码的意图就是这样的,不知道是否合理,你可以继续思考一下,希望对你有所帮助
from pytorch-yolo-v1.
@pkuyilong do you understand the idea of the author?
from pytorch-yolo-v1.
@xiongzihua 能举个例子说明这种计算的正确性吗?
from pytorch-yolo-v1.
@pkuyilong do you understand the idea of the author?
Training phrase:
the prediction generated from model is 14 x 14,
the ground truth is scaled by origin image size(maybe 480 x 480),
so when calculating the loss, we need to divide the prediction data by 14, which is equal to scale the prediction data by origin image size.
from pytorch-yolo-v1.
@pkuyilong
box1[:, :2]是在0-1之间,预测的是相对该网格左上角的x1,y1,是相对于网格的0-1。
box1[:, 2:4]也在0-1,预测的是wh,是相对全图的0-1。
计算IOU时,除以14将x1,y1的坐标从网格视角转换到全图视角,不知道这样能不能理解,代码的意图就是这样的,不知道是否合理,你可以继续思考一下,希望对你有所帮助
又看了一会代码,差不多可以理解了,谢谢🙏
from pytorch-yolo-v1.
Related Issues (20)
- eval error HOT 6
- about grid_num=14 HOT 2
- 您能提供一下预训练好的模型文件吗,谢谢! HOT 2
- 你的resnet50作为backbone时,输入(3,448,448)的图片,输出维度不是(7,7,30)! HOT 7
- yoloLoss的组成部分中contain_loss的可疑之处 HOT 1
- predict.py中的nms是对所有类别一起做nms吗?
- 执行eval_voc,Expected 4-dimensional input for 4-dimensional weight 64 3 7 7, but got 3-dimensional input of size [3, 448, 448] instead
- predict.py error HOT 2
- Can't find the listfile.txt HOT 4
- About BatchNormalization HOT 1
- 损失函数的参数好像有点问题 HOT 4
- ImportError: cannot import name 'queue' from 'torch._six' (/home/liqi/.local/lib/python3.8/site-packages/torch/_six.py) HOT 5
- loss变化图片
- ValueError: Input must be >= 2-d. HOT 3
- 训练了 5 个epoch , pred bbox 的x2 竟然小于 x1 HOT 6
- best.pth
- IndexError: invalid index of a 0-dim tensor
- some pictures in annotation txt(voc2007.txt+ voc2012.txt) are not in the image folder(2007trainval + 2012trainval)
- 请问为什么要代码中加入了sigmoid? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch-yolo-v1.