diff --git a/samples/snippets/label_image.py b/samples/snippets/label_image.py index 010f0dd..d61fbb4 100644 --- a/samples/snippets/label_image.py +++ b/samples/snippets/label_image.py @@ -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,