No video

Mean Average Precision (mAP) | Explanation and Implementation for Object Detection

  Рет қаралды 1,634

ExplainingAI

ExplainingAI

Күн бұрын

Пікірлер: 17
@Explaining-AI
@Explaining-AI 3 ай бұрын
*Github Implementation* - github.com/explainingai-code/DetectionUtils/blob/main/compute_ap.py
@zn10plays71
@zn10plays71 27 күн бұрын
Hey I am sure you may hear this a lot, but your content is truly amazing. It's very awe-inspiring to see people with such a high level technical knowledge and communication skills making difficult topics very easy to digest. I wish there were more people like you, keep up the excellent work.
@Explaining-AI
@Explaining-AI 25 күн бұрын
Thank you so much for these kind words. Truly happy that you found my content helpful. My technical knowledge isnt that high actually :) but just like everybody else trying to get better little by little. Creating these videos helps me as well, to get a better understanding of topics, as it forces me to ask a lot of "what/how" questions, that I didn't before.
@prathameshdinkar2966
@prathameshdinkar2966 24 күн бұрын
Very Nicely Explained! Keep the good work going 😁👍
@cryes9774
@cryes9774 Ай бұрын
your explanation is very clean thanx
@xAn_011
@xAn_011 19 күн бұрын
Bro, u have the best explaination about all these metrics and object detection in general but ur chanel won't shown up even when I have search for "object detection explaining ai", I don't know why but I want u to reach to more people may be it's because of that - in ur name... THANKS 4 such quality though :)
@Explaining-AI
@Explaining-AI 16 күн бұрын
Thank you so much for the appreciation. I agree I do need to change the name to something thats unique and more search friendly(have been putting it off for quite some time). I think if you search "object detection explainingai", only then it returns the relevant videos from my channel.
@lhoang-hiep
@lhoang-hiep Ай бұрын
great explanation, keep up the good work 💯
@Explaining-AI
@Explaining-AI Ай бұрын
Thank You!
@aliawad2244
@aliawad2244 3 ай бұрын
Very good and detailed explanation. I think the Curve shown in the example at @18:55 is wrong since the mAP is always monotonically decreasing due to the prior confidence-based sorting.
@Explaining-AI
@Explaining-AI 3 ай бұрын
Thank You. While the predictions and confidence scores used in the video are hypothetical but its still plausible for the curve to not be monotonically decreasing. Because even after confidence sorting, it could be that a higher confidence detection is a false positive and a lower confidence detection is a true positive. That would first decrease the precision and then increase it. And because of this we do the step of replacing each precision value with the maximum precision value to the right @20:14 , to smooth the zig zag pattern and then the curve is monotonically decreasing. Let me know if that makes sense.
@AlbieT-yw2jj
@AlbieT-yw2jj 22 күн бұрын
Hey, this was such a great explanation that I'm currently using your code to calculate metrics for my personal detection dataset! However I'm having trouble understanding why you put the misclassification of the human as a false positive @17:14. Isn't this supposed to be a false negative since the detector failed to give it a positive label when it had a positive ground truth? I also ran your github code with 101 pt interpolation and am also seeing this similar mix-up where i'm getting an AP of 1.0 for a class which has 0 false negatives but some false positives. Same thing applies, I would expect the recall to be 1.0 but the precision to be
@Explaining-AI
@Explaining-AI 21 күн бұрын
Hello, Sure let me try to clarify a bit on this. All the predictions that are made by the model are positive predictions. Because thats where the model thinks an object is present. So all predictions(including the human example) can only be either true or false positive. And not false negative. Only locations where ground truth object instances are present, can be marked as false negative(if that is an object our model missed). The human detection you mentioned has a confidence of 0.9. After this human example, we cant increase our false negative, because what if there is a lower confidence prediction by the model which has an IOU > our threshold(which means we ultimately ended up correctly predicting the gt object). So firstly, we can only decide false negatives after we have iterated over all predictions. Secondly, imagine this scenario, where we have just one ground truth human object and we have 50 predictions(all of them close to ground truth but not passing our threshold). Then if you start marking all of them as false negative, we are going to have 50 false negatives, but there is only one ground truth object, so the maximum value of false negative can only be 1 right. Hence the way we compute false negative, is which of the ground truth object remained unmatched at the end after iterating through all predictions. Please let me know if my clarification still left some doubts regarding this.
@tinyghostdoodle6230
@tinyghostdoodle6230 3 ай бұрын
great video!
@Explaining-AI
@Explaining-AI 3 ай бұрын
Thank You!
@allea-zb7kl
@allea-zb7kl 3 ай бұрын
can you share the code, please?
@Explaining-AI
@Explaining-AI 3 ай бұрын
I am really sorry for the late reply. Had thought to provide this code together with an object detection implementation so that one can clearly understand how to use them. But haven't been able to get to that yet. For now, I have pushed the code for this video here - github.com/explainingai-code/DetectionUtils/blob/main/compute_ap.py with comments on what the map computation method is expecting as input and how to create that.
Fast R-CNN Explained | ROI Pooling
33:10
ExplainingAI
Рет қаралды 1,6 М.
Mean Average Precision (mAP) Explained and PyTorch Implementation
27:32
Touching Act of Kindness Brings Hope to the Homeless #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 17 МЛН
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 50 МЛН
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 24 МЛН
So Cute 🥰
00:17
dednahype
Рет қаралды 41 МЛН
The Reparameterization Trick
17:35
ML Explained
Рет қаралды 18 М.
A Very Simple Transformer Encoder for Time Series Forecasting in PyTorch
15:34
Let's Learn Transformers Together
Рет қаралды 7 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 1 МЛН
Mean Average Precision - Fun and Easy
5:28
Augmented AI
Рет қаралды 15 М.
Top 6 Tools to Turn Code into Beautiful Diagrams
3:24
ByteByteGo
Рет қаралды 642 М.
Denoising Diffusion Probabilistic Models | DDPM Explained
29:29
ExplainingAI
Рет қаралды 30 М.
Intersection over Union Explained and PyTorch Implementation
21:46
Aladdin Persson
Рет қаралды 52 М.
Modern Python logging
21:32
mCoding
Рет қаралды 181 М.
Touching Act of Kindness Brings Hope to the Homeless #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 17 МЛН