ComfyPilotComfyPilot
工作流 / 图像 / Flux.1 Schnell FP8
Flux.1 Schnell FP8

Flux.1 Schnell FP8

Flux.1 Schnell FP8

使用Flux Schnell fp8量化版本快速生成图像。适用于低端硬件,仅需4步即可生成图像。

图像 9 个节点 24 次使用 ComfyUI ≥ 0.0.4 ComfyUI 8 KB

下载工作流 JSON 查看官方来源

下载后把文件拖进 ComfyUI 窗口即可打开。

需要的权重

这个工作流引用了 1 个权重文件,其中 1 个能在本站模型库里找到。

flux1-schnell-fp8.safetensors 在模型库查看

节点构成

CLIPTextEncode × 2
EmptySD3LatentImage × 1
VAEDecode × 1
SaveImage × 1
KSampler × 1
CheckpointLoaderSimple × 1
Note × 1
MarkdownNote × 1

官方标注的模型

FLUX.1FLUX

工作流 JSON

和上面「下载工作流 JSON」是同一份文件。

1{
2 "last_node_id": 37,
3 "last_link_id": 58,
4 "nodes": [
5 {
6 "id": 33,
7 "type": "CLIPTextEncode",
8 "pos": [
9 390,
10 400
11 ],
12 "size": [
13 422.85,
14 164.31
15 ],
16 "flags": {
17 "collapsed": true
18 },
19 "order": 5,
20 "mode": 0,
21 "inputs": [
22 {
23 "name": "clip",
24 "type": "CLIP",
25 "link": 54,
26 "slot_index": 0
27 }
28 ],
29 "outputs": [
30 {
31 "name": "CONDITIONING",
32 "type": "CONDITIONING",
33 "links": [
34 55
35 ],
36 "slot_index": 0
37 }
38 ],
39 "title": "CLIP Text Encode (Negative Prompt)",
40 "properties": {
41 "Node name for S&R": "CLIPTextEncode"
42 },
43 "widgets_values": [
44 ""
45 ],
46 "color": "#322",
47 "bgcolor": "#533"
48 },
49 {
50 "id": 27,
51 "type": "EmptySD3LatentImage",
52 "pos": [
53 471,
54 455
55 ],
56 "size": [
57 315,
58 106
59 ],
60 "flags": [],
61 "order": 0,
62 "mode": 0,
63 "inputs": [],
64 "outputs": [
65 {
66 "name": "LATENT",
67 "type": "LATENT",
68 "shape": 3,
69 "links": [
70 51
71 ],
72 "slot_index": 0
73 }
74 ],
75 "properties": {
76 "Node name for S&R": "EmptySD3LatentImage"
77 },
78 "widgets_values": [
79 1024,
80 1024,
81 1
82 ],
83 "color": "#323",
84 "bgcolor": "#535"
85 },
86 {
87 "id": 8,
88 "type": "VAEDecode",
89 "pos": [
90 1151,
91 195
92 ],
93 "size": [
94 210,
95 46
96 ],
97 "flags": [],
98 "order": 7,
99 "mode": 0,
100 "inputs": [
101 {
102 "name": "samples",
103 "type": "LATENT",
104 "link": 52
105 },
106 {
107 "name": "vae",
108 "type": "VAE",
109 "link": 46
110 }
111 ],
112 "outputs": [
113 {
114 "name": "IMAGE",
115 "type": "IMAGE",
116 "links": [
117 9
118 ],
119 "slot_index": 0
120 }
121 ],
122 "properties": {
123 "Node name for S&R": "VAEDecode"
124 },
125 "widgets_values": []
126 },
127 {
128 "id": 9,
129 "type": "SaveImage",
130 "pos": [
131 1375,
132 194
133 ],
134 "size": [
135 985.3,
136 1060.38
137 ],
138 "flags": [],
139 "order": 8,
140 "mode": 0,
141 "inputs": [
142 {
143 "name": "images",
144 "type": "IMAGE",
145 "link": 9
146 }
147 ],
148 "outputs": [],
149 "properties": [],
150 "widgets_values": [
151 "ComfyUI"
152 ]
153 },
154 {
155 "id": 31,
156 "type": "KSampler",
157 "pos": [
158 816,
159 192
160 ],
161 "size": [
162 315,
163 262
164 ],
165 "flags": [],
166 "order": 6,
167 "mode": 0,
168 "inputs": [
169 {
170 "name": "model",
171 "type": "MODEL",
172 "link": 47
173 },
174 {
175 "name": "positive",
176 "type": "CONDITIONING",
177 "link": 58
178 },
179 {
180 "name": "negative",
181 "type": "CONDITIONING",
182 "link": 55
183 },
184 {
185 "name": "latent_image",
186 "type": "LATENT",
187 "link": 51
188 }
189 ],
190 "outputs": [
191 {
192 "name": "LATENT",
193 "type": "LATENT",
194 "shape": 3,
195 "links": [
196 52
197 ],
198 "slot_index": 0
199 }
200 ],
201 "properties": {
202 "Node name for S&R": "KSampler"
203 },
204 "widgets_values": [
205 173805153958730,
206 "randomize",
207 4,
208 1,
209 "euler",
210 "simple",
211 1
212 ]
213 },
214 {
215 "id": 30,
216 "type": "CheckpointLoaderSimple",
217 "pos": [
218 48,
219 192
220 ],
221 "size": [
222 315,
223 98
224 ],
225 "flags": [],
226 "order": 1,
227 "mode": 0,
228 "inputs": [],
229 "outputs": [
230 {
231 "name": "MODEL",
232 "type": "MODEL",
233 "shape": 3,
234 "links": [
235 47
236 ],
237 "slot_index": 0
238 },
239 {
240 "name": "CLIP",
241 "type": "CLIP",
242 "shape": 3,
243 "links": [
244 45,
245 54
246 ],
247 "slot_index": 1
248 },
249 {
250 "name": "VAE",
251 "type": "VAE",
252 "shape": 3,
253 "links": [
254 46
255 ],
256 "slot_index": 2
257 }
258 ],
259 "properties": {
260 "Node name for S&R": "CheckpointLoaderSimple",
261 "models": [
262 {
263 "name": "flux1-schnell-fp8.safetensors",
264 "url": "https://huggingface.co/Comfy-Org/flux1-schnell/resolve/main/flux1-schnell-fp8.safetensors?download=true",
265 "directory": "checkpoints"
266 }
267 ]
268 },
269 "widgets_values": [
270 "flux1-schnell-fp8.safetensors"
271 ]
272 },
273 {
274 "id": 6,
275 "type": "CLIPTextEncode",
276 "pos": [
277 384,
278 192
279 ],
280 "size": [
281 422.85,
282 164.31
283 ],
284 "flags": [],
285 "order": 4,
286 "mode": 0,
287 "inputs": [
288 {
289 "name": "clip",
290 "type": "CLIP",
291 "link": 45
292 }
293 ],
294 "outputs": [
295 {
296 "name": "CONDITIONING",
297 "type": "CONDITIONING",
298 "links": [
299 58
300 ],
301 "slot_index": 0
302 }
303 ],
304 "title": "CLIP Text Encode (Positive Prompt)",
305 "properties": {
306 "Node name for S&R": "CLIPTextEncode"
307 },
308 "widgets_values": [
309 "a bottle with a beautiful rainbow galaxy inside it on top of a wooden table in the middle of a modern kitchen beside a plate of vegetables and mushrooms and a wine glasse that contains a planet earth with a plate with a half eaten apple pie on it"
310 ],
311 "color": "#232",
312 "bgcolor": "#353"
313 },
314 {
315 "id": 34,
316 "type": "Note",
317 "pos": [
318 831,
319 501
320 ],
321 "size": [
322 282.86,
323 164.08
324 ],
325 "flags": [],
326 "order": 2,
327 "mode": 0,
328 "inputs": [],
329 "outputs": [],
330 "properties": {
331 "text": ""
332 },
333 "widgets_values": [
334 "Note that Flux dev and schnell do not have any negative prompt so CFG should be set to 1.0. Setting CFG to 1.0 means the negative prompt is ignored.\n\nThe schnell model is a distilled model that can generate a good image with only 4 steps."
335 ],
336 "color": "#222",
337 "bgcolor": "#000"
338 },
339 {
340 "id": 37,
341 "type": "MarkdownNote",
342 "pos": [
343 45,
344 345
345 ],
346 "size": [
347 225,
348 60
349 ],
350 "flags": [],
351 "order": 3,
352 "mode": 0,
353 "inputs": [],
354 "outputs": [],
355 "properties": [],
356 "widgets_values": [
357 "🛈 [Learn more about this workflow](https://comfyanonymous.github.io/ComfyUI_examples/flux/#flux-schnell-1)"
358 ],
359 "color": "#222",
360 "bgcolor": "#000"
361 }
362 ],
363 "links": [
364 [
365 9,
366 8,
367 0,
368 9,
369 0,
370 "IMAGE"
371 ],
372 [
373 45,
374 30,
375 1,
376 6,
377 0,
378 "CLIP"
379 ],
380 [
381 46,
382 30,
383 2,
384 8,
385 1,
386 "VAE"
387 ],
388 [
389 47,
390 30,
391 0,
392 31,
393 0,
394 "MODEL"
395 ],
396 [
397 51,
398 27,
399 0,
400 31,
401 3,
402 "LATENT"
403 ],
404 [
405 52,
406 31,
407 0,
408 8,
409 0,
410 "LATENT"
411 ],
412 [
413 54,
414 30,
415 1,
416 33,
417 0,
418 "CLIP"
419 ],
420 [
421 55,
422 33,
423 0,
424 31,
425 2,
426 "CONDITIONING"
427 ],
428 [
429 58,
430 6,
431 0,
432 31,
433 1,
434 "CONDITIONING"
435 ]
436 ],
437 "groups": [],
438 "config": [],
439 "extra": {
440 "ds": {
441 "scale": 1.1,
442 "offset": [
443 0.68,
444 1.83
445 ]
446 }
447 },
448 "version": 0.4
449}