Skip to content

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 authored Nov 16, 2020
1 parent 0030fb9 commit 8a41556
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions datalabeling/snippets/label_image.py
Original file line number Diff line number Diff line change
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 8a41556

Please sign in to comment.