Training YOLO in Colab
- 40Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- āPrevious card
- āNext card
What is a good starting dataset size for a proof-of-concept custom YOLO model?
100 to 200 images.
Or swipe the card
40 cards
What is a good starting dataset size for a proof-of-concept custom YOLO model?
100 to 200 images.
What conditions should training images cover to improve model generalization?
Variety of backgrounds, perspectives, and lighting conditions similar to the application environment.
What is the recommended method for building a custom YOLO dataset?
Manually taking pictures of your objects in various conditions.
Name three online sources where pre-labeled images can be obtained for YOLO training.
Roboflow Universe, Kaggle, and Google's Open Images V7 dataset.
What is the recommended data folder structure for YOLO training?
An
imagesfolder for images, alabelsfolder for label files, and aclasses.txtfile listing all class names.How should images be organized when importing into Label Studio to avoid errors?
Import no more than 100 images at a time.
How do you create a new Conda environment for Label Studio and YOLO?
Run
conda create --name yolo-env1 python=3.12thenconda activate yolo-env1.What command installs Label Studio?
pip install label-studioHow do you start Label Studio after installation?
Run
label-studio startin the terminal.Where does Label Studio store accounts and data?
Locally on your computer, not on the web (unless configured otherwise).
What information is required to create an account for local Label Studio?
Any fake email and password.
How do you add custom class names in Label Studio labeling setup?
Delete default labels, type each class name separated by Enter, then click Add.
What are the steps to create a bounding box in Label Studio?
Click a class at the bottom, then click and drag a box around the object in the image.
How do you export labeled data from Label Studio in YOLO format?
Click Export, scroll to YOLO option, select it, then click Export.
What should you do if you have more than 1000 images to label in Label Studio?
Link a local storage folder or cloud account to the project.
What runtime type should be selected in Google Colab for YOLO training?
T4 GPU.
How do you upload a dataset to Colab?
Click the folder icon, then drag and drop the data.zip file into the sidebar.
What is the purpose of splitting data into train and validation folders?
Train folder contains images for training; validation folder images for checking performance after each epoch.
How is the data split typically performed in the provided Colab notebook?
A script randomly moves 90% to train and 10% to validation.
What library is used to train YOLO models in Python?
Ultralytics library.
What does the data.yaml configuration file specify?
The paths to train and validation folders and the list of class names.
How can you verify that a GPU is available in Colab?
Run
!nvidia-smiand check for a Tesla T4 or similar GPU.What are the YOLO architecture options mentioned for training?
YOLO11, YOLOv8, and YOLOv5.
What model size is recommended as a good starting point?
YOLO11s.
How many epochs should be used for a dataset with less than 200 images?
60 epochs.
How many epochs for a dataset with more than 200 images?
40 epochs.
What is the default training resolution for YOLO models in the tutorial?
640x640 pixels.
What metrics are reported at the end of each training epoch?
mAP, precision, and recall.
What happens if Colab training runs longer than about 5 hours?
The Colab instance times out and disconnects.
Where are the best model weights saved after training?
runs/detect/train/weights/best.ptWhat does results.png show?
How metrics like loss, precision, recall, and mAP progress over epochs.
How can you test the trained model on validation images in Colab?
Run the provided code blocks: first to perform inference, second to display results for first 10 images.
What can you do if the model is not accurate enough?
Check for label errors, increase epochs, or use a larger model.
How do you download the trained model from Colab?
Run the code block that zips the model (renamed to my_model.pt) and downloads my_model.zip.
What command is used to install Ultralytics locally?
pip install ultralyticsHow do you install GPU-enabled PyTorch for local inference?
Go to pytorch.org, select OS and CUDA version, copy command, add
--upgrade, and run in Anaconda Prompt.How do you run inference on a USB camera using the custom script?
python yolo_detect.py --model my_model.pt --source usb0 --resolution 1280x720How do you stop the local inference script?
Press Q in the display window.
What other sources can you run inference on besides USB camera?
Video file, image, or folder of images.
Where can you find more example applications for trained YOLO models?
The Train-YOLO-Models GitHub repository linked in the video description.

Ask anything
We've read this whole study set, so questions about it get the best answers.