Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image augmentation with bounding boxes. #2213

Open
maximlopin opened this issue May 14, 2020 · 0 comments
Open

Image augmentation with bounding boxes. #2213

maximlopin opened this issue May 14, 2020 · 0 comments

Comments

@maximlopin
Copy link

maximlopin commented May 14, 2020

🚀 Feature

Image augmentation with bounding boxes.

Motivation

Torchvision already has data augmentation for images, but I think it would be convinient to support images with bounding boxes as well.

Here is a jupyter notebook with an example: github.com/maximlopin/boxaug/blob/master/example.ipynb

Implementation

One way to implement this is to add an optional argument bboxes to __call__ methods, and some transforms will just ignore it (e.g. ColorJitter).

Alternatives

Wihout having this built-in, you have to use and learn other libraries. Torchvision already has a simple interface for image augmentation, and adapting bounding boxes support to the same interface would be very convinient.

cc @vfdev-5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants