This could be a case where the actual image file as advertised doesn’t agree with what the dataset claims; you might want to check if the input image in this case is actually a 4 channel TIFF image. For example, I believe some images claimed to be “jpegs” in ImageNet are actually PNGs!