Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding chapter for object detection. #202

Merged
merged 6 commits into from
Feb 12, 2024

Conversation

miniMaddy
Copy link
Contributor

This is the chapter for object detection. I have just added small changes to the work already done by @abdullah-alnahas. Please suggest any changes if necessary.

@@ -0,0 +1,63 @@
# Object Detection:

In this guide, we'll explore the fascinating world of object detection—a vital component in modern computer vision systems. We'll demystify essential concepts, discuss popular methods, examine applications, and touch upon evaluation metrics. By the end, you'll have a solid foundation and be ready to venture further into advanced topics.
Copy link
Collaborator

@michaelshekasta michaelshekasta Feb 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we shouldn't use "guide"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I will change that.


Understanding object detection lays the groundwork for mastering advanced computer vision techniques, enabling the construction of powerful and accurate solutions addressing rigorous needs. Some future research areas include developing lightweight object detection models which are fast and easily deployable. Exploration in the field of object detection in 3D space, e.g., for augmented reality applications, is another avenue to explore.

## 8. References and Additional Resources
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding common datasets?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the references? Datasets like VOC, MS-COCO?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@johko What do you think about it?

@bellabf
Copy link
Collaborator

bellabf commented Feb 6, 2024

Hi!
Great work. Left some minor suggestions for wording and rephrase some parts, so the task description remains general even when the output of object detection is not a bounding box. :)

Copy link
Collaborator

@merveenoyan merveenoyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Mostly did nitpicking

chapters/en/Unit 6 - Basic CV Tasks/object_detection.mdx Outdated Show resolved Hide resolved
chapters/en/Unit 6 - Basic CV Tasks/object_detection.mdx Outdated Show resolved Hide resolved
chapters/en/Unit 6 - Basic CV Tasks/object_detection.mdx Outdated Show resolved Hide resolved

|![Object Detection](https://huggingface.co/datasets/hf-vision/course-assets/resolve/main/Object_Detection.png)|
|:--:|
| *Image displaying the bounding boxes around multiple objects in the frame along with the confidence score of their classification* |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can write this in alt text instead of making this in a table format

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@merveenoyan , I wanted it to be like a caption to the image, alt text won't be visible I believe. What do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think when people scroll on it they'll see so it should be ok

chapters/en/Unit 6 - Basic CV Tasks/object_detection.mdx Outdated Show resolved Hide resolved
chapters/en/Unit 6 - Basic CV Tasks/object_detection.mdx Outdated Show resolved Hide resolved
chapters/en/Unit 6 - Basic CV Tasks/object_detection.mdx Outdated Show resolved Hide resolved
chapters/en/Unit 6 - Basic CV Tasks/object_detection.mdx Outdated Show resolved Hide resolved
chapters/en/Unit 6 - Basic CV Tasks/object_detection.mdx Outdated Show resolved Hide resolved
chapters/en/Unit 6 - Basic CV Tasks/object_detection.mdx Outdated Show resolved Hide resolved
@miniMaddy
Copy link
Contributor Author

@merveenoyan , I have added the suggested changes, except for a few. I have added comments for that. Please check and let me know if it's fine.
Thank You

@merveenoyan
Copy link
Collaborator

@miniMaddy I answered them, do you have any other questions

@miniMaddy
Copy link
Contributor Author

Thanks a lot, I will push the changes by tonight then.

@miniMaddy
Copy link
Contributor Author

All the comments are resolved. Please check and merge. Thank You


### 1.2 Classification vs Localization

Classification distinguishes objects based on their unique attributes, while localization determines an object's location within an image. Object detection combines both approaches, encapsulating identified entities with bounding boxes and assigning corresponding class labels. Imagine recognizing different fruit types and pinpointing their exact locations in a single image. That's object detection at play!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not all object detection involves using bounding boxes. It not unusual (at least in the biomedical field) to predict points within-in regions and centroids.


### 5.1 Intersection over Union (IoU)

Intersection over Union (IoU) measures the overlap between predicted and actual bounding boxes as a percentage ranging from 0% to 100%. Higher IoU percentages indicate better alignments, i.e., improved accuracy. Useful when assessing tracker performance under changing conditions, e.g., following wild animals during migration.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Intersection over Union (IoU) measures the overlap between predicted and actual bounding boxes as a percentage ranging from 0% to 100%. Higher IoU percentages indicate better alignments, i.e., improved accuracy. Useful when assessing tracker performance under changing conditions, e.g., following wild animals during migration.
Intersection over Union (IoU) measures the overlap between predicted and reference labels as a percentage ranging from 0% to 100%. Higher IoU percentages indicate better alignments, i.e., improved accuracy. Useful when assessing tracker performance under changing conditions, e.g., following wild animals during migration.


### 5.2 Mean Average Precision (mAP)

Mean Average Precision (mAP) estimates object detection efficiency using both precision (correct prediction ratio) and recall (true positive identification ability). Calculated across varying IoU thresholds, mAP functions as a holistic assessment tool for object detection algorithms. Helpful when measuring sentiment analysis models' effectiveness, e.g., processing extensive customer reviews.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you change this to a computer vision example?

Comment on lines 3 to 4
In this guide, we'll explore the fascinating world of object detection—a vital component in modern computer vision systems. We'll demystify essential concepts, discuss popular methods, examine applications, and touch upon evaluation metrics. By the end, you'll have a solid foundation and be ready to venture further into advanced topics.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In this guide, we'll explore the fascinating world of object detectiona vital component in modern computer vision systems. We'll demystify essential concepts, discuss popular methods, examine applications, and touch upon evaluation metrics. By the end, you'll have a solid foundation and be ready to venture further into advanced topics.
In this guide, we will explore the fascinating world of object detectiona vital component in modern computer vision systems. We will breakdown essential concepts, discuss popular methods, examine applications, and touch upon evaluation metrics. By the end, you will have a solid foundation and be ready to venture further into advanced topics.


### Classification vs Localization

Classification distinguishes objects based on unique attributes, while localization determines an object's location within an image. Object detection combines both approaches, encapsulating identified entities with bounding boxes and assigning corresponding class labels. Imagine recognizing different fruit types and pinpointing their exact locations in a single image. That's object detection at play!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Classification distinguishes objects based on unique attributes, while localization determines an object's location within an image. Object detection combines both approaches, encapsulating identified entities with bounding boxes and assigning corresponding class labels. Imagine recognizing different fruit types and pinpointing their exact locations in a single image. That's object detection at play!
Classification distinguishes objects based on unique attributes, while localization determines an object's location within an image. Object detection combines both approaches, locating entities and assigning corresponding class labels. Imagine recognizing different fruit types and pinpointing their exact locations in a single image. That's object detection at play!

@bellabf
Copy link
Collaborator

bellabf commented Feb 9, 2024

All the comments are resolved. Please check and merge. Thank You

I am really sorry I forgot to commit my comments for two reviews last week 🤦. I had some minor suggestions just to keep things slightly more general. Otherwise, looks good to me :)

@miniMaddy
Copy link
Contributor Author

Thanks @bellabf , I made the suggested changes. Thanks for correcting me on the detection boxes.

@johko
Copy link
Owner

johko commented Feb 12, 2024

merging 🚀

@johko johko merged commit fe54721 into johko:main Feb 12, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants