|
47 | 47 |
|
48 | 48 | ## 🚀 Wan2.2 Fun Control 工作流示例
|
49 | 49 |
|
50 |
| -### ⚠️ 环境要求 |
51 |
| - |
52 |
| -<div style="background: #fef3c7; border-left: 4px solid #d97706; padding: 16px; margin: 16px 0; border-radius: 4px;"> |
53 |
| - <strong>📋 使用前请确认</strong><br> |
54 |
| - • 确保 ComfyUI 已更新到最新版本<br> |
55 |
| - • 推荐使用最新开发版(nightly)获得完整功能<br> |
56 |
| - • 本指南的工作流可在 ComfyUI 的工作流模板中找到<br> |
57 |
| - • 如果加载工作流时有节点缺失,请检查 ComfyUI 版本或节点导入状态 |
58 |
| -</div> |
59 |
| - |
60 |
| -<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0;"> |
61 |
| - |
62 |
| -<div style="background: #dcfce7; border-left: 4px solid #059669; padding: 16px; border-radius: 4px;"> |
63 |
| -<h4 style="color: #059669; margin: 0 0 8px 0;">📥 下载链接</h4> |
64 |
| -<ul style="margin: 0; padding-left: 20px; color: #065f46;"> |
65 |
| - <li><a href="https://www.comfy.org/download" target="_blank" style="color: #059669;">ComfyUI 下载</a></li> |
66 |
| - <li><a href="/zh-CN/installation/update_comfyui" target="_blank" style="color: #059669;">ComfyUI 更新教程</a></li> |
67 |
| - <li><a href="/zh-CN/interface/features/template" target="_blank" style="color: #059669;">工作流模板</a></li> |
68 |
| -</ul> |
69 |
| -</div> |
70 |
| - |
71 |
| -<div style="background: #fef2f2; border-left: 4px solid #dc2626; padding: 16px; border-radius: 4px;"> |
72 |
| -<h4 style="color: #dc2626; margin: 0 0 8px 0;">🔧 常见问题</h4> |
73 |
| -<ul style="margin: 0; padding-left: 20px; color: #991b1b;"> |
74 |
| - <li>节点缺失:版本过旧或导入失败</li> |
75 |
| - <li>功能不全:使用稳定版而非开发版</li> |
76 |
| - <li>加载失败:启动时节点导入异常</li> |
77 |
| -</ul> |
78 |
| -</div> |
79 |
| - |
80 |
| -</div> |
81 |
| - |
82 |
| -### 🔧 工作流版本说明 |
83 |
| - |
84 |
| -<div style="background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin: 16px 0;"> |
85 |
| - |
86 |
| -提供两个版本的工作流供选择: |
87 |
| - |
88 |
| -<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0;"> |
89 |
| - |
90 |
| -<div style="background: #eff6ff; border-left: 4px solid #2563eb; padding: 16px; border-radius: 4px;"> |
91 |
| -<h4 style="color: #2563eb; margin: 0 0 8px 0;">⚡ Lightning 加速版</h4> |
92 |
| -<p style="margin: 0 0 8px 0; color: #1e40af; font-size: 14px;">使用 <a href="https://huggingface.co/lightx2v/Wan2.2-Lightning" target="_blank" style="color: #2563eb;">Wan2.2-Lightning</a> 4步 LoRA</p> |
93 |
| -<div style="background: #dcfce7; color: #059669; padding: 4px 12px; border-radius: 12px; font-size: 12px; display: inline-block; margin-right: 8px;">✅ 速度更快</div> |
94 |
| -<div style="background: #fed7aa; color: #ea580c; padding: 4px 12px; border-radius: 12px; font-size: 12px; display: inline-block;">⚠️ 动态损失</div> |
95 |
| -</div> |
96 |
| - |
97 |
| -<div style="background: #f0fdf4; border-left: 4px solid #059669; padding: 16px; border-radius: 4px;"> |
98 |
| -<h4 style="color: #059669; margin: 0 0 8px 0;">🎯 标准质量版</h4> |
99 |
| -<p style="margin: 0 0 8px 0; color: #065f46; font-size: 14px;">使用 fp8_scaled 版本,无加速 LoRA</p> |
100 |
| -<div style="background: #dcfce7; color: #059669; padding: 4px 12px; border-radius: 12px; font-size: 12px; display: inline-block; margin-right: 8px;">✅ 质量更高</div> |
101 |
| -<div style="background: #fed7aa; color: #ea580c; padding: 4px 12px; border-radius: 12px; font-size: 12px; display: inline-block;">⏱️ 耗时更长</div> |
102 |
| -</div> |
103 |
| - |
104 |
| -</div> |
105 |
| - |
106 |
| -#### 📊 性能对比测试 |
107 |
| - |
108 |
| -<div style="background: #f0fdf4; border-left: 4px solid #059669; padding: 16px; margin: 16px 0; border-radius: 4px;"> |
109 |
| - <strong>🧪 测试环境</strong>:RTX 4090D 24GB 显存,640×640 分辨率,81 帧长度 |
110 |
| -</div> |
111 |
| - |
112 |
| -<div style="overflow-x: auto; margin: 16px 0;"> |
113 |
| -<table style="width: 100%; border-collapse: collapse; background: white; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1);"> |
114 |
| - <thead style="background: #f8fafc;"> |
115 |
| - <tr> |
116 |
| - <th style="padding: 12px; text-align: left; border-bottom: 1px solid #e2e8f0; color: #1e40af; font-weight: 600;">模型类型</th> |
117 |
| - <th style="padding: 12px; text-align: left; border-bottom: 1px solid #e2e8f0; color: #1e40af; font-weight: 600;">分辨率</th> |
118 |
| - <th style="padding: 12px; text-align: left; border-bottom: 1px solid #e2e8f0; color: #1e40af; font-weight: 600;">显存占用</th> |
119 |
| - <th style="padding: 12px; text-align: left; border-bottom: 1px solid #e2e8f0; color: #1e40af; font-weight: 600;">首次生成</th> |
120 |
| - <th style="padding: 12px; text-align: left; border-bottom: 1px solid #e2e8f0; color: #1e40af; font-weight: 600;">第二次生成</th> |
121 |
| - </tr> |
122 |
| - </thead> |
123 |
| - <tbody> |
124 |
| - <tr> |
125 |
| - <td style="padding: 12px; border-bottom: 1px solid #f1f5f9; font-weight: 500;">fp8_scaled</td> |
126 |
| - <td style="padding: 12px; border-bottom: 1px solid #f1f5f9;">640×640</td> |
127 |
| - <td style="padding: 12px; border-bottom: 1px solid #f1f5f9;">83%</td> |
128 |
| - <td style="padding: 12px; border-bottom: 1px solid #f1f5f9;">≈ 524秒</td> |
129 |
| - <td style="padding: 12px; border-bottom: 1px solid #f1f5f9;">≈ 520秒</td> |
130 |
| - </tr> |
131 |
| - <tr> |
132 |
| - <td style="padding: 12px; font-weight: 500;">fp8_scaled + 4步LoRA</td> |
133 |
| - <td style="padding: 12px;">640×640</td> |
134 |
| - <td style="padding: 12px;">89%</td> |
135 |
| - <td style="padding: 12px;"><span style="background: #dcfce7; color: #059669; padding: 2px 8px; border-radius: 4px; font-size: 12px;">≈ 138秒</span></td> |
136 |
| - <td style="padding: 12px;"><span style="background: #dcfce7; color: #059669; padding: 2px 8px; border-radius: 4px; font-size: 12px;">≈ 79秒</span></td> |
137 |
| - </tr> |
138 |
| - </tbody> |
139 |
| -</table> |
140 |
| -</div> |
141 |
| - |
142 |
| -<div style="background: #eff6ff; border-left: 4px solid #2563eb; padding: 16px; margin: 16px 0; border-radius: 4px;"> |
143 |
| - <strong>💡 版本切换说明</strong><br> |
144 |
| - 由于 4 步 LoRA 对初次使用工作流的用户体验较好,默认启用加速版本。如需切换到标准版本,框选对应工作流后使用 <strong>Ctrl+B</strong> 即可启用。 |
145 |
| -</div> |
146 |
| - |
147 |
| -</div> |
148 | 50 |
|
149 | 51 | ### 📥 步骤一:工作流及素材下载
|
150 | 52 |
|
151 | 53 | <div style="background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin: 16px 0;">
|
| 54 | +可直接通过Comfyui模版仓库打开 |
152 | 55 |
|
153 |
| -下载以下视频或 JSON 文件并拖入 ComfyUI 中以加载对应的工作流。 |
| 56 | + |
| 57 | +或下载以下视频或 JSON 文件并拖入 ComfyUI 中以加载对应的工作流。 |
154 | 58 |
|
155 | 59 | <div style="text-align: center; margin: 20px 0;">
|
156 | 60 | <video controls style="width: 100%; max-width: 800px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);" src="https://raw.githubusercontent.com/Comfy-Org/example_workflows/refs/heads/main/video/wan/wan2.2_fun_control/wan2.2_14B_fun_inp.mp4"></video>
|
|
0 commit comments