Skip to main content

A data augmentation package for converting segmentation data to detection data.

Project description

PyPI License
中文 | English

Overview

This project is a collection of tools for processing datasets used in the YOLO object detection model. It covers functions such as dataset augmentation, format conversion, and division, aiming to help users quickly and effectively prepare high-quality datasets suitable for training the YOLO model.

Functional Features

  1. Data Augmentation: Perform diverse data augmentation operations on images and their corresponding annotation files (in XML format), such as rotation, scaling, cropping, adding noise, etc. This expands the scale of the dataset and improves the generalization ability of the model.
  2. Format Conversion: Achieve the mutual conversion between XML format annotation files and TXT format annotation files required by YOLO, meeting the needs for annotation formats in different scenarios.
  3. Dataset Division: Automatically divide the original dataset into a training set, a validation set, and a test set according to the proportion specified by the user, ensuring the rational use of the dataset and facilitating the training and evaluation of the model.

Installation Guide

  1. Environment Requirements: Python version 3.6 and above.

    pip install YOLODetectionAugment
    

Quick Start

from YOLODetectionAugment.AugmentHelper import process_yolo_dataset
img_path = 'dataset/img' # Your image path
label_path = 'dataset/label' # Your label path
split_list = [0.9, 0.1] # Proportion of the training set and the test set
dics={"battery":0,"bottle":1,"brick":2,"can":3,'carrot':4,'glass':5,'medicine':6,'mooli':7,'package':8,'pebble':9,'potato':10} # Replace these mapping pairs with your own ones

process_yolo_dataset(img_path, label_path, split_list, dics)

Augmentation Effects

167Q1ERM0_MM1167Q1ERM4_MM3

167Q1ERM0_MM3

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

yolodetectionaugment-0.0.1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

yolodetectionaugment-0.0.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file yolodetectionaugment-0.0.1.tar.gz.

File metadata

  • Download URL: yolodetectionaugment-0.0.1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for yolodetectionaugment-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a3af648250aa1c07bd53282e846bb94b402bd58cfee90c706db2483a155ba7a1
MD5 cd45a275b946173a5d7d118fbd691fc3
BLAKE2b-256 18ffc77d5ce44c4015171232708a3413aee6acd668c4d153475dc06c3d54eb22

See more details on using hashes here.

Provenance

The following attestation bundles were made for yolodetectionaugment-0.0.1.tar.gz:

Publisher: python-publish.yml on Huuuuugh/YOLODetectionAugment

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yolodetectionaugment-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for yolodetectionaugment-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44e7206b08b6749f73072c921239cac0cdfd1e09fb134925aa83012643162b7a
MD5 2232f7c735ed9eada41fed926c5dfbbf
BLAKE2b-256 61d64d2a387fd6acfa5ff7b54db00f8c853b07320bcb2a62a49ae970453de2e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for yolodetectionaugment-0.0.1-py3-none-any.whl:

Publisher: python-publish.yml on Huuuuugh/YOLODetectionAugment

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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