Skip to main content

Augmixations

Some augmentations that I hasn't found in other repositories and libraries.

Current augmentations:

Getting Started

pip install augmixations  

Example with default parameters

Import:

from augmixations import Cutmix, Cutout, Mixup    

Using Cutmix:

#bg_img - The image into which a rectangle will be inserted
#fg_img - The image from which a random rectangle will be cut 

cutmix = Cutmix()
img, boxes, labels = cutmix(bg_img, bg_boxes, bg_labels, fg_img, fg_boxes, fg_labels)  

Done.

Using Cutout:

cutout = Cutout()
new_img, new_boxes, new_labels = cutmix(img, boxes, labels)

Done.

Using Mixup:

mixup = Mixup()
image, boxes, labels = mixup(first_img, first_boxes, first_labels, 
                             second_img, second_boxes, second_labels)

Done.

Advansed usage

You can pass special configs to the cutmix function to override its behavior.

Cutmix Advanced Usage

Contacts

Issues should be raised directly in the repository. For professional support and recommendations please welcomedenk@gmail.com.

Metadata

Release files for augmixations 0.2.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for augmixations 0.2.21
File Size Uploaded Provenance
augmixations-0.2.21.tar.gz 14.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for augmixations 0.2.21
File Interpreter ABI Platform
augmixations-0.2.21-py3-none-any.whl Python 3 none any Details

Total release size: 34.1 kB

Release files / augmixations-0.2.21.tar.gz

Download URL augmixations-0.2.21.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b1f77dbaaafdf32d069b0f8800b0d9230d68e83dff48dc7cb0458565aedfa2e7
BLAKE2b-256 checksum
How to use checksums
497206fdee716e24b5adfb2cb0b60de6dfd7353ea3fc7150dd48bee708ca859a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

Release files / augmixations-0.2.21-py3-none-any.whl

Download URL augmixations-0.2.21-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42936c5e14dc5989697c2cd78bfcb4440ddc48b1df53032415db32f14138b311
BLAKE2b-256 checksum
How to use checksums
b5ecab946c76ad7eb505ddbba97138d5c668ab4755e5b89f0fd6186772766a01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

Security for augmixations 0.2.21

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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