albumentations-team / albumentations

Fast and flexible image augmentation library. Paper about the library: https://www.mdpi.com/2078-2489/11/2/125
https://albumentations.ai
MIT License
14.2k stars 1.65k forks source link

Any plans to add https://github.com/NVIDIA/DALI support? #100

Closed dkozlov closed 3 weeks ago

dkozlov commented 6 years ago

Hi, any plans to add https://github.com/NVIDIA/DALI support?

BloodAxe commented 6 years ago

From my perspective, most probably not. DALI has they own augmentation pipeline which is not compatible with albumentations API. Therefore support of DALI would require to introduce breaking changes in albumentations with doubtful outcome.

albu commented 5 years ago

I want to try it and figure it out if we can simplify DALI usage because it's really cool but really weird

Data-drone commented 5 years ago

any progress @albu

albu commented 5 years ago

sorry, no progress here

vfdev-5 commented 4 years ago

We have some interesting code to port into data augs libs like albumentations

https://github.com/pytorch/ignite/blob/f02a91a28153e08092dbb625472e0211f642923d/ignite/contrib/engines/dali.py#L27

and

https://github.com/pytorch/ignite/pull/493#issuecomment-581778218

Maybe we can try to build something like that here:

Certainly it wont support all your augs, only DALI ones, but this could help user to avoid copying common stuff.

@albu @ternaus what do you think ?

I can try to provide a draft PR if you are interested.

dnola commented 4 years ago

I have an additional example of the usage here - it really brings DALI usage inline with Albumentations/PyTorch Compose usage, so would be very cool to have integrated

Usability wise this code is a super handy way of dropping GPU acceleration as a nearly 'drop in' replacement to existing PyTorch/Albumentations workloads - we just need to find a home for it.

Take a look! Here is another Colab:

https://colab.research.google.com/drive/1XDRzDeIeteTPyzYbZp2XWjKtUWMLXqcg

ternaus commented 3 weeks ago

No plans to support DALI