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 Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
  2. In the Google Cloud Console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Make sure that billing is enabled for your Cloud project. Learn how to confirm that billing is enabled for your project.

  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.
  8. Set the PROJECT_ID environment variable to 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 your user account 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
    gcloud auth login
    gcloud projects add-iam-policy-binding $PROJECT_ID 
    --role="roles/datalabeling.editor" gcloud projects add-iam-policy-binding $PROJECT_ID
  10. Create a Google Cloud Storage bucket to store the data that you want to label and the instructions for the labelers.