參考網站
https://docs.comfy.org/zh-CN/tutorials/image/z-image/z-image-turbo
下載對應模型
- z_image_turbo_bf16.safetensors
另外下載對應 ComfyUI work flow json
https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/templates/image_z_image_turbo.json
安裝好之後使用 ComfyUI 開啓 json 檔案
先測試按 play,發生問題,看到 console 出現問題
To see the GUI go to: http://0.0.0.0:7861 got prompt Using pytorch attention in VAE Using pytorch attention in VAE VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16 CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16 !!! Exception during processing !!! Error(s) in loading state_dict for Llama2: size mismatch for model.embed_tokens.weight: copying a param with shape torch.Size([151936, 2560]) from checkpoint, the shape in current model is torch.Size([128256, 4096]).
這是因爲 ComfyUI 版本太舊,換成新版本,0.3.76(剛剛的是 0.3.53)
再執行就成功了,速度挺快的,不到10秒就生成出來。
測試下面的案例,結果也是不錯的。其他功能以後再測試吧。
Prompt:
一張時尚雜誌風格,類似VOGUE,模特兒為20歲的韓國女子,穿著時尚洋裝,姿體優美,封面寫著: "WINNER LITE FOCUS" 。
留言
張貼留言