Building a Brand Detection Model with YOLOv11 in Google Colab
π¦ Building a Custom Object Detection Model (Brand Detection) with YOLOv11 in Google Colab
Object detection has become significantly more accessible thanks to modern architectures like YOLO (You Only Look Once). This article walks through the entire process of setting up and training a YOLO model from scratch using custom image dataset — right inside Google Colab.
π 1. Uploading and Preparing the Dataset
▶ Mount Google Drive (if your dataset is there)
from google.colab import drive
drive.mount('/content/gdrive')
This gives Colab access to your Google Drive so it can copy your dataset stored there.
▶ Copy the dataset ZIP file from Google Drive
!cp /content/gdrive/MyDrive/yolo/data.zip /content
Copies the ZIP archive containing your dataset into the Colab runtime.
▶ Alternative: Download from a URL
!wget -O /content/data.zip https://drive.google.com/file/d/1Hdrk5_dnJvJPoupPsJ0PaRyLPPDP7b4f/view?usp=sharing/data.zip
Downloads the dataset from a public URL directly into the Colab environment.
π¦ 2. Preparing the Data for Training
▶ Unzip the Dataset
!unzip -q /content/data.zip -d /content/custom_data
Extracts the dataset contents into a custom folder named (
custom_data).
Comments
Post a Comment