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

[Bug]: HUGE reduction in generation speed with latest (0b5dcb3) master branch.

Open skdursh opened this issue 2 years ago • 4 comments

Is there an existing issue for this?

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

What happened?

WebUI on Win10, Chromium (Ungoogled-Chromium) browser Relevant system specs: GTX 1080, 64GB DDR4 3600 CL16, i7-8700k, no OC

Prior to the latest update on branch 828438b with Euler A using SD-1.5 I was getting about 2.1 iterations per second. On the latest branch I am getting 1.5 seconds per iteration. I.E. Went from ~0.5 second for ~1 iterations to ~3 seconds for ~1 iteration aka about 500% slower

No change in my setup between versions. No idea why I'm seeing such an immense drop.

Reverting to 828438b and restarting the computer returned speed back to previous levels.

Steps to reproduce the problem

Try the latest branch. Compare to old branch. See the huge drop in performance.

What should have happened?

Speed should be similar if not better.

Commit where the problem happens

0b5dcb3

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--xformers

Additional information, context and logs

No additional changes besides having moviepy==1.0.3 added to requirements_versions.txt for an animation script.

skdursh avatar Nov 28 '22 20:11 skdursh

Wit todays repo i have 2.76 it/s on gtx 1080ti win10 chrome browser , no xformers

2blackbar avatar Nov 28 '22 21:11 2blackbar

I do not see any difference on my 3080Ti with xformers

aliencaocao avatar Nov 29 '22 02:11 aliencaocao

Also have a slowdown. Not massive by any means, just about +5 seconds. 3060ti no xformers

RevyaM avatar Nov 29 '22 08:11 RevyaM

I had an incredible slowdown, with xformers, on a 1660 Ti. It was like twice the time. I used the latest but was somewhere else advised to roll back to a commit from before then introduction of SD 2.0.

cooperdk avatar Nov 29 '22 16:11 cooperdk

1060 6GB: image generation with the same settings and webui arguments went from approximately 60 seconds to about 170 seconds after doing a git pull. I'll have to see about rolling back as well, though I have no idea what commit I was on previously.

Edit: I'm stupid. I think this was because Visual Studio Code was open.

... Yep, it was Visual Studio Code. Back to exactly 60 seconds after closing it. Why Visual Studio Code uses up so many GPU resources is anyone's guess.

Crimdahl avatar Nov 29 '22 23:11 Crimdahl

Wit todays repo i have 2.76 it/s on gtx 1080ti win10 chrome browser , no xformers

https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/5228

ZeroCool22 avatar Nov 30 '22 01:11 ZeroCool22

since many do not have that gpu, could you sequencially git revert to exactly at half that batch of merges, then a quarter, and so on? and eventually see where this issue is coming from.

ClashSAN avatar Nov 30 '22 08:11 ClashSAN

Pretty sure that there are not few who have a 1xxx series GPU. Especially 1660.

I reverted to a week back, where it took about a minute to generate an image with eye correction and sharpen, 28 steps. Which is how it used to be.

To pinpoint more precisely, I'm gonna have to install on another location - don't want to break my current install. My guess was that it's the introduction of SD2 that caused the trouble af I had not updated the installation for a few days prior to that.

cooperdk avatar Nov 30 '22 11:11 cooperdk

I have multiple program folder sd-webui's on my machine. I keep those since I have the storage, they don't clash with one another. The only things I know they will have in common is the gpu driver version, the python base version installed on your machine, and the user.cache\huggingface\transformers, record files that pip install transfomers makes. I know I'm being lengthy with detail, but im pretty sure making a new folder is a good way to go, especially since you can perform git revert <commit> without worry. All your packages are contained within the venv folder, so its fine to just delete the entire stable-diffusion-webui folder when your done.

ClashSAN avatar Nov 30 '22 11:11 ClashSAN

Closing as stale.

catboxanon avatar Aug 26 '23 09:08 catboxanon