DragGAN icon indicating copy to clipboard operation
DragGAN copied to clipboard

Gradio gets stuck in loop after clicking an image or button

Open Jallisto opened this issue 2 years ago • 6 comments

Gradio gets stuck in an infinite loop after clicking on an image or when clicking a button on the panel. The image disappears immediately when doing so.

CPU and GPU activity sticks at only ~5% (10% tops) with Gradio running. So although it's continually loading not much effort seems to be put into it.

Does anyone know what's wrong or how to solve this?

The setup I'm currently using:

Windows 10 Visual Studio 2019 (Community) Miniconda3 NVIDIA GeForce GTX 1080 CUDA Toolkit v11.7 (installed separately from Miniconda3)

Packages (incomprehensive list) draggan 1.1.6 gradio 3.34.0 gradio-client 0.2.6 python 3.7.16 torch 1.13.1+cu117 torchaudio 0.13.1+cu117 torchvision 0.1.6

Gradio infinite loop 2023_08_27

Jallisto avatar Aug 27 '23 17:08 Jallisto

The latest code works on my computer. Your issue might be caused by the network connection issues of huggingface gradio.

Zeqiang-Lai avatar Aug 29 '23 11:08 Zeqiang-Lai

The latest code works on my computer. Your issue might be caused by the network connection issues of huggingface gradio.

Thanks for the suggestion! I'll see if someone at Hugginface / Gradio knows what's wrong.

Jallisto avatar Aug 29 '23 18:08 Jallisto

I was wondering if you have solved the problem now?

mindy0-0 avatar Aug 31 '23 07:08 mindy0-0

I was wondering if you have solved the problem now?

No, I haven't had a response back from the Huggingface forum and I personally don't know how to fix it. If I know a solution, I'll post it here.

Jallisto avatar Sep 11 '23 12:09 Jallisto

I was wondering if you have solved the problem now?

No, I haven't had a response back from the Huggingface forum and I personally don't know how to fix it. If I know a solution, I'll post it here.

For you can have a try in the installation environment/site_packages gradio/themes/utils/fonts. Py commented in this web site, https://fonts.googleapis.com/, and then remove the browser's cache to try. I tried it and found that it could run.

mindy0-0 avatar Sep 11 '23 12:09 mindy0-0

Still not fixed

MADM1k33 avatar Mar 12 '24 17:03 MADM1k33