Skip to content

Commit 1e0adb9

Browse files
munkhuushmglivanmkc
authored andcommitted
chore: added helpful instruction comment on lable_image sample (#52)
Fixes b/172749007 🦕
1 parent 71ca67a commit 1e0adb9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

datalabeling/snippets/label_image.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ def label_image(
4545

4646
feature = datalabeling.LabelImageRequest.Feature.CLASSIFICATION
4747

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

0 commit comments

Comments
 (0)