Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
chore: added helpful instruction comment on lable_image sample (#52)
Browse files Browse the repository at this point in the history

Fixes b/172749007 馃
  • Loading branch information
munkhuushmgl committed Nov 16, 2020
1 parent beec363 commit 7e11206
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/snippets/label_image.py
Expand Up @@ -45,6 +45,9 @@ def label_image(

feature = datalabeling.LabelImageRequest.Feature.CLASSIFICATION

# annotation_spec_set_resource_name needs to be created beforehand.
# See the examples in the following:
# https://cloud.google.com/ai-platform/data-labeling/docs/label-sets
config = datalabeling.ImageClassificationConfig(
annotation_spec_set=annotation_spec_set_resource_name,
allow_multi_label=False,
Expand Down

0 comments on commit 7e11206

Please sign in to comment.