A data augmentation package for converting segmentation data to detection data.
Project description
中文 | 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
- 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.
- 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.
- 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
-
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3af648250aa1c07bd53282e846bb94b402bd58cfee90c706db2483a155ba7a1
|
|
| MD5 |
cd45a275b946173a5d7d118fbd691fc3
|
|
| BLAKE2b-256 |
18ffc77d5ce44c4015171232708a3413aee6acd668c4d153475dc06c3d54eb22
|
Provenance
The following attestation bundles were made for yolodetectionaugment-0.0.1.tar.gz:
Publisher:
python-publish.yml on Huuuuugh/YOLODetectionAugment
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yolodetectionaugment-0.0.1.tar.gz -
Subject digest:
a3af648250aa1c07bd53282e846bb94b402bd58cfee90c706db2483a155ba7a1 - Sigstore transparency entry: 183300350
- Sigstore integration time:
-
Permalink:
Huuuuugh/YOLODetectionAugment@5bc4ff59e162a329920655c6f3c3ac09a4df6d35 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Huuuuugh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@5bc4ff59e162a329920655c6f3c3ac09a4df6d35 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file yolodetectionaugment-0.0.1-py3-none-any.whl.
File metadata
- Download URL: yolodetectionaugment-0.0.1-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44e7206b08b6749f73072c921239cac0cdfd1e09fb134925aa83012643162b7a
|
|
| MD5 |
2232f7c735ed9eada41fed926c5dfbbf
|
|
| BLAKE2b-256 |
61d64d2a387fd6acfa5ff7b54db00f8c853b07320bcb2a62a49ae970453de2e4
|
Provenance
The following attestation bundles were made for yolodetectionaugment-0.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on Huuuuugh/YOLODetectionAugment
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yolodetectionaugment-0.0.1-py3-none-any.whl -
Subject digest:
44e7206b08b6749f73072c921239cac0cdfd1e09fb134925aa83012643162b7a - Sigstore transparency entry: 183300352
- Sigstore integration time:
-
Permalink:
Huuuuugh/YOLODetectionAugment@5bc4ff59e162a329920655c6f3c3ac09a4df6d35 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Huuuuugh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@5bc4ff59e162a329920655c6f3c3ac09a4df6d35 -
Trigger Event:
workflow_dispatch
-
Statement type: