Closed purvikpatel closed 4 years ago
Your GetImage()
function actually returns multiple images instead of a single one. Either change it to return a single (H,W,C)
numpy array or change image_aug = seq(image=images)
to images_aug = seq(images=images)
(i.e. singular to plural). Otherwise the augmentation method will assume that you provided only a single image (image=...
) given as a numpy array, which hence should have an ndim
attribute. list
doesn't have that attribute and that results in a crash.
I am using the below given code to augment a list of images but It is giving me error mention below the code . Can anyone check my code and tell me where I am making the mistake?