Vertex AI Custom Training for Single-Object Classification

PMLE By islever Editorial Last updated

Short answer

D Develop the model training code for image classification, and train a model by using Vertex AI custom training.

Question

You are developing a model to identify traffic signs in images extracted from videos taken from the dashboard of a vehicle. You have a dataset of 100,000 images that were cropped to show one out of ten different traffic signs. The images have been labeled accordingly for model training, and are stored in a Cloud Storage bucket. You need to be able to tune the model during each training run. How should you train the model?
  1. Train a model for object detection by using Vertex AI AutoML.
  2. Train a model for image classification by using Vertex AI AutoML.
  3. Develop the model training code for object detection, and train a model by using Vertex AI custom training.
  4. Develop the model training code for image classification, and train a model by using Vertex AI custom training. Correct Answer

Key Takeaways

Pre-cropped images containing only one object require classification, not detection; custom training is needed for full model tuning flexibility.

Learn why Vertex AI custom training with image classification is required when tuning models on pre-cropped single-object datasets, distinguishing it from AutoML and object detection approaches.

Common mistake: Option C is the common mistake; candidates choose object detection because they focus on the word 'identify' rather than recognizing that pre-cropping removes the need for bounding box localization.

Expert Analysis

The critical decision in this question rests on two dimensions: the task type (classification vs. detection) and the training method (AutoML vs. Custom Training). The most attractive but wrong answer is C, which proposes custom object detection. This option sounds plausible because traffic signs are objects, and 'identifying' them often triggers a detection mindset. However, the prompt explicitly states that images have been 'cropped to show one out of ten different traffic signs.' Since each image contains exactly one pre-cropped sign, the spatial location of the object within the frame is irrelevant; the model only needs to classify the content of the single cropped region. Therefore, object detection is unnecessary overhead, making classification the correct task.

Regarding the training method, the requirement is to 'tune the model during each training run.' Vertex AI AutoML solutions (Options A and B) provide limited hyperparameter tuning options and do not allow full control over the training loop or code execution. To achieve deep customization and fine-tuning capabilities, you must use Vertex AI Custom Training, where you supply your own training code. This eliminates Options A and B.

Between Options C and D, we select D because it correctly identifies the task as image classification (due to the single-object crop) and uses custom training (to satisfy the tuning requirement). Option C fails because it incorrectly assumes an object detection task despite the pre-cropped nature of the data.

Exam Strategy

Always check if the input data has already solved part of the problem for you. If images are pre-cropped to contain a single subject, the task is likely classification, not detection. Additionally, keywords like 'tune,' 'customize,' or 'control' usually point away from AutoML toward Custom Training, as AutoML offers restricted hyperparameter access.

Frequently Asked Questions

When should I use Object Detection instead of Image Classification?

Use Object Detection when the input image may contain multiple objects or when you need to know the location (bounding box) of the object within the original scene. Use Classification when the input is already focused on a single item.

Can I tune hyperparameters in Vertex AI AutoML?

Yes, but with limitations. AutoML provides preset configurations and limited knobs. For full control over every aspect of the training loop and hyperparameters, Custom Training is required.

More PMLE FAQ →

Community Votes

D
70%
C
30%

70% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 10 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 10

  1. pikachu007 👍 17 Answered D
    Not A or B since automl doesnt provide you without flexibility to tune. Not C because object detection is not required since the images are cropped to a single traffic light
  2. guilhermebutzke 👍 3 Answered C
    Correct: C The phrases "identify traffic signs in images extracted from videos" and "images that were cropped to show one out of ten different traffic signs" suggest that this is an image detection problem. The first phrase appears to have the same meaning as "images with," and the second phrase suggests that only one type of traffic sign was used in the problem, indicating that it cannot be used in a multi-class problem. For all these reasons, I believe the best option is C.
  3. guilhermebutzke 👍 2
    My answer: C The phrases "identify traffic signs in images extracted from videos" and "images that were cropped to show one out of ten different traffic signs" suggest that this is an image detection problem. The first phrase appears to have the same meaning as "images with," and the second phrase suggests that only one type of traffic sign was used in the problem, indicating that it cannot be used in a multi-class problem. For all these reasons, I believe the best option is C.
  4. baimus 👍 2 Answered C
    There is literally no way to know if this is C or D, as "labelled" and "identify street signs" are too ambiguous to know if its detection or classification. The "cropped to a single traffic light" seems like maybe D, but that's hardly ML knowledge, it's a pub quiz guess.
  5. taylz876 👍 1 Answered D
    Why D is right • Image classification, not object detection: each image is cropped to show exactly one of ten traffic signs, and the images are labeled with the sign type. The model only has to say which sign it is. It doesn't have to find and box signs inside a larger scene, so object detection isn't needed. • Custom training, not AutoML: the question says you need to be able to tune the model during each training run. AutoML picks the architecture and settings for you, with little room to tune. Custom training gives you control over the code and hyperparameters on every run.
Show 5 more comments
  1. Dirtie_Sinkie 👍 1 Answered D
    Answer is D, not C in my opinion. Object detection might be used in a real-world project since there are a lot of variables which may affect the picture like visibility, colour fading, having other things in the picture like streetlights, birds, etc. Way too overkill for our question here. I'm assuming the pictures are already nicely cropped out with none of this extra stuff in the pictures.
  2. joao_01 👍 1 Answered D
    Guys, It's D. Every image now (since its been cropped) has ONLY ONE traffic sign. So, the goal is to create a model that learns which traffic sign exist in the image - image classification and NOT object detecttion
  3. kornick 👍 1 Answered D
    Not C because object detection is not required since the images are cropped to a single traffic light
  4. shaoshao 👍 1 Answered C
    C. "identify" a small signal is an object detection task, not a classification task.
  5. gscharly 👍 1 Answered D
    agree with pikachu007

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All PMLE Questions

Access 65 questions with complete answers and detailed explanations.

View Full PMLE Practice Test →

← Back to PMLE Study Guide