Reputation: 55
I'm trying to load my data using keras' ImageDataGenerator class, but I am having trouble since the image files are not a standard jpeg/png image file but rather nii.gz files. I found this github repo https://github.com/sremedios/nifti_image_generator/blob/master/utils/nifti_image.py but the dimensions outputted were not matching up and
train_generator.next()
throws an error of
ValueError: could not broadcast input array from shape (233,189) into shape (197,233,189,1)
Upvotes: 0
Views: 1294