markhitvdrz commited on
Commit
4eaa88a
·
verified ·
1 Parent(s): 9f6282b

Upload folder using huggingface_hub

Browse files
workflows/README.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Workflows
2
+
3
+ ## `qwen_2.1_turbo_api.json`
4
+
5
+ ComfyUI **API-format** workflow (the shape `/prompt` accepts), used by
6
+ `scripts/generate_images.py`. It is a minimal version of the official
7
+ *Qwen Image 2.1 Turbo — Text to Image* template with the prompt-enhancer branch removed:
8
+
9
+ | node | type | purpose |
10
+ |---|---|---|
11
+ | 1 | `UnetLoaderGGUF` | `qwen-image-2.1-turbo-Q5_K_M.gguf` |
12
+ | 2 | `CLIPLoader` | `qwen3vl_8b_int8_convrot.safetensors`, type `qwen_image` |
13
+ | 3 | `VAELoader` | `qwen_image_2.1_vae_bf16.safetensors` |
14
+ | 5 | `TextEncodeQwenImage21` | positive + negative prompt; `images: {}` |
15
+ | 6 | `EmptyLatentImage` | width/height (1024 or 2048) |
16
+ | 10 | `ManualSigmas` | the 8-step Turbo schedule |
17
+ | 11 | `SamplerCustomAdvanced` | euler, CFG 1 |
18
+ | 13 | `SaveImage` | PNG, keeps the alpha channel |
19
+
20
+ The `_node_ids` block at the top maps the fields the runner rewrites
21
+ (prompt, latent size, seed, output prefix). ComfyUI ignores it because it is removed
22
+ before the request is sent.
23
+
24
+ ## Using it in the UI
25
+
26
+ Load the official template *Qwen Image 2.1 Turbo — Text to Image* from the ComfyUI Template
27
+ Library, then replace `Load Diffusion Model` with **Unet Loader (GGUF)** and point it at the
28
+ Q5_K_M file. Keep the `ManualSigmas` node — a normal KSampler with 8 steps does **not**
29
+ reproduce the Turbo schedule.
30
+
31
+ ## Transparency prompt
32
+
33
+ Qwen Image 2.1 emits a real alpha channel when the prompt says so:
34
+
35
+ ```
36
+ This is an RGBA format image with transparency. A single {object}, shown whole and centred,
37
+ three-quarter view, studio product photograph, soft even lighting, sharp focus, true-to-life
38
+ materials and colours, no cast shadow, nothing else in the frame. The image has an alpha
39
+ channel and a transparent background.
40
+ ```
41
+
42
+ RGB under fully transparent pixels is arbitrary (often purple); it is hidden by alpha 0 and
43
+ is ignored by the 3D step, which composites on black using the mask.
workflows/qwen_2.1_turbo_api.json ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_node_ids": {
3
+ "text_encode": "5",
4
+ "latent": "6",
5
+ "noise": "8",
6
+ "save": "13"
7
+ },
8
+ "1": {
9
+ "class_type": "UnetLoaderGGUF",
10
+ "_meta": {"title": "Qwen Image 2.1 Turbo (GGUF Q5_K_M)"},
11
+ "inputs": {"unet_name": "qwen-image-2.1-turbo-Q5_K_M.gguf"}
12
+ },
13
+ "2": {
14
+ "class_type": "CLIPLoader",
15
+ "_meta": {"title": "Qwen3-VL 8B text encoder (int8)"},
16
+ "inputs": {
17
+ "clip_name": "qwen3vl_8b_int8_convrot.safetensors",
18
+ "type": "qwen_image",
19
+ "device": "default"
20
+ }
21
+ },
22
+ "3": {
23
+ "class_type": "VAELoader",
24
+ "_meta": {"title": "Qwen Image 2.1 VAE"},
25
+ "inputs": {"vae_name": "qwen_image_2.1_vae_bf16.safetensors"}
26
+ },
27
+ "4": {
28
+ "class_type": "QwenImage21Cache",
29
+ "_meta": {"title": "Qwen Image 2.1 cache"},
30
+ "inputs": {"model": ["1", 0], "device": "auto", "dtype": "default"}
31
+ },
32
+ "5": {
33
+ "class_type": "TextEncodeQwenImage21",
34
+ "_meta": {"title": "Prompt (RGBA object)"},
35
+ "inputs": {
36
+ "clip": ["2", 0],
37
+ "prompt": "This is an RGBA format image with transparency. A single smartphone, shown whole and centred, three-quarter view, studio product photograph, soft even lighting, sharp focus, true-to-life materials and colours, no cast shadow, nothing else in the frame. The image has an alpha channel and a transparent background.",
38
+ "negative_prompt": "",
39
+ "resolution": 1024,
40
+ "images": {}
41
+ }
42
+ },
43
+ "6": {
44
+ "class_type": "EmptyLatentImage",
45
+ "_meta": {"title": "Latent 1024x1024"},
46
+ "inputs": {"width": 1024, "height": 1024, "batch_size": 1}
47
+ },
48
+ "7": {
49
+ "class_type": "CFGGuider",
50
+ "_meta": {"title": "CFG 1 (Turbo)"},
51
+ "inputs": {"model": ["4", 0], "positive": ["5", 0], "negative": ["5", 1], "cfg": 1.0}
52
+ },
53
+ "8": {
54
+ "class_type": "RandomNoise",
55
+ "_meta": {"title": "Noise / seed"},
56
+ "inputs": {"noise_seed": 42}
57
+ },
58
+ "9": {
59
+ "class_type": "KSamplerSelect",
60
+ "_meta": {"title": "Euler"},
61
+ "inputs": {"sampler_name": "euler"}
62
+ },
63
+ "10": {
64
+ "class_type": "ManualSigmas",
65
+ "_meta": {"title": "Turbo 8-step sigmas"},
66
+ "inputs": {"sigmas": "1.0, 0.978453, 0.95418, 0.926626, 0.89508, 0.845148, 0.704534, 0.414568, 0"}
67
+ },
68
+ "11": {
69
+ "class_type": "SamplerCustomAdvanced",
70
+ "_meta": {"title": "Sample"},
71
+ "inputs": {
72
+ "noise": ["8", 0],
73
+ "guider": ["7", 0],
74
+ "sampler": ["9", 0],
75
+ "sigmas": ["10", 0],
76
+ "latent_image": ["6", 0]
77
+ }
78
+ },
79
+ "12": {
80
+ "class_type": "VAEDecode",
81
+ "_meta": {"title": "Decode (RGBA)"},
82
+ "inputs": {"samples": ["11", 0], "vae": ["3", 0]}
83
+ },
84
+ "13": {
85
+ "class_type": "SaveImage",
86
+ "_meta": {"title": "Save PNG with alpha"},
87
+ "inputs": {
88
+ "images": ["12", 0],
89
+ "filename_prefix": "idol3d/test"
90
+ }
91
+ }
92
+ }