ControlNet icon indicating copy to clipboard operation
ControlNet copied to clipboard

AssertionError: No event data

Open TheLearner23 opened this issue 2 years ago • 17 comments

Could you please help me figure out why I'm getting this error when I run python gradio_canny2image.py as soon as I hit run of the UI????

python gradio_canny2image.py logging improved. No module 'xformers'. Proceeding without it. ControlLDM: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. making attention of type 'vanilla' with 512 in_channels Working with z of shape (1, 4, 32, 32) = 4096 dimensions. making attention of type 'vanilla' with 512 in_channels Loaded model config from [./models/cldm_v15.yaml] Loaded state_dict from [./models/control_sd15_canny.pth] Running on local URL: http://myurladdress:7860

To create a public link, set share=True in launch(). Task exception was never retrieved future: <Task finished name='d0g4v540ncr_0' coro=<Queue.process_events() done, defined at C:\Users\username\AppData\Local\anaconda3\envs\control\lib\site-packages\gradio\queueing.py:324> exception=AssertionError('No event data')> Traceback (most recent call last): File "C:\Users\username\AppData\Local\anaconda3\envs\control\lib\site-packages\gradio\queueing.py", line 338, in process_events response = await self.call_prediction(awake_events, batch) File "C:\Users\username\AppData\Local\anaconda3\envs\control\lib\site-packages\gradio\queueing.py", line 298, in call_prediction assert data is not None, "No event data" AssertionError: No event data

TheLearner23 avatar Jul 19 '23 22:07 TheLearner23

the same error occurred on my server.

nutsintheshell avatar Jul 23 '23 01:07 nutsintheshell

the same problem. Has anyone solved it? Please help ! Thanks

ghost avatar Jul 23 '23 09:07 ghost

the same error as well!

xy-cong avatar Jul 24 '23 06:07 xy-cong

same

potryasas avatar Jul 24 '23 11:07 potryasas

Same error here. I tried to update gradio but nothing changed.

AnaisAtos avatar Jul 25 '23 09:07 AnaisAtos

pip install gradio==3.38.0

hxg-ai avatar Jul 25 '23 10:07 hxg-ai

conda activate control python -m pip install --upgrade pip pip install gradio

fixed for me

potryasas avatar Jul 25 '23 13:07 potryasas

conda activate control python -m pip install --upgrade pip pip install gradio

fixed for me

Worked for me too, thank you !

AnaisAtos avatar Jul 25 '23 13:07 AnaisAtos

Anyone with a similar error instead https://github.com/lllyasviel/ControlNet/issues/492 . In this case there is no error message. Just loading forever

albertotono avatar Aug 03 '23 17:08 albertotono

same

linrio avatar Aug 28 '23 12:08 linrio

我一开始遇到的问题是点击run没反应,然后就关闭浏览器再打开在上传图像出现楼主一样的错误,后来更新一下gradio没反应,最后干脆指定版本3.38.0,解决了

cd123-cd avatar Sep 20 '23 10:09 cd123-cd

pip install gradio==3.40.1 solved it for me

accoring to this issue: https://github.com/lllyasviel/ControlNet/issues/492#issuecomment-1675073320

iris0329 avatar Oct 12 '23 05:10 iris0329

I got the same problem too. And I have tried to change gradio version in original 3.16.2, 3.38.0, 3.40.1, and the latest 4.29.0, but none of them works. It can running but showing error in webUI in gradio 3.16.2, 3.38.0, 3.40.1. But totally cannot work in the latest 4.29.0, with "typeerror: init() got an unexpected keyword argument 'socket_options'". May I ask does anyone have the same problem and know hwo to solve it? I guess it is still about the gradio version, and does anyone knows how can we find the appropriate version? Thank you!

jiajiao272727 avatar Sep 23 '24 19:09 jiajiao272727

pip install gradio==??? might have solved the problem, but it took too long for the pip version solver to solve. The following loosy got me a quick resolution.

pip install "gradio>=3.38.0,==3.*"

highsummer avatar Oct 15 '24 07:10 highsummer

pip install gradio==3.50.1 worked for me.

Gracesta avatar Oct 16 '24 10:10 Gracesta

pip install gradio==??? might have solved the problem, but it took too long for the pip version solver to solve. The following loosy got me a quick resolution.

pip install "gradio>=3.38.0,==3.*"

Thank you! It does work!

2561681244 avatar Nov 07 '24 13:11 2561681244

gradio==3.38 "error"
gradio==3.16 "no event data"

keblicuey avatar Aug 12 '25 12:08 keblicuey