Before you begin

Before you can use AI Platform Data Labeling Service, you must enable it for your project.

  1. Sign in to your Google Account.

    If you don't already have one, sign up for a new account.

  2. In the GCP Console, on the project selector page, select or create a GCP project.

    Go to the Project selector page

  3. Make sure that billing is enabled for your Google Cloud Platform project.

    Learn how to enable billing

  4. Enable the Data Labeling API.

    Enable the API

  5. Install the Google Cloud SDK and the gcloud command line tool.
  6. Follow the instructions to create a service account and download a key file for that account.
  7. Set the GOOGLE_APPLICATION_CREDENTIALS environment variable to the path to the service account key file that you downloaded when you created the service account.
    export GOOGLE_APPLICATION_CREDENTIALS=key-file
  8. Set the PROJECT_ID environment variable to your Project ID.
    export PROJECT_ID=your-project-id
    The Data Labeling API calls and resource names include your Project ID in them. The PROJECT_ID environment variable provides a convenient way to specify the ID.
  9. Add yourself and your service account to the Data Labeling Editor IAM role.
    1. Replace your-userid@your-domain with your user account.
    2. Replace service-account-name with the name of your new service account, for example service-account1@myproject.iam.gserviceaccount.com.
    gcloud auth login
    gcloud projects add-iam-policy-binding $PROJECT_ID 
    --member="user:your-userid@your-domain"
    --role="roles/datalabeling.editor" gcloud projects add-iam-policy-binding $PROJECT_ID
    --member="serviceAccount:service-account-name"
    --role="roles/datalabeling.editor"
  10. Create a Google Cloud Storage bucket to store the data you want to have labeled and the instructions for the labelers.

หน้านี้มีประโยชน์ไหม โปรดแสดงความคิดเห็น

ส่งความคิดเห็นเกี่ยวกับ...

หากต้องการความช่วยเหลือ ให้ไปที่หน้าการสนับสนุน