aleju / imgaug

Image augmentation for machine learning experiments.
http://imgaug.readthedocs.io
MIT License
14.42k stars 2.44k forks source link

Can't mass flip images in my directory #752

Closed MajesticSoftware closed 3 years ago

MajesticSoftware commented 3 years ago

So I created a loop that goes through a directory full of images and I want to flip each one of them and save it. However, when applying flipLR.augment_image to each image over a loop. It only applies sometimes (It's either comes to be the original image or flipped) creating a very messy dataset. Does anyone know why this happening?

Thanks in advance.

MajesticSoftware commented 3 years ago

Nevermind I fixed it. I had the probability of it being flipped at .5 instead of one.