Implement wrappers around any augmentations in imgaug or albumentations
See original GitHub issueThe functionality of our augmentation interface should be strong enough to support a generic wrapper that can wrap any augmentations in imgaug/albumentations into a subclass of our Augmentation
.
Some reference:
- Wrappers from tensorpack: https://github.com/tensorpack/tensorpack/blob/8e6f930b5f021c21f785619278e7ec9beacc0a1b/tensorpack/dataflow/imgaug/external.py#L11-L63
- doc of detectron2 augmentation: https://detectron2.readthedocs.io/en/latest/tutorials/augmentation.html
Interface should look like:
from detectron2.data import transforms as T
import albumentations as A
T.Albumentations(
A.GaussianBlur(),
A.xxx
)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:31
Top Results From Across the Web
Geometric transforms (augmentations.geometric.transforms)
Augmentation to apply affine transformations to images. This is mostly a wrapper around the corresponding classes and functions in OpenCV.
Read more >augmenters.geometric — imgaug 0.4.0 documentation
This is a wrapper around Affine . API link: ShearX. Example. Create an augmenter that shears images along the x-axis by random amounts...
Read more >imgaug.augmenters.meta - Read the Docs
Augmenters that don't apply augmentations themselves, but are needed for meta ... This method is a wrapper around UnnormalizedBatch and augment_batch() .
Read more >imgaug.augmenters.color - Read the Docs
This is a wrapper around WithBrightnessChannels and hence performs ... it is recommended to use AddToHueAndSaturation as otherwise the image will be ...
Read more >albumentations — albumentations 1.1.0 documentation
albumentations is a fast image augmentation library and easy to use wrapper around other libraries. Features¶. Great fast augmentations based on highly- ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
#3609 Hi I have implement albumentations wappers, it have image, bounding box and segmentation augmentation supported.
@SnowRipple you can easily copy paste datasetmapper.py and change L 134-136 with any other augmentation. Bit of a hacky solution so i hope this issue is still being worked on!