gradio icon indicating copy to clipboard operation
gradio copied to clipboard

Client-side Image loads very slowly when Automatic1111 is deployed on Azure Kubernetes instance

Open marcsyp opened this issue 1 year ago • 1 comments

Describe the bug

I am deploying a containerized Automatic1111 on Azure using kubernetes, and most things work beautifully -- one big problem thouh, is that after a batch is finished, the loading of the image (512x512, 640x960) is very very slow. There is a 4-10s delay after the end of the batch, and then the image loads in the UI as if it's on dialup with a 9600 baud modem.

The host machines are extremely capable with A100 GPUs and this is an issue regardless of whether the client is half way around the world from the hosting server or right next door.

Any ideas on what might be happening, or what I should investigate?

Have you searched existing issues? 🔎

  • [X] I have searched and found no existing issues

Reproduction

import gradio as gr
N/A

Screenshot

No response

Logs

No response

System Info

Gradio version 3.41.2

Severity

I can work around it

marcsyp avatar May 04 '24 16:05 marcsyp

We will need some way to reproduce this, could you please provide a simple reproduction for this case?

pngwn avatar May 04 '24 18:05 pngwn

Going to close this for now, can reopen with a repro

abidlabs avatar May 08 '24 14:05 abidlabs

FYI -- We have seen an increase in performance since upgrading our disk performance speed on Azure. I believe this has been the primary issue. Thanks.

marcsyp avatar Aug 20 '24 21:08 marcsyp