Stable Diffusion 推理加速技巧解析.pdf

编号:155314 PDF 23页 2.37MB 下载积分:VIP专享
下载报告请您先登录!

Stable Diffusion 推理加速技巧解析.pdf

1、Stable Diffusion 推理加速技巧解析Stable DiffusionprocessText Encoder(CLIP Text)Image Information Creator(Unet+Scheduler)Image Decoder(Autoencoder decoder)77 x 768Token embeddings4 x 64 x 64Processed image information tensorUnetStep1UnetStep2UnetStep3UnetStep50UNet+Scheduler to gradually process/diffuse info

2、rmation in the information(latent)space.Input:text embeddings and a starting multi-dimensional array made up of noise.Output:A processed information arrayClipText for text encoding.Input:text.Output:77 token embeddings vectors,each in 768 dimensionsAutoencoder Decoder that paints the final image usi

3、ng the processed information array.Input:The processed information array(dimensions:(4,64,64)Output:The resulting image(dimensions:(3,512,512)which are(red/green/blue,width,height)Stable DiffusionFLOPsStarting Latent State:Sample Gaussian Noise from random seedUser promptClip text encoderTimeStep:tS

4、chedulerUpdate/denoise LatentRepeat T=50 timesVAE Image DecoderFinal denoised latentBx4xHxWOutput image:Bx3x8Hx8WFloating point operations:0.02714xU-NetFloating point operations:1.67952x10121012Floating point operations:2.53933x1012Floating point operations:83.976x1012For classifier-free guidanceFlo

5、ating point operations measured under:B=1H=W=64Negative prompt:Empty token if not provided2Bx77x768,text embeddings2Bx4xHxW,predicted Noise2Bx4xHxW,Latent TensorRT&BenchmarkStable Diffusion TensorRTTwo way to leverage SD trthttps:/ Community Exampleshttps:/ Demo Diffusion2Stable DiffusionInference b

6、enchmark UNET x 50 OOTB+Myelin+fMHA+fMHCA+LayerNorm+GroupNorm+SplitGeLU+Seq2Spatial+Graph Optimization+Preview Feature 0805 CLIP OOTB+Myelin+LayerNorm VAE OOTB+Myelin+GroupNorm792 ms4 ms19 ms815 msUNET x 50CLIPVAEPipeline TotalTensorRT 8.5.2.2,bs=1,wh=512x512Structured SparsitySparsity2:4 FINE-GRAIN

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(Stable Diffusion 推理加速技巧解析.pdf)为本站 (张5G) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠