InstantID icon indicating copy to clipboard operation
InstantID copied to clipboard

ValueError: Cannot process type as image: <class 'tempfile._TemporaryFileWrapper'>

Open Liuziyu77 opened this issue 1 year ago • 4 comments

When I am running this gradio demo in my own GPU, I have this problem:

ValueError: Cannot process type as image: <class 'tempfile._TemporaryFileWrapper'>

My gradio version is 3.37.0.

Liuziyu77 avatar Jan 31 '24 12:01 Liuziyu77

Same issue, my gradio version is 3.50.2

codingl2k1 avatar Feb 01 '24 07:02 codingl2k1

Have you ever resloved this problem?

BeyondYourself avatar Feb 02 '24 08:02 BeyondYourself

Run infer.py, it works.

codingl2k1 avatar Feb 02 '24 09:02 codingl2k1

This is because the wrong image type is getting passed. Likely the image from the Gallery is getting passed instead of file bytes. Full stack trace would be helpful.

machineminded avatar Feb 06 '24 14:02 machineminded