Haven’t tried it yet, but I’m thinking “Image.fromarray(x_data[0]” as listed here: https://stackoverflow.com/questions/30345937/how-to-read-image-from-numpy-array-into-pil-image 45
However, I did want to ask if the error-trace above could be attributed the reason you stated. It does seem like the execution passes beyond the check for PIL_Image, and the error occurs when this 1 line is hit.
Thanks anyways…