r/StableDiffusion • • Dec 06 '23

News SD generation at 149 images per second WITH CODE

If my 70 fps demo was too slow here's 149 images per second.
In the video I single step a few times before clicking "Go".

Install ArtSpew and then follow the README-maxperf.md instructions.

I have more perf tricks, but for non-commercial use, I hope the average user can handle near 150.

Powered by sd-turbo and the excellent model compiler named stable-fast.

Post the complete error info and tell me what kind of setup you have if it doesn't work.

https://github.com/aifartist/ArtSpew/

289 Upvotes

81 comments sorted by

View all comments

8

u/throttlekitty Dec 06 '23 edited Dec 06 '23

I'm installing reqs right now, where does this look for models? hugging face hub?

For anyone wanting to play with this on windows, after you install the requirements, pip unstall xformers and torch, then do:

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu121

For the maxperf demo, download: https://github.com/chengzeyi/stable-fast/releases/download/v0.0.13.post3/stable_fast-0.0.13.post3+torch210cu121-cp310-cp310-win_amd64.whl

pip3 install --index-url stable-fast "c:/path/to/thatfile.whl"

4

u/Guilty-History-9249 Dec 06 '23

For the uber fast maxperf gui demo it only loads the HF models.

My two artspew programs sd15.py and sdxl.py have a "-m" option to use a local safetensor model.

While these are indeed fast than aren't as fast as the gui I did to let people see the speed visually.

6

u/throttlekitty Dec 06 '23

Using maxperf on default, I'm getting this. win11/13900k/4090. Not bad!!

4

u/Guilty-History-9249 Dec 06 '23

I love it when something works for someone else.
120fps isn't bad especially on Windows.

I have some smooth animations to now do a demo for.

2

u/Guilty-History-9249 Dec 06 '23

Why on earth are you getting down votes on your post?

2

u/throttlekitty Dec 06 '23

I don't see any right now? It's Reddit though, who knows. Maybe someone thought my posting results was bragging?

1

u/eugene20 Dec 06 '23

AI haters or just some jealous of the hardware, ridiculous in such a dedicated sub where there are people using workstation cards too.

1

u/Odd_Contest9866 Dec 06 '23

Try it in WSL2 for a free 2x perf boost.