Lab 5 Classifying Images of Clouds in The Cloud With AutoML Vision
Lab 5 Classifying Images of Clouds in The Cloud With AutoML Vision
help_outline
language
Start Lab
02:30:00
Overview
Set up your environments
Task 1. Set up AutoML Vision
Task 2. Upload training images to Cloud Storage
Task 3. Create an AutoML Vision training dataset
Task 4. Inspect the images
Task 5. Train your model
Task 6. Evaluate your model
Task 7. Generate predictions
Congratulations!
End your lab
Classifying Images of
Clouds in the Cloud
with AutoML Vision
2 hours 30 minutes1 Credit
Overview
In this lab, you upload images to Cloud Storage and use them to train a custom model to
recognize different types of clouds (cumulus, cumulonimbus, etc.).
Lab setup
For each lab, you get a new GCP project and set of resources for a fixed time at no cost.
There is no pause feature. You can restart if needed, but you have to start at the beginning.
3. When ready,
click .
Open the navigation menu and and select APIs & Services > Library. In the search bar type in
"Cloud AutoML API". Click on the Cloud AutoML API result and then click Enable.
This may take a minute. You should now be on the following page (ensure that the
Activation Status is Enabled):
gsutil -m cp -r gs://cloud-training/automl-lab-clouds/*
gs://$DEVSHELL_PROJECT_ID-vcm/
Copied!
content_copy
3. Once copying is complete you can view
the CSV file and three types of clouds
you have images for:
gsutil ls gs://$DEVSHELL_PROJECT_ID-vcm/
Copied!
content_copy
Which types of clouds do you have training data (images) for?
Stratus
Cirrus
Cumulonimbus
Cumulus
Submit
gsutil cp gs://cloud-training/automl-lab-clouds/data.csv .
head --lines=10 data.csv
sed -i -e "s/placeholder/$DEVSHELL_PROJECT_ID-vcm/g" ./data.csv
head --lines=10 data.csv
gsutil cp ./data.csv gs://$DEVSHELL_PROJECT_ID-vcm/
gsutil ls gs://$DEVSHELL_PROJECT_ID-vcm/
Copied!
content_copy
2. View all the folders and files in your
bucket you can add a wildcard
to gsutil ls like so:
gsutil ls gs://$DEVSHELL_PROJECT_ID-vcm/*
Copied!
content_copy
3. Highlight and copy the location of your
data file to your clipboard which will
look similar to: gs://qwiklabs-
gcp-your-project-id-will-
be-here-vcm/data.csv
7. Leave Single-Label
Classification checked.
Note: Training this custom model can be expected to take over an hour to complete (55 to 90
minutes on average). The total training time includes node training time as well as infrastructure
setup and tear down. To get full credit for the lab you do not need to wait for training to
complete and can simply review the below screenshots from Evaluation and Prediction.
There are a few ways to generate predictions. In this lab you use the UI to upload images. You'll
see how your model does classifying these two images (the first is a cirrus cloud, the second is a
cumulonimbus).
You will be given an opportunity to rate the lab experience. Select the applicable number of
stars, type a comment, and then click Submit.
Copyright 2021 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.
Cancel
Submit
error_outline
All done? If you end this lab, you will lose all
your work. You may not be able to restart the
lab if there is a quota limit. Are you sure you
want to end this lab?
Cancel
Submit