4 ms·
SDXL and ControlNet are already optimized, if thats what you mean: https://github.com/chengzeyi/stable-fast https://github.com/chengzeyi/stable-fast (Note the
by brucethemoose2 3y ago
SDXL and ControlNet are already optimized, if thats what you mean: https://github.com/chengzeyi/stable-fast https://github.com/chengzeyi/stable-fast
(Note the links to various SD compilers).
But the whole field is moving so fast that people aren't even adopting the compilers and optimized implementations at large.
- godelski 3y agoNot really what I mean. I mean TensorRT is faster than that according to their README. By optimized I'm specifically pointing to Llama cpp because 1) it's in C, 2) using quantized models, 3) there's a hell of a lot of optimizations in there. The thing runs on a raspberry pi! I mean not well but damn. SD is still pushing my 3080Ti for comparison. But I wasn't thinking diffusion. Models are big and slow. GANs still reign in terms of speed and model sizes. I mean the StyleGAN-T model is 75M params (lightweight) or 1bn (full) (with 123M for text). That paper notes that the 56 images they use in the Fig 2 takes 6 seconds on a 3090 at 512 resolution. I have a 3080Ti and I can tell you that's about how long it takes for me to generate a batch size of 4 with an optimized TensorRT model. That's a big difference, especially considering those are done with interpolations. I mean the GAN vs Diffusion debate is often a little silly as realistically it is more a matter of application. I'll take diffusion in my photoshop but I'll take StyleGAN for my real time video upscaling. But yes, I do understand how fast the field is moving. You can check my comment history to verify if register isn't sufficient indication.