Skip to main content

Framework to create labeling data from VLM and other larger models for computer vision tasks

Project description

Vision Loom

Leverage Vision Language Models to label images and create training data for other computer vision tasks.

Vision Loom is an automated labeling framework designed to bridge the gap between high-reasoning Foundation Models and real-time edge deployment. Leverage the "zero-shot" capabilities of Vision-Language Models (VLMs) to generate high-fidelity training data without the manual overhead.

Model Task Reference
Grounding Dino Tiny Object Detection detector_test.py
SAM-2 Object Segmentation segmentation_test.py

Save detection results

  • Install the library. Install the latest version for the updated features and comments.
pip install vision-loom
from vision_loom.models.grounding_dino import GroundingDINO 
from vision_loom.utils.io import load_images 
  • Enter a single image or path to a folder containing images
images = "vision_loom/test_notebooks/test_images"
dataloader = load_images(images)
  • Once the data loader is created, type in the items you want to detect and create the bounding boxes for. If your set of images has multiple objects over multiple images, I recommend giving the prompt for all the objects together to save compute.
prompt = [["car", "person", "book", "bike"]]
  • Run the pipeline.
for img_path, image in tqdm(dataloader):
    results = model.detect(image, prompt, img_path, save_results=True)

Detector Pipeline V1

Roadmap

  • Add Image Classification Support
  • Options for export to classical SOTA formats like YOLO, COCO etc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vision_loom-0.2.1.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vision_loom-0.2.1-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file vision_loom-0.2.1.tar.gz.

File metadata

  • Download URL: vision_loom-0.2.1.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for vision_loom-0.2.1.tar.gz
Algorithm Hash digest
SHA256 479e81790bd691dc244e42af84c6d739ca56baa900244b9b08946eba33eff183
MD5 189d164d60eb15ae219e7a7216cc8cce
BLAKE2b-256 3e94863b0c09cd93fb5884b19d288f0d8632aaf86fbc82bc9e1f69e0fd17ec2e

See more details on using hashes here.

File details

Details for the file vision_loom-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: vision_loom-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for vision_loom-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86ebad9f501158c82b00c5b82b3912a3beb70cf15dfd594e7d00914dd724cacb
MD5 0f972f1bfa1661ad62f0cfc21b84cb5c
BLAKE2b-256 6eeb113e29fad9a212184c306ef809fd41c737b7ab4d4414345cb2f839018253

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page