Comments (3)
It is not erasing, more like for one truth bb should not correspond to two anchors boxes. So conf_mask[b, anch_ious > ignore_thres, gj, gi] = 0 initialize those possible anchor boxes to 0, and then in the later step conf_mask[b, best_n, gj, gi] = 1 assign the best iou anchor box to that truth bb.
In your example, I guess in each iteration, it is computing the anch_ious of each truth bb (for t in range(target.shape[1]). So you expect the gj and gi are different for those bbs. (under the assumption that it is not the case of multiple-label assignment). So what conf_mask[b, anch_ious > ignore_thres, gj, gi] = 0 does is not erasing.
from pytorch-yolov3.
I think either way the best iou anchor box is only assigned to one truth bb. Because if there's repeating assignment on the anchor box, the conf_mask and tcls would only be set to 1 again.
However, for the case above, it will wipe all anch_ious > ignore_thres
even the ones that have another truth bb assigned.
from pytorch-yolov3.
An anchor for a given grid cell can only be assigned to one object, so that would be fine in this case, given that the specific anchor is the best match for these objects.
from pytorch-yolov3.
Related Issues (20)
- Replace own `Mish` implementation by torch's HOT 5
- Crash after processing JSON to RDF HOT 2
- Need help with getting bboxes.
- very low mAP on coco val2014 when training from scratch HOT 18
- how to set custom path for labels? please help me HOT 6
- how to adjust learning rates or something to be better when using a pretrained model to train my dataset?please give me some advice HOT 5
- i'm using yolov3.weights to test data/sample/, i found there are some wrong bboxes which are different from this projects HOT 8
- Unable to fully load data classes of classes.names HOT 1
- Questions regarding the evaluation model in train.py and test.py HOT 1
- PyTorch-YOLOv3 Tracking
- is woring in 3090,lower fps! HOT 2
- for Linux?or for windows? HOT 6
- mAP nearly zero? HOT 3
- Testing Suite
- 关于pytorchyolo1.8.0和GPU不兼容的问题 HOT 1
- 怎么把pytorchyolo卸载干净呀? HOT 2
- how can i calculate the params and flops of yolov3-tiny model 如何计算 yolov3-tiny 模型的参数和计算量?
- Would support torchv2.2.2?
- tensorboard没有显示的结果? HOT 1
- How to compute FPS
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-yolov3.