DragGAN icon indicating copy to clipboard operation
DragGAN copied to clipboard

Expecting value: line 1 column 1 (char 0)

Open seasnakes opened this issue 1 year ago • 12 comments

When I tried to deploy the web UI code of Gradio locally and clicked on the setup handle point, an error occurred: 'Expecting value: line 1 column 1 (char 0).

seasnakes avatar May 26 '23 13:05 seasnakes

same problem

yuepengyu11 avatar May 26 '23 14:05 yuepengyu11

+1

Expecting value: line 1 column 1 (char 0)

Pactortester avatar May 26 '23 23:05 Pactortester

I cannot reproduce this issue. Is it possible to record the screen to help me to identify the problem ?

Zeqiang-Lai avatar May 27 '23 02:05 Zeqiang-Lai

some problem, while set enable_queue=False,the "Expecting value: line 1 column 1 (char 0)" not occurred, but press diag it ,the "ValueError: Need to enable queue to use generators" error occurred demo.queue(concurrency_count=1, max_size=20).launch(share=args.share, server_name=args.ip, server_port=args.port,enable_queue=False) while set enable_queue=True,the "Expecting value: line 1 column 1 (char 0)"error occurred guess should be Gradio's problem

wangxiaochun520 avatar May 27 '23 09:05 wangxiaochun520

new find:while run DragGAN/colab.ipynb,it work ,no error occurred, just set:demo.queue(concurrency_count=1, max_size=20).launch(share=True)

wangxiaochun520 avatar May 27 '23 09:05 wangxiaochun520

确实,一样的问题。+1

YanTianlong-01 avatar May 27 '23 09:05 YanTianlong-01

It seems like it is caused by out-of-memory error. Could you check if your GPU memory is larger than at least 6 GB ?

Zeqiang-Lai avatar May 29 '23 02:05 Zeqiang-Lai

It seems like it is caused by out-of-memory error. Could you check if your GPU memory is larger than at least 6 GB ?看起来它是由内存不足错误引起的。你能检查一下你的 GPU 内存是否大于至少 6 GB 吗?

GPU内存有30G, 是够的,但是还是会有一样的问题,打开gradio之后,只要一操作就会有这个问题。

ywdong avatar May 29 '23 09:05 ywdong

some problem, while set enable_queue=False,the "Expecting value: line 1 column 1 (char 0)" not occurred, but press diag it ,the "ValueError: Need to enable queue to use generators" error occurred demo.queue(concurrency_count=1, max_size=20).launch(share=args.share, server_name=args.ip, server_port=args.port,enable_queue=False) while set enable_queue=True,the "Expecting value: line 1 column 1 (char 0)"error occurred guess should be Gradio's problem

Same error!!

ywdong avatar May 29 '23 12:05 ywdong

我无法复现大家的问题,所以没有办法解决。如果大家方便的话,可以录一个屏展示一下复现过程。

I am unable to reproduce everyone's problem, so there is no way to solve it. If it's convenient for everyone, you can record a screen to show the reproduction process.

Zeqiang-Lai avatar May 29 '23 12:05 Zeqiang-Lai

https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/9150 this is work for me 关掉代理即可

ruxin123 avatar May 30 '23 07:05 ruxin123

AUTOMATIC1111/stable-diffusion-webui#9150

原来是 magic 的问题 ,糟透了

Pactortester avatar May 30 '23 07:05 Pactortester

代理的问题 因为是在wsl里bashrc中写的代理相关的环境变量 虽然宿主机代理关了,但bashrc中相应代理环境变量忘记注释掉了,所以会有该问题,不过根据之前stable-diffusion-webui 中的经验 gradio中添加--no-gradio-queue 类似的命令行参数也许能解决gradio和代理冲突的问题

seasnakes avatar Jun 05 '23 03:06 seasnakes

愁,关掉魔法就需要提前下载好model

hnuzhoulin avatar Jun 29 '23 12:06 hnuzhoulin