I have a string Tensor object that I produced by calling tf.io.encode_jpeg on an image Tensor (Documentation for encode_jpeg).
How do I convert this string Tensor into a PIL Image?
I've tried calling Image.fromarray(encoded_tensor.numpy()), but this returns AttributeError: 'bytes' object has no attribute '__array_interface__'.