1/13/2025, 3:40:33 PM | 热度:223 | 阅读本文需 3 分钟
点赞
最近新出了一个技术 WaveSpeed 动态缓存加速,很多博主都在介绍,我这里也是安装上了并且分享个图文的教程给大家,实测在我的 4090 上可以提速百分之 40%,而且对质量没有损耗,非常的好用
github 项目地址:https://github.com/chengzeyi/Comfy-WaveSpeed
目前还没收录到 manager,所以大家要在管理器中通过 git url 安装
安装完插件我们还需要在我们的 ComfyUI 的 Python 环境中安装 triton
下载地址:https://github.com/woct0rdho/triton-windows/releases/tag/v3.1.0-windows.post5
大家选择自己的版本,我这里以 python311 版本为例
然后在python_embeded 目录内 cmd 进入命令行窗口,并且输入以下代码安装即可
python.exe -m pip install triton-3.1.0-cp311-cp311-win_amd64.whl
插件和环境都配置好后我们重启 comfyui 即可
插件作者也分享了工作流,大家可以直接去下载:
https://github.com/chengzeyi/Comfy-WaveSpeed/tree/main/workflows
下面是插件作者推荐的参数,Flux 要用原版的 Dev 模型+fp8_e4m3fn_fast 模式
residual_diff_threashold 参数设置成 0.12 即可
我加 Lora 在 1024*1024 分辨率下平均一张图不用加速是 15 秒,加速后是 9 秒左右,相当于加速了 40%,还是非常给力的。
质量基本没有损失,甚至细节还丰富一点
测试提示词:A Spartan warrior, a dragon's shadow emerges behind him, representing the warrior's powerful strength, he holds a shield in his left hand and a spear in his right hand, wearing thick armor and helmet, red pupils, staring menacingly at the camera, he has a dragon's wings on his back, richly detailed, very imposing, he gathers energy around him to form the shape of a dragon, a giant high view, very much a A sense of oppression, he stepped on the camera with his foot
3
© CopyRight 2002-2024 ,CHINAZ.COM , Inc.All Rights Reserved.