From 8a4155654ebb021d279ab9b010cf31e657f77444 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Mon, 16 Nov 2020 10:42:02 -0800 Subject: [PATCH] chore: added helpful instruction comment on lable_image sample (#52) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes b/172749007 🦕 --- datalabeling/snippets/label_image.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datalabeling/snippets/label_image.py b/datalabeling/snippets/label_image.py index 010f0ddfaa86..d61fbb4c9e16 100644 --- a/datalabeling/snippets/label_image.py +++ b/datalabeling/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,