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

Improve projective data augmentation #32

Closed
5 tasks done
lorenzoh opened this issue Apr 10, 2021 · 2 comments
Closed
5 tasks done

Improve projective data augmentation #32

lorenzoh opened this issue Apr 10, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request numfocusgrant Part of @lorenzoh's NumFOCUS grant

Comments

@lorenzoh
Copy link
Member

lorenzoh commented Apr 10, 2021

Currently augmentation on images and keypoints is restricted to a random crop by default. fastai uses much more aggressive augmentation, and so should we. This should be straightforward to implement using DataAugmentation.jl's composable ProjectiveTransform.

The result should be something mirroring the functionality of fastai's aug_transforms.

To accomplish this, the following affine transformations should be added to DataAugmentation.jl:

  • Vertical and horizontal flip
  • Random rotation
  • Random warp
  • Random lighting
  • Random zoom

And then a helper in FastAI.jl that creates the augmentations which can be passed to ProjectiveTransforms.

@lorenzoh lorenzoh self-assigned this Apr 10, 2021
@lorenzoh lorenzoh added enhancement New feature or request numfocusgrant Part of @lorenzoh's NumFOCUS grant labels Apr 10, 2021
@lorenzoh
Copy link
Member Author

lorenzoh commented Apr 13, 2021

These augmentations will be added to DataAugmentation.jl first and then used in FastAI.jl.

@lorenzoh
Copy link
Member Author

lorenzoh commented May 4, 2021

Implemented with the DataAugmentation.jl 0.2.2 release and FastAI.augs_projection, FastAI.augs_color. See this tutorial.

@lorenzoh lorenzoh closed this as completed May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request numfocusgrant Part of @lorenzoh's NumFOCUS grant
Projects
None yet
Development

No branches or pull requests

1 participant