🧠Model Integration

Bring your own pre-trained models to Unitlab Annotate

Unitlab Annotate's lets you use both built-in and your own pre-trained AI models to annotate data quickly and easily. This guide shows you how to add custom AI models to Unitlab and use them effectively.

Bring your own pre-trained models

Unitlab Annotate enables users to integrate their BYO (Bring Your Own) models for annotation purposes, allowing them to leverage domain-specific models to enhance their data annotation workflow.

Advantages of BYO Models

  • Model In The Loop: Simply annotate data with your model, review and refine it, train your model with a new dataset, and integrate the updated model into Unitlab Annotate. Repeat this process to continually enhance performance.

  • Time & Cost Savings: Automating annotations with custom models reduces manual effort, saving time and costs associated with large-scale data processing.

  • Tailored Solutions: Custom models allow users to address unique annotation requirements, ensuring the platform fits their exact needs.

Integrating BYO Models.

To integrate a BYO AI model into our platform, ensure you have created an account and are signed in.

After signing into Unitlab Annotate, navigate to the AI Models page. You will see the following page

Unitlab Annotate: AI Models Page

To start integrating a model into our platform, click on the "Integrate Model" box. To successfully complete the integration, you are required to complete 4 steps as follows:

  1. Registration

  2. Validation

  3. Integration

  4. Confirmation.

In our example, let's integrate YOLOv8 - Vehicle Segmentation into Unitlab Annotate. We have already prepared the full source code for YOLOv8 Segmentation deployment in our GitHub repository.

YOLO8 Segmentation Deployment: A Demo for Model Integration into Unitlab Annotate.

This demo AI model deployment repository can be used for smooth integration with Unitlab Annotate, as shown in the screenshot below.

Unitlab Annotate: The registration step of AI Models.

In the Registration step, the following inputs are required:

  • Model details: Specify the model name and its description.

  • Model type: Select the model data type, such as Image Bounding Box, Segmentation, etc.

  • Model endpoint: Enter the working model endpoint.

  • Headers and Params (optional): Your endpoint may require you to set headers and parameters. Enter parameters and headers as key-value pairs.

After you completing the Registration step, click on the next and move to Validation step.

Unitlab Annotate: The validation step of AI Models.

In the Validation step, we validate your endpoint's health status and response format. During validation, our platform sends a request to your AI model service, using the test data you provided to check its health and JSON format compatibility.

Learn the JSON schema in the Valid JSON Schemes section.

When the validation process is successfully completed, the 'Next' button will be enabled, allowing users to proceed to the next step.

Unitlab Annotate: The Validation Step of AI Models - Endpoint Health and Format Validated

In the Integration step, users must define the model category, related tags, and classes to ensure the seamless integration of their AI model service into the platform.

If you follow our demo repository and use valid JSON response formats, Unitlab Annotate will automatically fill in the classes based on the test response from your AI service, as shown in the screenshot below.

Unitlab Annotate: The Integration Step of AI Models

You can also add extra classes after you have organized the original classes in sequence.

Unitlab Annotate: The Confirmation Step of AI Models

In the final Confirmation step, carefully review all the previous steps to ensure they have been executed correctly. After your review, simply click the Confirm button to finalize the integration.

After successfully integrating your BYO model, you can test it, learn how to test and manage it on the Model Management Page, or simply get started using it to annotate your data. Find instructions on how to use it on the 'How to Use' page.

Valid JSON schemes and format examples

This guide presents the valid COCO JSON structure for integration with UnitLab Annotate. The following examples cover all four model types: Bounding Box, Segmentation, Polygon, and others.

Image Bounding Box

Scheme JSON
An Example

Image Segmentation

Scheme JSON
An Example

Image Instance Segmentation

Scheme JSON
An Example

Image Polygon

Schema JSON
An Example

Image Skeleton

Schema JSON
An Example

Image Line

Schema JSON
An Example

Image Point

Schema JSON
An Example

Image Classification

Schema JSON
An Example

Image OCR

Schema JSON
An Example

Image Captioning

Schema Json
An Example

Last updated

Was this helpful?