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

  Рет қаралды 4,158

ExplainingAI

ExplainingAI

Күн бұрын

Пікірлер: 30
@Explaining-AI
@Explaining-AI 8 ай бұрын
*Github Implementation* - github.com/explainingai-code/DetectionUtils/blob/main/compute_ap.py
@abdulkarimatrash
@abdulkarimatrash Ай бұрын
A lecture where every single word is carefully chosen! HUGE EFFORT AND EXCELLENT LECTURE! KEEP IT UP!
@Explaining-AI
@Explaining-AI Ай бұрын
Thank you for this appreciation and your support :)
@zn10plays71
@zn10plays71 5 ай бұрын
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 5 ай бұрын
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.
@kijudaa8781
@kijudaa8781 Ай бұрын
It is the best lecture on object detection and metrics that I have ever seen, thanks a lot❤
@Explaining-AI
@Explaining-AI Ай бұрын
Thank you for your kind words and am glad that the video ended up being of help to you.
@UsmanAli-xj2jt
@UsmanAli-xj2jt 2 ай бұрын
The amount of effort you put in explaining these topics is just remarkable.
@Explaining-AI
@Explaining-AI 2 ай бұрын
Thank You :)
@prathameshdinkar2966
@prathameshdinkar2966 5 ай бұрын
Very Nicely Explained! Keep the good work going 😁👍
@PraveenKottari
@PraveenKottari 2 күн бұрын
what a clean explanation!!!!!!!!!!
@xAn_011
@xAn_011 5 ай бұрын
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 5 ай бұрын
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.
@tharunbhaskar6795
@tharunbhaskar6795 3 ай бұрын
loved the super simplified code and super simplified explanation
@Explaining-AI
@Explaining-AI 3 ай бұрын
Thank You!
@abdulkarimatrash
@abdulkarimatrash Ай бұрын
Thanks!
@aliawad2244
@aliawad2244 8 ай бұрын
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 8 ай бұрын
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.
@lhoang-hiep
@lhoang-hiep 6 ай бұрын
great explanation, keep up the good work 💯
@Explaining-AI
@Explaining-AI 6 ай бұрын
Thank You!
@cryes9774
@cryes9774 6 ай бұрын
your explanation is very clean thanx
@AlbieT-yw2jj
@AlbieT-yw2jj 5 ай бұрын
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 5 ай бұрын
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.
@princekhunt1
@princekhunt1 Ай бұрын
Nice tutorial
@halfpaia
@halfpaia 8 ай бұрын
great video!
@Explaining-AI
@Explaining-AI 8 ай бұрын
Thank You!
@robbegeusens1302
@robbegeusens1302 Ай бұрын
Great video, but why do you add 1E-6 when calculating your IOU?
@Explaining-AI
@Explaining-AI Ай бұрын
Thank You! That is just for ensuring the iou method never ends up doing a division by 0, like say in some degenerate case where bounding box area is zero(of both gt and prediction). That just makes the iou computation numerically stable no matter what the predicted and ground truth box is.
@allea-zb7kl
@allea-zb7kl 8 ай бұрын
can you share the code, please?
@Explaining-AI
@Explaining-AI 8 ай бұрын
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
Рет қаралды 4,6 М.
Mean Average Precision - Fun and Easy
5:28
Augmented AI
Рет қаралды 18 М.
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
Vampire SUCKS Human Energy 🧛🏻‍♂️🪫 (ft. @StevenHe )
0:34
Alan Chikin Chow
Рет қаралды 138 МЛН
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
Mean Average Precision (mAP) Explained and PyTorch Implementation
27:32
Diffusion Models from Scratch using PyTorch!
25:16
Papers in 100 Lines of Code
Рет қаралды 1,7 М.
What is Mean Average Precision (mAP)?
13:02
Roboflow
Рет қаралды 49 М.
Unadjusted Langevin Algorithm | Generative AI Animated
19:35
Denoising Diffusion Probabilistic Models | DDPM Explained
29:29
ExplainingAI
Рет қаралды 53 М.
Reinforcement Learning - My Algorithm vs State of the Art
19:32
Pezzza's Work
Рет қаралды 153 М.
Transformer Neural Networks Derived from Scratch
18:08
Algorithmic Simplicity
Рет қаралды 156 М.
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.