Skip to main content

SwiftAnnotate 🚀

SwiftAnnotate

SwiftAnnotate is a comprehensive auto-labeling tool designed for Text, Image, and Video data. It leverages state-of-the-art (SOTA) Vision Language Models (VLMs) and Large Language Models (LLMs) through a robust annotator-validator pipeline, ensuring high-quality, grounded annotations while minimizing hallucinations. SwiftAnnotate also supports annotations tasks like Object Detection and Segmentation through SOTA CV models like SAM2, YOLOWorld, and OWL-ViT.

Key Features 🎯

  1. Text Processing 📝
    Perform classification, summarization, and text generation with state-of-the-art NLP models. Solve real-world problems like spam detection, sentiment analysis, and content creation.

  2. Image Analysis 🖼️
    Generate captions for images to provide meaningful descriptions. Classify images into predefined categories with high precision. Detect objects in images using models like YOLOWorld. Achieve pixel-perfect segmentation with SAM2 and OWL-ViT.

  3. Video Processing 🎥
    Generate captions for videos with frame-level analysis and temporal understanding Understand video content by detecting scenes and actions effortlessly.

  4. Quality Assurance ✅
    Use a two-stage pipeline for annotation and validation to ensure high data quality. Validate outputs rigorously to maintain reliability before deployment.

  5. Multi-modal Support 🌐
    Seamlessly process text, images, and videos within a unified framework. Combine data types for powerful multi-modal insights and applications.

  6. Customization 🛠️ Easily extend and adapt the framework to suit specific project needs. Integrate new models and tasks seamlessly with modular architecture.

  7. Developer-Friendly 👩‍💻👨‍💻 Easy-to-use package and detailed documentation to get started quickly.

Installation Guide

Make sure you have conda installed on your system. To install SwiftAnnotate, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yasho191/SwiftAnnotate
    
  2. Create virtual environment:

    conda create -n swiftannotate python=3.10
    conda activate swiftannotate
    
  3. Navigate to the project directory:

    cd SwiftAnnotate
    
  4. Install dependencies:

    pip install -r requirements.txt
    

Annotator-Validator Pipeline for LLMs and VLMs

Annotation Pipeline

The annotator-validator pipeline ensures high-quality annotations through a two-stage process:

Stage 1: Annotation

  • Primary LLM/VLM generates initial annotations
  • Configurable model selection (OpenAI, Google Gemini, Anthropic, Mistral, Qwen-VL)

Stage 2: Validation

  • Secondary model validates initial annotations
  • Cross-checks for hallucinations and factual accuracy
  • Provides confidence scores and correction suggestions
  • Option to regenerate annotations if validation fails
  • Structured output format for consistency

Benefits

  • Reduced hallucinations through 2 stage verification
  • Higher annotation quality and consistency
  • Automated quality control
  • Traceable annotation process

The pipeline can be customized with different model combinations and validation thresholds based on specific use cases.

Supported Modalities and Tasks

Text

Images

Captioning

Currently, we support OpenAI, Google-Gemini, and Qwen2-VL for image captioning.

Videos

Metadata

Release files for swiftannotate 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swiftannotate 0.1.0
File Size Uploaded
swiftannotate-0.1.0.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for swiftannotate 0.1.0
File Interpreter ABI Platform
swiftannotate-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.1 kB

Release files / swiftannotate-0.1.0.tar.gz

Download URL swiftannotate-0.1.0.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f6ef708883dcfb52ffbbbb61e2504c4066d3deb9c7d4d4280204c4ac8afd48c4
BLAKE2b-256 checksum
How to use checksums
50cb7f2ca44975eb126a0d5b19520f6163b75c328f387e9b2c42e1fff79eadda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.10.8 Darwin/24.0.0

Release files / swiftannotate-0.1.0-py3-none-any.whl

Download URL swiftannotate-0.1.0-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f898b1fc4172ed5d12906d94dd5c51820eecaa4e44349f6ea1a30cdb2e940e4
BLAKE2b-256 checksum
How to use checksums
b1c1ec887364fda0694c40ac98a8f61722d038e6c59797bd565f706caf90da79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.10.8 Darwin/24.0.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page