Skip to content

Commit de2c9d7

Browse files
committed
feat: final draft version - victor to review next week
1 parent 7328928 commit de2c9d7

File tree

5 files changed

+64
-4
lines changed

5 files changed

+64
-4
lines changed

mask_detection_labeling/infra/infra.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Estimated Time: 10 minutes
44

55
## Introduction
66

7-
In this lab, we will quickly prepare the infrastructure for manually training our Computer Vision model **in the next workshop**. This directly relates to the next workshop, where I will teach you how to do the things we've done with RoboFlow in this workshop (training, data augmentation), but using 100% open-source code.
7+
In this lab, we will quickly prepare the infrastructure that we need to manually train our Computer Vision model **in the next workshop**. From this infrastructure, we will learn how to do the things that we've done with RoboFlow during *this* workshop (training, data augmentation), but using 100% open-source code.
88

99
The OCI service that we'll use for this is **OCI Compute**.
1010

@@ -70,7 +70,6 @@ Now, just click on "Quick Connect" and connect:
7070
![access instance - mobaxterm 2](./images/access_instance_mobaxterm_2.png)
7171

7272

73-
7473
> **Note**: we will connect to our VM and start training / augmenting our data with open-source repositories.
7574
7675
## Task 3: Clone Open-Source Repositories
616 KB
Loading
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Introduction
2+
3+
Estimated Time: 5 minutes
4+
5+
I've always been curious about using Vision ML in some projects of mine. I dreamt of knowing how a Tesla autopilot worked on the inside, and whether I could make my own AI system at some point in my life. I was tired of dreaming, so I decided to learn by example (hands-on).
6+
7+
I set my focus on re-learning everything I knew about Vision ML (which is what I call image/video processing concerning Machine Learning in one way or another).
8+
9+
There are some topics, like Computer Vision, that are considered "too hard". Through this workshop, I aim to show you that it's not that hard to do this yourself (and not expensive either!).
10+
11+
Computer Vision has been a growing industry since its conception, and vision ML is one of the many components of Computer Vision. If you're interested in content like this, make sure to follow me, and stay tuned for part 2 (more info at the end).
12+
13+
Today, we're going to create a *computer vision model*, which will detect different mask-wearing states. So, it will be able to tell you if you, or anyone else that you want, is properly wearing a COVID-19 mask or not. The three different states we will consider are:
14+
- A person with a mask, which we will label as `mask`.
15+
- A person with a mask, but *incorrectly* worn (see examples below), which we will label as `incorrect`.
16+
- A person with no mask at all, which we will label as `no mask`.
17+
18+
![validation batch - girl](./images/val_batch0_labels.jpg)
19+
20+
> **Note**: as you can see, the little girl on the second row, third column is wearing the mask with their nose showing, which is *incorrect*. We want our custom model to detect cases like these, which are also the hardest to represent, as there are a lot of pictures of people with and without masks, but there aren't as many of people wearing masks incorrectly on the Internet; which causes our dataset to be imbalanced.
21+
22+
## Task 1: Final Result
23+
24+
This is a YouTube video illustrating what you will be able to achieve after completing this workshop.
25+
26+
[Watch the video](youtube:LPRrbPiZ2X8)
27+
28+
## Task 2: Objectives
29+
30+
In this lab, you will complete the following steps:
31+
32+
✓ Using RoboFlow to find good data
33+
34+
✓ Manipulating data and creating an optimal dataset
35+
36+
✓ Preparing OCI compute instances for training Computer Vision Models
37+
38+
## Task 3: OCI Elements
39+
40+
This solution is designed to work mainly with OCI Compute. We will use an OCI Compute Instance to save costs (compared to other Cloud providers) and train our Computer Vision model.
41+
42+
You can read more about the services used in the lab here:
43+
- [OCI Compute](https://www.oracle.com/cloud/compute/)
44+
45+
## Task 4: Useful Resources
46+
47+
Here are three articles to get you from beginner to Computer Vision *hero*. This workshop is partly based on the content in these Medium articles.
48+
49+
- [Creating a CMask Detection Model on OCI with YOLOv5: Data Labeling with RoboFlow](https://medium.com/oracledevs/creating-a-cmask-detection-model-on-oci-with-yolov5-data-labeling-with-roboflow-5cff89cf9b0b)
50+
51+
- [Creating a Mask Model on OCI with YOLOv5: Training and Real-Time Inference](https://medium.com/oracledevs/creating-a-mask-model-on-oci-with-yolov5-training-and-real-time-inference-3534c7f9eb21)
52+
53+
- [YOLOv5 and OCI: Implementing Custom PyTorch Code From Scratch](https://medium.com/oracledevs/yolov5-and-oci-implementing-custom-pytorch-code-from-scratch-7c6b82b0b6b1)
54+
55+
56+
You may now [proceed to the next lab](#next).
57+
58+
## Acknowledgements
59+
60+
* **Author** - Nacho Martinez, Data Science Advocate @ Oracle DevRel
61+
* **Last Updated By/Date** - February 27th, 2023

workshops/mask_detection_labeling/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"title": "Introduction",
77
"description": "What the workshop is about",
8-
"filename": "../../mask_detection_labeling/about/about.md",
8+
"filename": "../../mask_detection_labeling/intro/intro.md",
99
"type": "dbcs"
1010
},
1111
{

workshops/mask_detection_labeling/manifest_full.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"title": "Introduction",
77
"description": "What the workshop is about",
8-
"filename": "https://oracle-devrel.github.io/devrel-labs/mask_detection_labeling/about/about.md",
8+
"filename": "https://oracle-devrel.github.io/devrel-labs/mask_detection_labeling/intro/intro.md",
99
"type": "dbcs"
1010
},
1111
{

0 commit comments

Comments
 (0)