顯卡繪圖速度測試記實
我的4070ti出圖居然是 1.16s/it,比同事的3060顯卡還慢。
于是我開始研究這個顯卡劃水問題。
主要參考了以下文章。
SD教程·顯卡偷懶?教你3個操作大幅提升AI繪圖速度? (感謝up主)
1.2,3種我方法我都用了。我從第2種方法開始。
第2種安裝方法我提升了兩倍,?1.16s/it變成了2it/s 單位都變了,我還以為發(fā)生了什么事了。后來想了想?1.16s/it 其實就相當(dāng)于0.87it/s 一回事,第2種讓我提升了2倍多。
我不是很滿意。
于是我用第1種,即換lib方法,提升不明顯,基本無變化。
最后用第三種,啟動時加了--xformers? 參數(shù),首次啟動時webui 自行安裝,要等半小時,再次測試發(fā)現(xiàn),速度變成了5 it/s,效果明顯
好了,這三次優(yōu)化,提升了6倍左右,馬馬虎虎吧~
統(tǒng)一用一下的咒語測試的
best quality, ultra high res,ultral detailed face and eyes, (photorealistic:1.4), 1girl, 16 years old girl,teenage,school uniform,((denim shorts)), (light brown:red:grey hair:1.4), looking at viewer, smiling, cute, huge ass, (ray tracing:1.4),(long legs:1.4),big breast,narrow waist,doing pose
Negative prompt: paintings, sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, glans
Size: 512x968, Seed: 368018087, Model: ChilloutMix_chilloutmix_NiPrunedFp32Fix, Steps: 20, Sampler: DPM++ SDE Karras, CFG scale: 7, Model hash: fc2511737a, Face restoration: CodeFormer
修改咒語發(fā)現(xiàn),跟算法和圖片大小都有關(guān)系,跟提示詞關(guān)系不大。euler出圖最快,可以達到10it/s。用dpm++就很慢。