I am trying to apply ZCA preprocessing step on CIFAR-10. When I am to plot the image and see the output after the preprocessing step but when I am passing it to the dataloader I am getting the error " Cannot handle this data type" and it coming from Image= fromarray(img).
After ZCA the output is of type float36 and the values are between [0,1]. When I change the type to uint8 the dataloader works perfectly but when I’m visualizing the image it’s just black.