Skip to main content

Object detection augmentations.

Project description

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.

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

augmixations-0.2.21.tar.gz (14.5 kB view hashes)

Uploaded Source

Built Distribution

augmixations-0.2.21-py3-none-any.whl (19.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page