Building a Custom Model

Build custom models in Vision to extract insights from images without needing data scientists.

You need the following before building a custom model:
  • A paid tenancy account in Oracle Cloud Infrastructure.
  • Familiarity with Oracle Cloud Infrastructure Object Storage.
  • The correct policies.
  • Using the Console, learn how to create a Vision project, and how to train an image classification and object detection model.

    1. Create a project.
      1. From the Vision home page, under Custom Models, select Projects.
      2. Select Create project
      3. Select the compartment for the project.
      4. Enter a Name and description for the project. Avoid entering confidential information.
      5. Select Create project.
    2. In the list of projects, select the name of the project that you created.
    3. On the project details page, select Create Model.
    4. Select the Model type to train: Image classification or Object detection.
    5. Select the training data.
      • If you don't have any annotated images, select Create a new dataset.

        You're taken to OCI Data Labeling, where you can create a dataset and add labels or draw bounding boxes over the image content. For more information, see Creating a Dataset and the section on labeling images in the Data Labeling documentation.

      • If you have an existing annotated dataset, select Choose existing dataset and then select the data source:
        • If you annotated the dataset in Data Labeling, select Data labeling service and then select the dataset.
        • If you annotated the images by using a third-party tool, click Object storage and then select the bucket that contains the images.
    6. Select Next.
    7. Enter a display name for the custom model.
    8. (Optional) Give the model a description to help you find it.
    9. Select the Training duration.
      • Recommended training Vision automatically selects the training duration to create the best model. The training might take up to 24 hours.
      • Quick training This option produces a model that's not fully optimized but is available in about an hour.
      • Custom This option lets you to set your own maximum training duration (in hours).
    10. Select Next.
    11. Review the information you provided in the previous steps. To make any changes, select Previous.
    12. When you want to start training the custom model, select Create and train.
  • Use the create command and required parameters to create a project:

    oci ai-vision project create [OPTIONS]

    Use the create command and required parameters to create a model:

    oci ai-vision model create [OPTIONS]
    For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
  • First, run the CreateProject operation to create a project.

    Then run the CreateModel operation to create a model.