You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So i understand from #38
how to save 64 augmented images of one input by the response given and if I don't include the first line as in:
images = [image] * 64 #do not include this line
images_aug = seq.augment_images(images)
for i, image_aug in enumerate(images_aug):
misc.imsave("/home/user/new_folder/image_%06d.jpg" % (i,), image_aug)
I will only get one single image of all the ones li have in the array "images".
However say I have 8 images as input and I specified rows = 8 and cols = 8 so it should create 64 different versions of each input images, so now I should be able to get 512 new images. I would like to know how I can save all those 512 images into a new directory.
The text was updated successfully, but these errors were encountered:
Assuming you have already a method to load your images to augment as images and an augmentation sequence as seq, then you could do the following to generate and save 64 augmented versions per image (and save them to /tmp/images_aug/<image_number>_<augmentation_number>.jpg).
So i understand from #38
how to save 64 augmented images of one input by the response given and if I don't include the first line as in:
images = [image] * 64 #do not include this line
images_aug = seq.augment_images(images)
for i, image_aug in enumerate(images_aug):
misc.imsave("/home/user/new_folder/image_%06d.jpg" % (i,), image_aug)
I will only get one single image of all the ones li have in the array "images".
However say I have 8 images as input and I specified rows = 8 and cols = 8 so it should create 64 different versions of each input images, so now I should be able to get 512 new images. I would like to know how I can save all those 512 images into a new directory.
The text was updated successfully, but these errors were encountered: