lllyasviel / ControlNet

Let us control diffusion models!
Apache License 2.0
28.97k stars 2.62k forks source link

Exception with Gradio application #579

Open Maeyon-Z opened 7 months ago

Maeyon-Z commented 7 months ago

"When I execute 'python gradio_seg.py', the Gradio program starts successfully, and I can access it in the browser. After uploading an image and clicking the 'Run' button, the right side of the Gradio application keeps loading, and eventually, the console outputs an exception: 'assert data is not None, "No event data" AssertionError: No event data.'"

Psycho-9 commented 7 months ago

I also encountered the same problem. The browser could be opened, but after clicking ‘run’, it would keep loading but in the end no images were generated. But my error report is like this: pydantic core. pydantic core.ValidationError: 1 validation error for PredictBodyevent idFieldrequired [type=missing, input value=('fn index': 0, 'data': [...on hash': '9gacxj00ogg'), input type=dict]

Elvinyy commented 4 months ago

I had the same issue, with "AssertionError: No event data." It's solved by updating the gradio version: pip install gradio==3.38.0 I followed the suggestion from another issue: https://github.com/lllyasviel/ControlNet/issues/475#issuecomment-1649835292

Maeyon-Z commented 4 months ago

I had the same issue, with "AssertionError: No event data." It's solved by updating the gradio version: pip install gradio==3.38.0 I followed the suggestion from another issue: #475 (comment)

谢谢~