Team Ai
Apppublic

devranx/Pixel-Prompt-Annotator

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
App README

โœจ Annotation Assistant

![Live Demo](https://devranx-pixel-prompt-annotator.hf.space/)

Demo

Overview

Annotation Assistant is a state-of-the-art Vision-Language Object Detection tool. It combines the power of Qwen-VL (4B) with a user-friendly interface to make labeled data creation effortless.

Unlike standard detection tools, this assistant is conversational. You can refine detections naturally (e.g., "Also find the cup"), and the AI intelligently merges new findings with existing ones.

Key Features

๐Ÿง  Intelligent Memory & Context

The Assistant remembers what it has already found.

  • โ€”No Amnesia: Unlike basic wrappers, this tool feeds its own previous detections back into the context.
  • โ€”Example: If you say "Find the laptop" and then "Find the remaining objects", it understands what "remaining" means because it knows the laptop is already detected.

๐ŸŽฏ Smart Refinement Logic

I implemented a custom Weighted Merge Algorithm to handle updates:

  • โ€”Refinement: If you draw a better box for "shirt" over an existing one (>80% overlap), it replaces the old one.
  • โ€”Distinct Objects: If you seek a second "shirt" elsewhere (low overlap), it adds it as a new object.
  • โ€”Result: NO duplicate ghost boxes, NO accidental deletions.

๐Ÿ‘๏ธ Explainable AI (Reasoning)

Don't just trust the box. The Assistant provides a Reasoning Stream explaining why it detected an object.

  • โ€”Example: "Detected silver laptop due to distinct Apple logo and metallic finish."

How to Run

โ˜๏ธ Option 1: Google Colab (Recommended for Free GPU)

  1. 1.Open the Colab_Runner.ipynb file in Google Colab.
  2. 2.Upload app.py, utils.py, and requirements.txt to the Colab files area.
  3. 3.Add your Ngrok Authtoken in the designated cell.
  4. 4.Run all cells. The app will launch via a public URL.

๐Ÿค— Option 2: Hugging Face Spaces (CPU/GPU)

  1. 1.Create a new Space on Hugging Face.
  2. 2.Select Streamlit as the SDK.
  3. 3.Upload the files from this repository.
  4. 4.The app will build and launch automatically.

๐Ÿ’ป Option 3: Local System (Requires GPU)

  1. 1.Clone the Repo:
bash
    git clone https://github.com/devsingh02/Pixel-Prompt-Annotator.git
    cd Pixel-Prompt-Annotator
  1. 1.Install Dependencies:
bash
    pip install -r requirements.txt
  1. 1.Run the App:
bash
    streamlit run app.py

Built with Streamlit, Qwen-VL, and โค๏ธ.