Object detection augmentations.
Project description
Augmixations
Some augmentations that I hasn't found in other repositories and libraries.
Current augmentations:
- Cutmix (Colab Example)
- Cutout (Colab Example)
- Mixup (Colab Example)
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.
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
augmixations-0.2.21.tar.gz
(14.5 kB
view details)
Built Distribution
File details
Details for the file augmixations-0.2.21.tar.gz
.
File metadata
- Download URL: augmixations-0.2.21.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1f77dbaaafdf32d069b0f8800b0d9230d68e83dff48dc7cb0458565aedfa2e7 |
|
MD5 | e9abc1a4d7c25204f24dece7a6470c04 |
|
BLAKE2b-256 | 497206fdee716e24b5adfb2cb0b60de6dfd7353ea3fc7150dd48bee708ca859a |
File details
Details for the file augmixations-0.2.21-py3-none-any.whl
.
File metadata
- Download URL: augmixations-0.2.21-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42936c5e14dc5989697c2cd78bfcb4440ddc48b1df53032415db32f14138b311 |
|
MD5 | 3d370e0fc6a4366f7c7d61d4ac921ba1 |
|
BLAKE2b-256 | b5ecab946c76ad7eb505ddbba97138d5c668ab4755e5b89f0fd6186772766a01 |