YOLOv11 Intro-class
YOLOv11 Intro-class
YOLO v11
1
PART I - INTRODUCTION
o Introduction to Deep Learning
2
INTRODUCTION TO DEEP LEARNING
3
WHY DEEP LEARNING
Here are some of the reasons why
deep learning is so popular:
▪ Deep learning is very effective at
learning from data.
▪ Deep learning is very versatile.
▪ Deep learning is becoming
increasingly accessible.
▪ The amount of data available for
training deep learning models is
increasing rapidly.
4
WHAT WE CAN DO WITH DEEP
LEARNING
5
INTRODUCTION TO OBJECT
DETECTION
Object detection with deep learning is a computer vision technique that uses
deep learning algorithms to identify and locate objects in images or videos.
6
OBJECT DETECTION MODELS
There are a lot of object detection
models nowadays. However all of them
are branches of these main models.
7
Object detection is a very competitive and challenging field!
8
https://paperswithcode.co
YOLO OBJECT DETECTION
▪ You Only Look Once (YOLO) is a state-of-the-art, real-time object detection algorithm
introduced in 2015 by Joseph Redmon, et al, in their famous research paper “You Only Look
Once: Unified, Real-Time Object Detection”. YOLO is a one-stage object detection algorithm,
which means that it predicts bounding boxes and class probabilities in a single pass.
▪ Here are the benefit of YOLO in practice:
YOLO is known for its fast processing speed, making it suitable for
• Speed
real-time applications.
NOTE: There are many YOLO variants! Next, we will discuss YOLOv11 specifically.
9
10
YOLOv11 is state-of-the-art of YOLO-series
https://github.com/ultralytics/ultralyti
11
cs
YOLOv11 as state of the art YOLO-series
YOLOv11 was developed by Ultralytics https://github.com/ultralytics/ultralytics
o Hands-on Installation
13
Setup
1.open www.anaconda.com/download
14
Setup
2. Click Anaconda3-2023.x.x.exe
15
Setup
2. Install the Anaconda as below
16
Setup
2. Install the Anaconda as below
17
Setup
2. Install the Anaconda as below
18
Setup
3. Open Anaconda application and click CMD.exe
prompt
19
Setup
4. Create Environment Conda
Every time you want to use Yolo V11, activate your environment. In our case
the environment is “yolov11”
20
Setup
5. install YoloV11 Framework
And
21
To add manually ultralytics YOLO v11
● go to
https://github.com/ultralytics/ultralytics
22
Download zip file and extract it in the working folder/yolov11 folder
23
PART III - DATASET PREPARATION
o Introduction to Image Labeling
24
o Introduction to Image Labeling
LabelImg
LabelImg is a graphical image annotation tool.
It is written in Python and uses Qt for its graphical interface.
Annotations are saved as XML files in PASCAL VOC format.
Besides, it also supports YOLO and CreateML formats.
26
o Labelling Your own Dataset
27
Interface of Labelimg software
28
29
30
31
Here are some shortcuts which can be used while
using Labelimg
32
33
o Txt file
34
First 0
Second 1
Third 2
35
o Txt file
36
Another examples of labeling with single class
37
Single
label or
class for
all 4 tea
bags
38
Another examples of labeling with multiple class
39
multiple
labels or
classes for
all 4 tea
bags
40
o Labelling Your own Dataset
Roboflow
Roboflow is website base for help annotate the label with easy-to-use
41
Go to roboflow website
https://roboflow.com/ and sign in
42
Name the project and select what are we detecting e.g. Tea bag
Example:
43
Upload the images
44
Save the images and continue
45
Assign the images and go for
annotation
46
Start annotation
47
Annotation example
48
After annotation is complete,
Add the images to dataset
49
After adding images to dataset it will automatically split the data into
training and validation
50
the go to Versions and export the data to download
51
Select the format of annotation , for this case use YOLO v8 format and download
52
o Import Labelled Images to YOLO
v11
Follow this method to all labelling softwares except roboflow, which convert the data in training and
validation automatically
53
we need to split the data into training and validation usually we split by
80% 20% means if we are having 100 images , 80 for training and 20 for
validation
we can do the manually
example how to manage the dataset into folders
54
Next we will create or edit(we will find it in yolo v8 folder after setup)
yaml file according to our dataset
Example
55
This example is for single class
copy path of images training and validation folder and paste it
accordingly
56
This example is for multiple classes
57
PART IV - TRAINING THE MODEL
o YOLO v11 Training Process
58
o YOLO v11 Training Process
First download the pretrained model from YOLO v11 repository
Steps
● go to https://github.com/ultralytics/ultralytics
Example:
60
What we have done so far?
model
code:
#import the model
from ultralytics import YOLO
#load the pretrained model
model = YOLO('yolov11n.yaml')
#training the model, add the path of yaml file, select epoch and image size
results = model.train(data=' dataset.yaml', epochs=300,imgsz=640)
62
we can also finetune the model
Example:
code:
# we can use different type of optimizers, not only this but we can use any type of fine tuning supported by YOLO v8
63
The parameters you can experiment in Yolov11
64
The parameters you can experiment in Yolov11
65
o Training Your Model
66
Training process
67
Training result
68
o Evaluation and Testing
After the training is complete the model will save the results automatically and
display the save location of results
example:
69
Example of testing
70
PART V - BEST PRACTICE
o Follow the source and
Documentation
71
o Follow the source and Documentation
Anaconda
http://www.anaconda.com/download
LabelImg software
https://pypi.org/project/labelImg/
Roboflow
https://roboflow.com/
72
THANK YOU
73