Overview
The Roboflow integration allows CVAT users to leverage over 50,000 pre-trained computer vision models from Roboflow Universe directly within CVAT. This integration enables rapid automatic annotation, significantly reducing manual labeling time.The Roboflow integration is available for CVAT Cloud users and Enterprise self-hosted installations. It is not available for community self-hosted deployments.
What is Roboflow?
Roboflow is a comprehensive platform for computer vision development that provides:- Roboflow Universe: A repository of 50,000+ pre-trained models
- Model training and deployment: Tools for training custom models
- Dataset management: Features for organizing and versioning datasets
- Data augmentation: Automated image preprocessing and augmentation
Prerequisites
- CVAT Cloud account or Enterprise self-hosted installation
- Roboflow account (free or paid)
- A CVAT task or project with labels defined
Adding a Roboflow Model
Follow these steps to add a Roboflow model to CVAT:Step 1: Find a Model on Roboflow Universe
- Visit Roboflow Universe
- Search for a model that matches your annotation needs
- Note the model’s supported labels and architecture
- Copy the model’s API information
Step 2: Add the Model in CVAT
- In CVAT, navigate to the Models page
- Click Add model
- Select Roboflow as the model source
- Enter the following information:
- Model name: A descriptive name for your model
- API endpoint: Your Roboflow model endpoint
- API key: Your Roboflow API key
- Click Add to save the model
Using Roboflow Models for Automatic Annotation
Once you’ve added a Roboflow model, you can use it for automatic annotation:Step 1: Start Automatic Annotation
- Open the task you want to annotate
- Click Actions > Automatic annotation
- Select your Roboflow model from the dropdown
Step 2: Match Labels
Map the model’s output labels to your task labels:- CVAT will display the model’s available labels
- For each model label, select the corresponding label in your task
- Unmatched labels will not be annotated
Step 3: Configure Options
- Threshold: Set the confidence threshold (0.0-1.0). Lower values include more predictions but may reduce accuracy
- Clean old annotations: Toggle to remove existing annotations before running the model
- Return masks as polygons: Convert segmentation masks to polygon shapes
Step 4: Run Annotation
Click Annotate to start the automatic annotation process. CVAT will:- Send your images to the Roboflow API
- Receive predictions from the model
- Create annotations in your task
- Display progress in the interface
Example Workflow
Here’s a complete workflow using a Roboflow model:Supported Model Types
The Roboflow integration supports the following model types:- Object Detection: Bounding boxes for detected objects
- Instance Segmentation: Pixel-level masks for objects
- Semantic Segmentation: Pixel classification across the entire image
- Classification: Image-level labels
- Keypoint Detection: Skeletal keypoints for pose estimation
Best Practices
Choose the Right Model
Choose the Right Model
- Select models trained on similar data to your use case
- Check the model’s performance metrics on Roboflow Universe
- Test multiple models to find the best fit for your data
Optimize Threshold Settings
Optimize Threshold Settings
- Start with a threshold of 0.5 and adjust based on results
- Higher thresholds (0.7-0.9) reduce false positives
- Lower thresholds (0.3-0.5) capture more objects but may include noise
Review and Refine
Review and Refine
- Always review automatically generated annotations
- Use CVAT’s manual annotation tools to correct mistakes
- Consider using automatic annotation as a starting point, not the final result
Troubleshooting
Model Not Appearing
- Verify your Roboflow API key is correct
- Ensure the model is public or you have access permissions
- Check your network connection and firewall settings
Poor Annotation Quality
- Adjust the confidence threshold
- Try a different model that better matches your data
- Ensure your images are similar to the model’s training data
API Rate Limits
Roboflow has API rate limits based on your plan:- Free plan: Limited API calls per month
- Paid plans: Higher limits and faster processing