stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: Very bad performance by upscalers in compare to some previous commits

Open Centurion-Rome opened this issue 2 years ago • 8 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

I am noticing so real slow down when upscaling images since few commits. Ie. 960x640 4 upscale remacri + 20% BSRGAN take infinity in batch...

Steps to reproduce the problem

  1. Go to extras
  2. select some images ie 960x600 for a batch upscale or single ie remacri + 0.2 BSRGAN
  3. Press generate
  4. see how slow it is

15 images took 28 Minutes! - making the same thing few days ago was almost after few minute there! 1 image 32 sek

What should have happened?

Images beeing upscaled in time like ie it was in past

Commit where the problem happens

c2465f67db2529d962e311b3a520bd5cd715058b

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No response

Additional information, context and logs

No response

Centurion-Rome avatar Nov 03 '22 20:11 Centurion-Rome

close if related https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/4168

ClashSAN avatar Nov 03 '22 20:11 ClashSAN

I've also noticed Remacri taking much longer than it used to. I thought it was because I was upscaling to higher resolutions, but maybe not. I'll have to test more.

Jonseed avatar Nov 03 '22 23:11 Jonseed

Try: https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/4226

victorca25 avatar Nov 04 '22 02:11 victorca25

Also GUI shows doubled progress... 2022-11-04 10_28_57-Stable Diffusion

2022-11-04 10_43_04-Stable Diffusion

Centurion-Rome avatar Nov 04 '22 09:11 Centurion-Rome

@JenarPJ no idea about the double progress, it's unrelated

victorca25 avatar Nov 04 '22 12:11 victorca25

agreed, seems to be UI problem maybe not related to this

Centurion-Rome avatar Nov 04 '22 19:11 Centurion-Rome

Switching away from the Stable Diffusion tab sped up the progress for LDSR from nonexistent to normal speed. Looking at the task manager also showed Firefox using all of my GPU while the tab was open, instead of the command prompt Python lives in. So I'd posit the UI is doing something funky. This observation was on commit 804d9fb

Geemer avatar Nov 07 '22 20:11 Geemer

Could it be Gradio's progress indicator that is causing the slowdown? I remember that didn't used to be there when it was fast. Any way to disable it? (I wonder if disabling browser hardware acceleration might help...)

Jonseed avatar Nov 07 '22 23:11 Jonseed

Closing as stale.

catboxanon avatar Aug 03 '23 16:08 catboxanon