Skip to main content

Object detection augmentations.

Project description

Augmixations

Some augmentation for object detection.

Current augmentations:

  • cutmix

In progress:

  • mozaic
  • gridmask
  • mixin

Getting Started

pip install augmixations  

Example with default parameters

Import:

from augmixations import cutmix  

Using:

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

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

Done.

Advansed usage

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

Cutmix Advanced Usage

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.0.2.tar.gz (10.5 kB view hashes)

Uploaded Source

Built Distribution

augmixations-0.0.2-py3-none-any.whl (17.0 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