
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Create a Cloud Storage Bucket
/ 30
Upload training images to Cloud Storage
/ 30
Create a dataset
/ 20
Generate predictions
/ 20
Vertex AI is Google Cloud's unified platform for machine learning. The AutoML feature within Vertex AI simplifies training high-quality custom image recognition models without requiring deep ML expertise. After training, models are deployed to a managed Endpoint for real-time predictions via an easy-to-use API.
In this lab, you'll upload cloud images to Cloud Storage, create a Vertex AI Dataset from them, and use a pre-trained model (simulated) on a Vertex AI Endpoint to generate predictions.
In this lab, you perform the following tasks:
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources are made available to you.
This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
Click the Start Lab button. If you need to pay for the lab, a dialog opens for you to select your payment method. On the left is the Lab Details pane with the following:
Click Open Google Cloud console (or right-click and select Open Link in Incognito Window if you are running the Chrome browser).
The lab spins up resources, and then opens another tab that shows the Sign in page.
Tip: Arrange the tabs in separate windows, side-by-side.
If necessary, copy the Username below and paste it into the Sign in dialog.
You can also find the Username in the Lab Details pane.
Click Next.
Copy the Password below and paste it into the Welcome dialog.
You can also find the Password in the Lab Details pane.
Click Next.
Click through the subsequent pages:
After a few moments, the Google Cloud console opens in this tab.
Cloud Shell is a virtual machine that is loaded with development tools. It offers a persistent 5GB home directory and runs on the Google Cloud. Cloud Shell provides command-line access to your Google Cloud resources.
Click Activate Cloud Shell at the top of the Google Cloud console.
Click through the following windows:
When you are connected, you are already authenticated, and the project is set to your Project_ID,
gcloud
is the command-line tool for Google Cloud. It comes pre-installed on Cloud Shell and supports tab-completion.
Output:
Output:
gcloud
, in Google Cloud, refer to the gcloud CLI overview guide.
You will enable the necessary APIs, access the Vertex AI console, and prepare your storage bucket.
The Vertex AI API is required for managing datasets, training, and deploying models.
In the Google Cloud console, in the Navigation menu (), select APIs & Services > Library.
In the Search for APIs & services field, type Vertex AI API, then click Vertex AI API in the search results.
Confirm that the Vertex AI API is in the Enable state. If not, click Enable.
The storage bucket will hold your training images and the manifest file. The region must be supported by Vertex AI.
Click Check my progress to verify the objective.
To train a model to classify cloud images, you need labeled training data so the model can develop an understanding of the image features associated with different types of clouds. In this example your model learns to classify three different types of clouds: cirrus, cumulus, and cumulonimbus.
To put the training images in your Cloud Storage bucket:
The training images are publicly available in a Cloud Storage bucket.
gsutil
command line utility for Cloud Storage to copy the training images from a public bucket into your new bucket:If you click on the individual image files in each folder you can see the photos you'll use to train the model for each type of cloud.
Click Check my progress to verify the objective.
Now that your training data is in Cloud Storage, you need a way for Vertex AI to access it. Typically, you'd create a CSV file where each row contains a URL to a training image and the associated label for that image.
For this lab, the CSV file has been created for you; you just need to update it with your bucket name.
Once that command completes, click the Refresh button at the top of the Storage browser. Confirm that you see the data.csv
file in your bucket.
In the Navigation menu, click Vertex AI > Datasets.
Select
Set Dataset Name to clouds_vertex_ai.
Select Image as the data type.
Select Single-label classification (single-label) as the objective
Now you'll import data.
Choose Select import files from Cloud Storage and then click Browse >
Click Continue and then Import.
Wait for the image import to complete, it should take 2 - 5 minutes.
Click Check my progress to verify the objective.
Since the model has been pre-trained and is assumed to be deployed, you'll now use the Vertex AI API (via a curl
command) to get predictions.
The next steps assume a pre-trained model is deployed to a Vertex AI Endpoint. In a production environment, after training, your model would be deployed to a Vertex AI Endpoint. The prediction request structure uses the model's resource ID or the endpoint's URL.
CLOUD1-JSON
), which contains placeholder bytes:Use the generic Vertex AI prediction API format, which requires the model to be deployed. The following commands use a placeholder endpoint/model name for illustration, assuming a deployed model named clouds-model
exists.
Since a live endpoint can't be automatically provided, we use a command structure that reflects the Vertex AI API, which uses your Project ID and a Model ID.
In a real-world scenario, you would first get the actual Endpoint ID. This command is a conceptual.
Expected Output (Conceptual): The model should predict this is a cirrus cloud with high confidence.
Expected Output (Conceptual): The model should predict this is a cumulonimbus cloud with high confidence.
Click Check my progress to verify the objective.
In this lab you used Vertex AI to create an image dataset and generate predictions against a deployed model endpoint.
...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.
Manual Last Updated October 17, 2025
Lab Last Tested October 17, 2025
Copyright 2025 Google LLC. All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one