From what I understand, PILImage and PILImageBW are both fastai-specific classes for images, so Image.open() doesn’t work on them.
If you’re just trying to view the image, you might try fastai’s to_image, which works on lots of things, including plain tensors and also the fastai image classes, as far as I’m aware: