Tools for image data augmentation

65 views
Skip to first unread message

catar...@gmail.com

unread,
May 4, 2022, 9:06:51 AM5/4/22
to AI for fish
Hi everyone,

I am looking for open source tools for image data augmentation (rotate images, change contrast,...).

I came across the python library albumentations (https://albumentations.ai/) and I was wondering if anyone in the group has used it before and recommends this or any other open source tools for this job?

Thanks in advance! 

Catarina

Zhongliang Zhou

unread,
May 6, 2022, 11:15:07 AM5/6/22
to AI for fish
Hi Catarina,

For me, I used torchvision's augmentation library: https://pytorch.org/vision/main/transforms.html. It works well if you want to incorporate the data augmentation process with some deep learning models that are written in pytorch.

Best,
Zhongliang

Joar Nykvist

unread,
May 23, 2022, 6:46:42 AM5/23/22
to AI for fish
Hi Catarina!

Sorry I did not see this earlier. I have used an algorithm called RandAugment which is implemented in pytorch: https://pytorch.org/vision/main/generated/torchvision.transforms.RandAugment.html.  

All the best,

Joar Nykvist

Catarina Silva

unread,
May 24, 2022, 5:44:37 AM5/24/22
to AI for fish
Thanks for your replies Zhongliang and Joar!

I ended up using the albumentations library and it works quite well in our pipeline. It has a lot of supporting documentation and a lot of functions for image transformations (along with transformations of the actual annotations - bounding boxes, segmentation, keypoints...).


Xabier Lekunberri also pointed this tutorial out from OpenCV, which he used to change contrast and brightness, and might be useful to other people in the group: 

Cheers,

Catarina
Reply all
Reply to author
Forward
0 new messages