1. Home
  2. Explore
  3. Computer Science
  4. Training YOLO in Colab

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Training YOLO in Colab

  • 21Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Dataset Creation and Preparation

What is the recommended range of images for a proof-of-concept custom YOLO model dataset?

21 questions

  1. 1

    What is the recommended range of images for a proof-of-concept custom YOLO model dataset?

    1. A

      200 to 500 images

    2. B

      500 to 1000 images

    3. C

      50 to 100 images

    4. D

      100 to 200 images

    Correct answer
    D

    100 to 200 images

    Explanation

    The video recommends 100 to 200 images as a good starting point for a proof-of-concept model.

  2. 2

    Which of the following is NOT mentioned as a source for obtaining pre-labeled images?

    1. A

      Google's Open Images V7

    2. B

      Kaggle

    3. C

      Roboflow Universe

    4. D

      ImageNet

    Correct answer
    D

    ImageNet

    Explanation

    The video mentions Roboflow Universe, Kaggle, and Google's Open Images V7 as sources for pre-labeled images, but not ImageNet.

  3. 3

    According to the tutorial, what is the best way to build a dataset for a custom detection model?

    1. A

      Use a web scraper to collect images

    2. B

      Manually take pictures of objects in various conditions

    3. C

      Generate synthetic images using a 3D renderer

    4. D

      Download pre-labeled images from the internet

    Correct answer
    B

    Manually take pictures of objects in various conditions

    Explanation

    The video states that the best way is to manually take pictures of your objects in a variety of conditions.

  4. 4

    What tool is used in the tutorial for labeling images?

    1. A

      CVAT

    2. B

      LabelImg

    3. C

      VGG Image Annotator

    4. D

      Label Studio

    Correct answer
    D

    Label Studio

    Explanation

    The tutorial uses Label Studio, an open-source labeling tool, for labeling images.

  5. 5

    Which Python version is used for the Conda environment when installing Label Studio?

    1. A

      Python 3.10

    2. B

      Python 3.13

    3. C

      Python 3.11

    4. D

      Python 3.12

    Correct answer
    D

    Python 3.12

    Explanation

    The command creates an environment with Python 3.12: 'conda create --name yolo-env1 python=3.12'.

  6. 6

    How does Label Studio run on your computer?

    1. A

      As a Python script that runs in the terminal

    2. B

      As a local web server accessed via browser

    3. C

      As a cloud service hosted by HumanSignal

    4. D

      As a standalone desktop application

    Correct answer
    B

    As a local web server accessed via browser

    Explanation

    Label Studio runs on a server hosted locally on your computer, and you interact with it through your web browser.

  7. 7

    What is the maximum number of images you can import at once into a Label Studio project without encountering an error?

    1. A

      500 images

    2. B

      200 images

    3. C

      50 images

    4. D

      100 images

    Correct answer
    D

    100 images

    Explanation

    The video mentions that importing more than 100 images at once will cause an error about exceeding the max number of files.

  8. 8

    When exporting labels from Label Studio for YOLO training, what format does the exported zip file contain?

    1. A

      Images and labels in separate folders with a classes.txt file

    2. B

      A single CSV file with bounding box coordinates

    3. C

      A COCO format annotation file

    4. D

      A JSON file containing all annotations

    Correct answer
    A

    Images and labels in separate folders with a classes.txt file

    Explanation

    The YOLO export option packages images and labels in a directory structure with images in an images folder, labels in a labels folder, and a classes.txt file.

  9. 9

    What runtime type should be selected in Google Colab for training a YOLO model?

    1. A

      CPU

    2. B

      TPU

    3. C

      V100 GPU

    4. D

      T4 GPU

    Correct answer
    D

    T4 GPU

    Explanation

    The tutorial instructs to change the runtime type to a T4 GPU for training.

  10. 10

    What command is used to check that a GPU is available in the Colab notebook?

    1. A

      !gpu-check

    2. B

      !nvidia-smi

    3. C

      !gpu-status

    4. D

      !check-gpu

    Correct answer
    B

    !nvidia-smi

    Explanation

    The notebook uses '!nvidia-smi' to verify that a Tesla T4 or similar GPU is available.

  11. 11

    When splitting the dataset into train and validation sets, what percentage of images is used for validation?

    1. A

      15%

    2. B

      5%

    3. C

      20%

    4. D

      10%

    Correct answer
    D

    10%

    Explanation

    The Python script randomly moves 10% of the dataset to the validation folder and 90% to the train folder.

  12. 12

    Which Python library is used to train the YOLO model?

    1. A

      Ultralytics

    2. B

      TensorFlow

    3. C

      Keras

    4. D

      PyTorch

    Correct answer
    A

    Ultralytics

    Explanation

    The tutorial installs the Ultralytics library to train the YOLO model.

  13. 13

    What is the purpose of the data.yaml configuration file in YOLO training?

    1. A

      It defines the paths to train and validation data and the class names

    2. B

      It contains the training logs

    3. C

      It sets the hyperparameters for the optimizer

    4. D

      It stores the trained model weights

    Correct answer
    A

    It defines the paths to train and validation data and the class names

    Explanation

    The data.yaml file sets the location of the train and validation folders and defines the model's classes.

  14. 14

    According to the tutorial, which YOLO model is recommended as a good starting point if unsure?

    1. A

      YOLO11s

    2. B

      YOLOv8x

    3. C

      YOLOv5l

    4. D

      YOLOv5n

    Correct answer
    A

    YOLO11s

    Explanation

    The video suggests that YOLO11s is a good starting point if you aren't sure which model to use.

  15. 15

    For a dataset with less than 200 images, what is the recommended number of training epochs?

    1. A

      60 epochs

    2. B

      40 epochs

    3. C

      80 epochs

    4. D

      20 epochs

    Correct answer
    A

    60 epochs

    Explanation

    The tutorial recommends 60 epochs for datasets with less than 200 images, and 40 epochs for more than 200 images.

  16. 16

    What is the default image resolution used for training in the tutorial?

    1. A

      720x720

    2. B

      1280x1280

    3. C

      640x640

    4. D

      480x480

    Correct answer
    C

    640x640

    Explanation

    The default resolution is 640x640, but can be lowered to 480x480 for faster inference or low-resolution images.

  17. 17

    Which file contains the best model weights after training?

    1. A

      runs/detect/train/model.pt

    2. B

      runs/detect/train/final.pt

    3. C

      runs/detect/train/weights/best.pt

    4. D

      runs/detect/train/weights/last.pt

    Correct answer
    C

    runs/detect/train/weights/best.pt

    Explanation

    The best model weights are saved in 'runs/detect/train/weights/best.pt'.

  18. 18

    What does the results.png file show after training?

    1. A

      Sample detection results on training images

    2. B

      A plot of the model architecture

    3. C

      Progress of metrics like loss, precision, recall, and mAP over epochs

    4. D

      Confusion matrix of the model

    Correct answer
    C

    Progress of metrics like loss, precision, recall, and mAP over epochs

    Explanation

    The results.png file shows how metrics like loss, precision, recall, and mAP progressed over each training epoch.

  19. 19

    If the trained model has low accuracy, which of the following is NOT a suggested remedy?

    1. A

      Use a larger model like YOLO11m

    2. B

      Increase the number of training epochs

    3. C

      Use a smaller model like YOLO11n

    4. D

      Double-check the dataset for label errors

    Correct answer
    C

    Use a smaller model like YOLO11n

    Explanation

    The tutorial suggests checking for label errors, increasing epochs, or using a larger model, not a smaller one, to improve accuracy.

  20. 20

    What command is used to run the custom detection script on a USB camera?

    1. A

      python yolo_detect.py --model my_model.pt --source 0 --resolution 1280x720

    2. B

      python yolo_detect.py --model my_model.pt --source usb --resolution 1280x720

    3. C

      python yolo_detect.py --model my_model.pt --source usb0 --resolution 1280x720

    4. D

      python yolo_detect.py --weights my_model.pt --source webcam --resolution 1280x720

    Correct answer
    C

    python yolo_detect.py --model my_model.pt --source usb0 --resolution 1280x720

    Explanation

    The example command uses '--source usb0' for a USB camera at 1280x720 resolution.

  21. 21

    What key is used to quit the detection preview window when running the local script?

    1. A

      Enter

    2. B

      Spacebar

    3. C

      Q

    4. D

      Escape

    Correct answer
    C

    Q

    Explanation

    The tutorial states that you can press Q to quit the program.

Question 1 of 21
Question 1 of 21

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent