Just to clarify something, you have color images right ? (because you used a comment like this)



 alameer:

#sample = transform3(sample) # convert to a 3 channel grayscale, as it needs to be 3 channel.