빠른 시작: Imagen 이미지 텍스트 변환을 사용하여 이미지 워터마크 생성 및 확인(콘솔)

Vertex AI 기반 Imagen의 텍스트 이미지 생성 기능을 사용하고 생성된 이미지에서 디지털 워터마크(SynthID)를 확인하는 방법을 알아봅니다. 이 빠른 시작에서는Google Cloud 콘솔에서 Imagen 이미지 생성 기능을 사용하는 방법을 설명합니다.

Vertex AI의 Imagen 가격 책정은 사용하는 기능에 따라 달라집니다. 자세한 내용은 가격 책정을 참조하세요.

생성된 개 이미지
프롬프트에서 Vertex AI 기반 Imagen을 사용하여 생성된 이미지:해변의 프렌치 불도그 사진(85mm f/2.8).

시작하기 전에

  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.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

  4. Enable the Vertex AI API.

    Roles required to enable APIs

    To enable APIs, you need the Service Usage Admin IAM role (roles/serviceusage.serviceUsageAdmin), which contains the serviceusage.services.enable permission. Learn how to grant roles.

    Enable the API

  5. Make sure that you have the following role or roles on the project: Vertex AI User

    Check for the roles

    1. In the Google Cloud console, go to the IAM page.

      Go to IAM
    2. Select the project.
    3. In the Principal column, find all rows that identify you or a group that you're included in. To learn which groups you're included in, contact your administrator.

    4. For all rows that specify or include you, check the Role column to see whether the list of roles includes the required roles.

    Grant the roles

    1. In the Google Cloud console, go to the IAM page.

      IAM으로 이동
    2. 프로젝트를 선택합니다.
    3. 액세스 권한 부여를 클릭합니다.
    4. 새 주 구성원 필드에 사용자 식별자를 입력합니다. 일반적으로 Google 계정의 이메일 주소입니다.

    5. 역할 선택 목록에서 역할을 선택합니다.
    6. 역할을 추가로 부여하려면 다른 역할 추가를 클릭하고 각 역할을 추가합니다.
    7. 저장을 클릭합니다.
  6. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  7. Verify that billing is enabled for your Google Cloud project.

  8. Enable the Vertex AI API.

    Roles required to enable APIs

    To enable APIs, you need the Service Usage Admin IAM role (roles/serviceusage.serviceUsageAdmin), which contains the serviceusage.services.enable permission. Learn how to grant roles.

    Enable the API

  9. Make sure that you have the following role or roles on the project: Vertex AI User

    Check for the roles

    1. In the Google Cloud console, go to the IAM page.

      Go to IAM
    2. Select the project.
    3. In the Principal column, find all rows that identify you or a group that you're included in. To learn which groups you're included in, contact your administrator.

    4. For all rows that specify or include you, check the Role column to see whether the list of roles includes the required roles.

    Grant the roles

    1. In the Google Cloud console, go to the IAM page.

      IAM으로 이동
    2. 프로젝트를 선택합니다.
    3. 액세스 권한 부여를 클릭합니다.
    4. 새 주 구성원 필드에 사용자 식별자를 입력합니다. 일반적으로 Google 계정의 이메일 주소입니다.

    5. 역할 선택 목록에서 역할을 선택합니다.
    6. 역할을 추가로 부여하려면 다른 역할 추가를 클릭하고 각 역할을 추가합니다.
    7. 저장을 클릭합니다.
  10. 이미지 생성 및 로컬 사본 저장

    Google Cloud 콘솔을 사용하여 텍스트 이미지 생성 요청을 보냅니다.

    1. Google Cloud 콘솔에서 Vertex AI > Media Studio 페이지로 이동합니다.

      Media Studio로 이동

    2. 프롬프트(여기에 프롬프트를 작성하세요.) 필드에 다음 프롬프트를 입력합니다.

       portrait of a french bulldog at the beach, 85mm f/2.8
      
    3. 선택하지 않은 경우 매개변수 패널의 모델 옵션 상자에서 Imagen 3을 선택합니다.

    4. 선택하지 않은 경우 매개변수 패널의 가로세로 비율 섹션에서 1:1을 선택합니다.

    5. 결과 수 섹션에서 결과 수2로 변경합니다.

    6. 생성을 클릭합니다.

      이미지를 생성하면 다음 이미지와 비슷한 이미지가 생성됩니다.

      콘솔에서 생성된 샘플 이미지

    7. 이미지의 로컬 사본을 저장하려면 이미지 중 하나를 클릭합니다.

    8. 이미지 세부정보 창이 열리면 내보내기를 클릭합니다.

    9. 이미지 내보내기 대화상자에서 내보내기를 클릭합니다.

    이미지의 디지털 워터마크 확인

    워터마크가 추가된 이미지를 생성한 후에 새로운 이미지의 디지털 워터마크를 확인할 수 있습니다.

    1. 이전 단계에서 수행했던 것처럼 생성된 이미지를 만들고 로컬 사본을 저장합니다.

    2. 이미지 세부정보 창에서 내보내기를 클릭합니다.

    3. 하단 패널에서 확인을 클릭합니다.

    4. 이미지 업로드를 클릭합니다.

    5. 로컬로 저장된 생성된 이미지를 선택합니다.

      콘솔에서 생성된 이미지의 확인된 워터마크 샘플

    수고하셨습니다. 지금까지 Imagen 텍스트 이미지 생성 기능을 사용하여 새로운 이미지를 만들고 이미지 중 하나의 디지털 워터마크를 확인했습니다.

    삭제

    이 페이지에서 사용한 리소스 비용이 Google Cloud 계정에 청구되지 않도록 하려면 다음 단계를 수행합니다.

    프로젝트 삭제

    1. In the Google Cloud console, go to the Manage resources page.

      Go to Manage resources

    2. In the project list, select the project that you want to delete, and then click Delete.
    3. In the dialog, type the project ID, and then click Shut down to delete the project.

    다음 단계