Skip to main content

CvPal 🖼️

CvPal Logo

PyPI version License Open In Colab

Documentation

🌟 Introduction

Welcome to CvPal - Your Ultimate Computer Vision Companion! 🚀

CvPal is a cutting-edge Python package designed to empower Computer Vision engineers worldwide. Our mission is to streamline image operations, dataset management, and synthetic data generation, allowing you to focus on what truly matters: building and optimizing your machine learning pipelines.

🏆 Proudly Sponsored by VisionFullSpace 🏆

🎯 Features

  • 🖼️ Synthetic Image Generation: Create custom datasets using text prompts
  • 🔄 Dataset Merging: Seamlessly combine datasets with multiple attributes
  • 🗑️ Label Management: Effortlessly remove or replace specific labels from your dataset
  • 📊 Label Occurrence Counting: Accurately track label frequencies
  • 📝 Dataset Reporting: Generate comprehensive reports on your dataset
  • 🔌 Easy Integration: Smoothly integrate with existing ML pipelines
  • 📚 Comprehensive Documentation: Detailed guides for all features
  • 🤖 AI-Powered Dataset Creation: Generate entire datasets with just a prompt
  • 🐼 Pandas Integration: Group images and labels into a pandas DataFrame for advanced manipulation

📁 Dataset Folder Structure

For optimal performance, please structure your dataset folder as follows:

folder/
├── train/
│   ├── images/
│   └── labels/
├── test/
│   ├── images/
│   └── labels/
└── valid/
    ├── images/
    └── labels/

For TXT format datasets, include a data.yaml config file:

folder/
└── data.yaml

Example data.yaml:

names:
  - Old_Paper
  - Rock
  - Scissors
nc: 3
roboflow:
  license: Private
  project: rock-paper-scissors-sxsw
  url: https://universe.roboflow.com/roboflow-58fyf/rock-paper-scissors-sxsw/dataset/14
  version: 14
  workspace: roboflow-58fyf
test: ../test/images
train: Rock-Paper-Scissors-SXSW-14/train/images
val: Rock-Paper-Scissors-SXSW-14/valid/images

🚀 Installation

Install CvPal with a simple pip command:

pip install cvpal==1.0.2

🔧 Example Usage

from cvpal.generate import DetectionDataset
from cvpal.preprocessing import ImagesDetection

# Generate synthetic data
detection_dataset = DetectionDataset(model="stable-diffusion")
detection_dataset.generate("a cat looking at the camera", num_images=2, labels=["cat"], output_type="yolo", overwrite=False)

# Preprocess existing dataset
cp = ImagesDetection()
cp.read_data("/content/Rock-Paper-Scissors-SXSW-14", data_type="txt")
cp.report()

📊 Supported Models and Formats

Model Name Supported Format Support in Package Detection Segmentation
YOLOv5-v11 TXT & YAML config
YOLOv3-v4 Darknet TXT
EfficientDet Pytorch JSON annotations
Detectron 2 JSON annotations
Segmentation Models XML format
TensorFlow Object Detection Binary format
Fine-tune PaliGemma JSONL annotations
Apple's CreateML Proprietary JSON format
Turi Create tools Proprietary JSON format

🤝 Call for Contributions

Join the CvPal community and make a global impact! We welcome contributions of all sizes:

  • 🐛 Bug fixes and enhancements
  • 📝 Documentation improvements
  • 🎨 UI/UX enhancements
  • 🧪 New feature development

To contribute major changes, please reach out through our mailing list first.

Other ways to contribute:

  • 🔍 Help triage issues
  • 📚 Create tutorials and presentations
  • 🕵️ Review pull requests

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


Powered by VisionFullSpace
Empowering Computer Vision Worldwide

Download files

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

Source Distribution

cvpal-1.0.2.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

cvpal-1.0.2-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file cvpal-1.0.2.tar.gz.

File metadata

  • Download URL: cvpal-1.0.2.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for cvpal-1.0.2.tar.gz
Algorithm Hash digest
SHA256 83ec2df6b71ae06aca51c35deb61aff230f76188081c743a689f906f04e81f58
MD5 1fcab366815420c1ceda0e0943cc5a2d
BLAKE2b-256 c190024964b7b30dd9aed173da9c987d5ced2a8abd12c2452caa15d3afe3a527

See more details on using hashes here.

File details

Details for the file cvpal-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: cvpal-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for cvpal-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a57d124359a45b583ccd8a5d6a6c47271b760e0db925724764e0e097632545c6
MD5 7de0bd78ab5f6c88071c38115a6ff25d
BLAKE2b-256 3b350c849ff8970f9b2eb11732b721c82c6b20424fe3c448ed390213420d15e6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 files

1.0.1

2 files

0.0.3

2 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