You are on page 1of 56

Machine Learning

Workshop
Machine Learning Tools
Machine Learning Framework

https://github.com/ultralytics/yolov5
1) Backbone - A convolutional neural network that aggregates and forms image features at different
granularities.

2) Neck - A series of layers to mix and combine image features to pass them forward to prediction.

3) Head - Consumes features from the neck and takes box and class prediction steps.
YOLOv5
Workshop 1: ML First step

https://github.com/ultralytics/yolov5
Workshop 1: ML First step

https://github.com/ultralytics/yolov5
Workshop 1: ML First step

https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb
Workshop 1: ML First step

Upload new image

https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb
Workshop 1: ML First step

https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb
Workshop 1: ML First step

https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb
Workshop 2: Build for custom ML

https://github.com/ultralytics/yolov5
Clone template of
Colab source code
https://drive.google.com/file/d/1-dSY2aEXqK-TmJ7_-rs1fTeWHJjDlNeg/view?usp=sharing
Custom model
Map Google Drive to Colab
Map Google Drive to Colab
Map Google Drive to Colab
Map Google Drive to Colab
Run (1) and (2)
Training the model
Training the model
/content/drive/MyDrive/yolov5/data.yaml
Wait… we have to prepare datasets first
/content/drive/MyDrive/yolov5/data.yaml
Train image folder
/content/drive/MyDrive/yolov5/data.yaml
Train image folder
/content/drive/MyDrive/yolov5/data.yaml
Image Labelling
www.cvat.org
Image Labelling

www.cvat.org
Image Labelling

www.cvat.org
Image Labelling

www.cvat.org
Image Labelling

www.cvat.org
Image Labelling

www.cvat.org
Image Labelling

www.cvat.org
Image Labelling

www.cvat.org
Image Labelling

www.cvat.org
Image Labelling

www.cvat.org
Export image label

www.cvat.org
Image Augmentation
https://roboflow.com/
Image Augmentation
Image Augmentation
Image Augmentation
Update Image Folder
Image Augmentation
Image Augmentation
Image Augmentation
Image Augmentation
Image Augmentation
Image Augmentation
Image Augmentation
Image Augmentation
Image Augmentation
Image Augmentation
Image Augmentation

ตัวอยางไฟลที่ไดจากเว็บไซต roboflow

จะตองอัพโหลดไปยัง Google Drive


Training the model

อัพโหลดไฟลที่ไดทั้งหมดไปยัง Google
Drive ภายใตโฟรเดอรชื่อ yolov5
Run the training model

You might also like