• Competitor rules

    Please remember that any mention of competitors, hinting at competitors or offering to provide details of competitors will result in an account suspension. The full rules can be found under the 'Terms and Rules' link in the bottom right corner of your screen. Just don't mention competitors in any way, shape or form and you'll be OK.

Stable Diffusion Benchmark

Associate
Joined
19 Jul 2015
Posts
538
I came across the SHARK Stable Diffusion project which has added RDNA3 support recently, and thought it would be interesting if we could get some benchmarking going here.

If you don't know what Stable Diffusion is, it's a text-to image converter - give it a prompt, and it will try to draw it for you. Mostly badly, but sometimes it's incredibly impressive.

To get it working:
1a) For AMD GPUs, install the beta Adrenalin driver (it won't work with the normal drivers) from https://www.amd.com/en/support/kb/release-notes/rn-rad-win-22-11-1-mlir-iree
1b) For nVidia GPUs, install CUDA from https://developer.nvidia.com/cuda-downloads
2) Download the SHARK SD executable from here: https://github.com/nod-ai/SHARK/releases/tag/20221220.400
3) Run it. This will take a while, and download multiple GB of model data the first time.
4) Once it's ready, go to http://localhost:8080/ in your browser. Note that I could only get it to work in Chrome, not Firefox.

More complete instructions for installing it on AMD cards can be found here: https://github.com/nod-ai/SHARK/blo...ence/stable_diffusion/stable_diffusion_amd.md

To keep things consistent, run it with the same settings I did: "3dfx voodoo" as the prompt, no negative prompt, and set the seed to 1198098929. Everything else at default. I get around 2.88s on my PC with a 5950X and 7900XTX.

This is a screenshot of the web interface, including the generated image. It clearly has no idea about graphics card history, but whatever that thing it drew is, I want one.
sd_test.jpg


Results
UserGPUCPUTime
Mr EvilRadeon 7900XTX MBA5950X2.88s
Mr EvilRadeon VII5950X28.98s
 
Last edited:
No one up for the challange? Think it looks too complicated? It's really not - it's packaged as a single executable that does all the work for you.

I have another data point anyway - I had to remove my 7900XTX because of... problems, so I put my trusty old Radeon VII back in. It took 28.98s. The Radeon VII certainly isn't 10x slower than the 7900XTX generally, so I suppose the large difference here is because of the lack of features used to accelerate Stable Diffusion. Still, AMD have now taken the top 2 positions!

This isn't just good for benchmarking either. The whole family can have hours of fun making it draw weird stuff. Since it's that time of year, here's one generated from the prompt "lovecraftian father christmas":

lovecraftian_father_christmas.jpg
 
Back
Top Bottom