ValueError: Unable to infer channel dimension format

#5
by skw1990 - opened

Not sure how to solve the error above when using the model locally. It works fine for the inference API.

image.png

Please use this code to open the image.

from PIL import Image
image = Image.open().convert('RGB')

Please use this code to open the image.

from PIL import Image
image = Image.open().convert('RGB')

Thanks, it helped <3

Sign up or log in to comment