starsfriday commited on
Commit
129c6cc
·
verified ·
1 Parent(s): fb8fd5a

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ result/result1.png filter=lfs diff=lfs merge=lfs -text
37
+ result/result2.png filter=lfs diff=lfs merge=lfs -text
38
+ result/result3.png filter=lfs diff=lfs merge=lfs -text
39
+ result/test.jpg filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ base_model:
6
+ - Qwen/Qwen-Image-Edit-2511
7
+ tags:
8
+ - image-generation
9
+ - lora
10
+ - Qwen-Image
11
+ pipeline_tag: image-to-image
12
+ library_name: diffusers
13
+ widget:
14
+ - text: >-
15
+ Upscale this picture to 4K resolution.
16
+ output:
17
+ url: result/result1.png
18
+ - text: >-
19
+ Upscale this picture to 4K resolution.
20
+ output:
21
+ url: result/result2.png
22
+ - text: >-
23
+ Upscale this picture to 4K resolution.
24
+ output:
25
+ url: result/result3.png
26
+
27
+ ---
28
+ # starsfriday Qwen-Image-Edit-2511 LoRA
29
+
30
+ <Gallery />
31
+
32
+ ## Model Card for Model ID
33
+
34
+ <!-- Provide a quick summary of what the model is/does. -->
35
+
36
+ This is a model for High-definition magnification of the picture, trained on ```Qwen/Qwen-Image-Edit-2511```, and it is mainly used for losslessly enlarging images to approximately 2K size.For use in ```ComfyUI```.
37
+
38
+ <div style="background-color: white; padding: 15px; border-radius: 8px; margin: 15px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
39
+ <h2 style="color: #24292e; margin-top: 0;">ComfyUI Workflow</h2>
40
+ <p>This LoRA works with a modified version of <a href="https://huggingface.co/starsfriday/Qwen-Image-Edit-2511-Upscale2K/blob/main/Upscale.json" style="color: #0366d6; text-decoration: none;">Comfy's Qwen/Qwen-Image-Edit-2511 workflow</a>. The main modification is adding a Qwen/Qwen-Image-Edit-2511 LoRA node connected to the base model.</p>
41
+ <p>See the Downloads section above for the modified workflow.</p>
42
+ </div>
43
+
44
+ ### Direct Use
45
+
46
+ ```
47
+ from diffusers import QwenImageEditPipeline
48
+ import torch
49
+ from PIL import Image
50
+
51
+ # Load the pipeline
52
+ pipeline = QwenImageEditPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2511")
53
+ pipeline.to(torch.bfloat16)
54
+ pipeline.to("cuda")
55
+
56
+ # Load trained LoRA weights for in-scene editing
57
+ pipeline.load_lora_weights("starsfriday/Qwen-Image-Edit-2511-Upscale2K", weight_name="qwen_image_edit_2511_upscale.safetensors")
58
+
59
+ # Load input image
60
+ image = Image.open("./result/test.jpg").convert("RGB")
61
+
62
+ # Define in-scene editing prompt
63
+ prompt = "Upscale this picture to 4K resolution."
64
+
65
+ # Generate edited image with enhanced scene understanding
66
+ inputs = {
67
+ "image": image,
68
+ "prompt": prompt,
69
+ "generator": torch.manual_seed(12345),
70
+ "true_cfg_scale": 4.0,
71
+ "negative_prompt": " ",
72
+ "num_inference_steps": 50,
73
+ }
74
+
75
+ with torch.inference_mode():
76
+ output = pipeline(**inputs)
77
+ output_image = output.images[0]
78
+ output_image.save("edited_image.png")
79
+
80
+
81
+ ```
82
+
83
+ ## Trigger phrase
84
+
85
+ ```Upscale this picture to 4K resolution.```
86
+
87
+ There is no fixed trigger word. The specific removal prompt needs to be tested more
88
+
89
+ ## Download model
90
+
91
+ Weights for this model are available in Safetensors format.
92
+
93
+ [Download](https://huggingface.co/starsfriday/Qwen-Image-Edit-2511-Upscale2K)
94
+
95
+ ## Training at Chongqing Valiant Cat
96
+
97
+ This model was trained by the AI Laboratory of Chongqing Valiant Cat Technology Co., LTD(```https://vvicat.com/```).Business cooperation is welcome
Upscale.json ADDED
@@ -0,0 +1,1153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "91f6bbe2-ed41-4fd6-bac7-71d5b5864ecb",
3
+ "revision": 0,
4
+ "last_node_id": 117,
5
+ "last_link_id": 196,
6
+ "nodes": [
7
+ {
8
+ "id": 99,
9
+ "type": "Seed (rgthree)",
10
+ "pos": [
11
+ 420.96197406560714,
12
+ 466.84280189097996
13
+ ],
14
+ "size": [
15
+ 210,
16
+ 130
17
+ ],
18
+ "flags": {},
19
+ "order": 0,
20
+ "mode": 0,
21
+ "inputs": [],
22
+ "outputs": [
23
+ {
24
+ "dir": 4,
25
+ "label": "随机种",
26
+ "name": "SEED",
27
+ "shape": 3,
28
+ "type": "INT",
29
+ "links": [
30
+ 162
31
+ ]
32
+ }
33
+ ],
34
+ "properties": {
35
+ "cnr_id": "rgthree-comfy",
36
+ "ver": "f044a9dbb3fc9de55c6244d616d386986add3072"
37
+ },
38
+ "widgets_values": [
39
+ -1,
40
+ "",
41
+ "",
42
+ ""
43
+ ]
44
+ },
45
+ {
46
+ "id": 38,
47
+ "type": "CLIPLoader",
48
+ "pos": [
49
+ -34.261653900146484,
50
+ 198.56765747070312
51
+ ],
52
+ "size": [
53
+ 330,
54
+ 110
55
+ ],
56
+ "flags": {},
57
+ "order": 1,
58
+ "mode": 0,
59
+ "inputs": [],
60
+ "outputs": [
61
+ {
62
+ "name": "CLIP",
63
+ "type": "CLIP",
64
+ "slot_index": 0,
65
+ "links": [
66
+ 75,
67
+ 167
68
+ ]
69
+ }
70
+ ],
71
+ "properties": {
72
+ "cnr_id": "comfy-core",
73
+ "ver": "0.3.48",
74
+ "Node name for S&R": "CLIPLoader",
75
+ "models": [
76
+ {
77
+ "name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
78
+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors",
79
+ "directory": "text_encoders"
80
+ }
81
+ ],
82
+ "enableTabs": false,
83
+ "tabWidth": 65,
84
+ "tabXOffset": 10,
85
+ "hasSecondTab": false,
86
+ "secondTabText": "Send Back",
87
+ "secondTabOffset": 80,
88
+ "secondTabWidth": 65,
89
+ "widget_ue_connectable": {}
90
+ },
91
+ "widgets_values": [
92
+ "qwen_2.5_vl_7b_fp8_scaled.safetensors",
93
+ "qwen_image",
94
+ "default"
95
+ ]
96
+ },
97
+ {
98
+ "id": 39,
99
+ "type": "VAELoader",
100
+ "pos": [
101
+ -35.67443084716797,
102
+ 346.28021240234375
103
+ ],
104
+ "size": [
105
+ 330,
106
+ 60
107
+ ],
108
+ "flags": {},
109
+ "order": 2,
110
+ "mode": 0,
111
+ "inputs": [],
112
+ "outputs": [
113
+ {
114
+ "name": "VAE",
115
+ "type": "VAE",
116
+ "slot_index": 0,
117
+ "links": [
118
+ 76,
119
+ 171
120
+ ]
121
+ }
122
+ ],
123
+ "properties": {
124
+ "cnr_id": "comfy-core",
125
+ "ver": "0.3.48",
126
+ "Node name for S&R": "VAELoader",
127
+ "models": [
128
+ {
129
+ "name": "qwen_image_vae.safetensors",
130
+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors",
131
+ "directory": "vae"
132
+ }
133
+ ],
134
+ "enableTabs": false,
135
+ "tabWidth": 65,
136
+ "tabXOffset": 10,
137
+ "hasSecondTab": false,
138
+ "secondTabText": "Send Back",
139
+ "secondTabOffset": 80,
140
+ "secondTabWidth": 65,
141
+ "widget_ue_connectable": {}
142
+ },
143
+ "widgets_values": [
144
+ "qwen_image_vae.safetensors"
145
+ ]
146
+ },
147
+ {
148
+ "id": 8,
149
+ "type": "VAEDecode",
150
+ "pos": [
151
+ 722.103545110529,
152
+ -59.922979511608055
153
+ ],
154
+ "size": [
155
+ 210,
156
+ 46
157
+ ],
158
+ "flags": {
159
+ "collapsed": false
160
+ },
161
+ "order": 13,
162
+ "mode": 0,
163
+ "inputs": [
164
+ {
165
+ "name": "samples",
166
+ "type": "LATENT",
167
+ "link": 128
168
+ },
169
+ {
170
+ "name": "vae",
171
+ "type": "VAE",
172
+ "link": 76
173
+ }
174
+ ],
175
+ "outputs": [
176
+ {
177
+ "name": "IMAGE",
178
+ "type": "IMAGE",
179
+ "slot_index": 0,
180
+ "links": [
181
+ 161,
182
+ 179
183
+ ]
184
+ }
185
+ ],
186
+ "properties": {
187
+ "cnr_id": "comfy-core",
188
+ "ver": "0.3.48",
189
+ "Node name for S&R": "VAEDecode",
190
+ "enableTabs": false,
191
+ "tabWidth": 65,
192
+ "tabXOffset": 10,
193
+ "hasSecondTab": false,
194
+ "secondTabText": "Send Back",
195
+ "secondTabOffset": 80,
196
+ "secondTabWidth": 65,
197
+ "widget_ue_connectable": {}
198
+ },
199
+ "widgets_values": []
200
+ },
201
+ {
202
+ "id": 66,
203
+ "type": "ModelSamplingAuraFlow",
204
+ "pos": [
205
+ 370.60226337224776,
206
+ -67.29079643665688
207
+ ],
208
+ "size": [
209
+ 300,
210
+ 58
211
+ ],
212
+ "flags": {},
213
+ "order": 11,
214
+ "mode": 0,
215
+ "inputs": [
216
+ {
217
+ "name": "model",
218
+ "type": "MODEL",
219
+ "link": 194
220
+ }
221
+ ],
222
+ "outputs": [
223
+ {
224
+ "name": "MODEL",
225
+ "type": "MODEL",
226
+ "links": [
227
+ 125
228
+ ]
229
+ }
230
+ ],
231
+ "properties": {
232
+ "cnr_id": "comfy-core",
233
+ "ver": "0.3.48",
234
+ "Node name for S&R": "ModelSamplingAuraFlow",
235
+ "enableTabs": false,
236
+ "tabWidth": 65,
237
+ "tabXOffset": 10,
238
+ "hasSecondTab": false,
239
+ "secondTabText": "Send Back",
240
+ "secondTabOffset": 80,
241
+ "secondTabWidth": 65,
242
+ "widget_ue_connectable": {}
243
+ },
244
+ "widgets_values": [
245
+ 3.1000000000000005
246
+ ]
247
+ },
248
+ {
249
+ "id": 7,
250
+ "type": "CLIPTextEncode",
251
+ "pos": [
252
+ 334.4206532648259,
253
+ 265.8027017933237
254
+ ],
255
+ "size": [
256
+ 350.8778076171875,
257
+ 138.01828002929688
258
+ ],
259
+ "flags": {
260
+ "collapsed": false
261
+ },
262
+ "order": 5,
263
+ "mode": 0,
264
+ "inputs": [
265
+ {
266
+ "name": "clip",
267
+ "type": "CLIP",
268
+ "link": 75
269
+ }
270
+ ],
271
+ "outputs": [
272
+ {
273
+ "name": "CONDITIONING",
274
+ "type": "CONDITIONING",
275
+ "slot_index": 0,
276
+ "links": [
277
+ 142
278
+ ]
279
+ }
280
+ ],
281
+ "title": "CLIP Text Encode (Negative Prompt)",
282
+ "properties": {
283
+ "cnr_id": "comfy-core",
284
+ "ver": "0.3.48",
285
+ "Node name for S&R": "CLIPTextEncode",
286
+ "enableTabs": false,
287
+ "tabWidth": 65,
288
+ "tabXOffset": 10,
289
+ "hasSecondTab": false,
290
+ "secondTabText": "Send Back",
291
+ "secondTabOffset": 80,
292
+ "secondTabWidth": 65,
293
+ "widget_ue_connectable": {}
294
+ },
295
+ "widgets_values": [
296
+ ""
297
+ ]
298
+ },
299
+ {
300
+ "id": 98,
301
+ "type": "PreviewImage",
302
+ "pos": [
303
+ 1027.363125565962,
304
+ 127.53016043368171
305
+ ],
306
+ "size": [
307
+ 252.37942504882812,
308
+ 369.21356201171875
309
+ ],
310
+ "flags": {},
311
+ "order": 14,
312
+ "mode": 0,
313
+ "inputs": [
314
+ {
315
+ "name": "images",
316
+ "type": "IMAGE",
317
+ "link": 161
318
+ }
319
+ ],
320
+ "outputs": [],
321
+ "properties": {
322
+ "cnr_id": "comfy-core",
323
+ "ver": "0.3.50",
324
+ "Node name for S&R": "PreviewImage"
325
+ },
326
+ "widgets_values": []
327
+ },
328
+ {
329
+ "id": 107,
330
+ "type": "PreviewImage",
331
+ "pos": [
332
+ 1301.8432281050245,
333
+ 175.18197694857315
334
+ ],
335
+ "size": [
336
+ 327.1199645996094,
337
+ 295.25982666015625
338
+ ],
339
+ "flags": {},
340
+ "order": 16,
341
+ "mode": 0,
342
+ "inputs": [
343
+ {
344
+ "name": "images",
345
+ "type": "IMAGE",
346
+ "link": 180
347
+ }
348
+ ],
349
+ "outputs": [],
350
+ "properties": {
351
+ "cnr_id": "comfy-core",
352
+ "ver": "0.3.50",
353
+ "Node name for S&R": "PreviewImage"
354
+ },
355
+ "widgets_values": []
356
+ },
357
+ {
358
+ "id": 108,
359
+ "type": "CR SDXL Aspect Ratio",
360
+ "pos": [
361
+ 10.162493385662,
362
+ 475.82653395774093
363
+ ],
364
+ "size": [
365
+ 270,
366
+ 278
367
+ ],
368
+ "flags": {},
369
+ "order": 9,
370
+ "mode": 0,
371
+ "inputs": [
372
+ {
373
+ "label": "宽度",
374
+ "name": "width",
375
+ "type": "INT",
376
+ "widget": {
377
+ "name": "width"
378
+ },
379
+ "link": 188
380
+ },
381
+ {
382
+ "label": "高度",
383
+ "name": "height",
384
+ "type": "INT",
385
+ "widget": {
386
+ "name": "height"
387
+ },
388
+ "link": 189
389
+ },
390
+ {
391
+ "label": "宽高比",
392
+ "name": "aspect_ratio",
393
+ "type": "COMBO",
394
+ "widget": {
395
+ "name": "aspect_ratio"
396
+ },
397
+ "link": null
398
+ },
399
+ {
400
+ "label": "切换宽高",
401
+ "name": "swap_dimensions",
402
+ "type": "COMBO",
403
+ "widget": {
404
+ "name": "swap_dimensions"
405
+ },
406
+ "link": null
407
+ },
408
+ {
409
+ "label": "批次大小",
410
+ "name": "batch_size",
411
+ "type": "INT",
412
+ "widget": {
413
+ "name": "batch_size"
414
+ },
415
+ "link": null
416
+ }
417
+ ],
418
+ "outputs": [
419
+ {
420
+ "label": "宽度",
421
+ "name": "宽度",
422
+ "type": "INT",
423
+ "links": []
424
+ },
425
+ {
426
+ "label": "高度",
427
+ "name": "高度",
428
+ "type": "INT",
429
+ "links": []
430
+ },
431
+ {
432
+ "label": "放大系数",
433
+ "name": "放大系数",
434
+ "type": "FLOAT",
435
+ "links": null
436
+ },
437
+ {
438
+ "label": "批次大小",
439
+ "name": "批次大小",
440
+ "type": "INT",
441
+ "links": null
442
+ },
443
+ {
444
+ "name": "empty_latent",
445
+ "type": "LATENT",
446
+ "links": [
447
+ 183
448
+ ]
449
+ },
450
+ {
451
+ "name": "show_help",
452
+ "type": "STRING",
453
+ "links": null
454
+ }
455
+ ],
456
+ "properties": {
457
+ "cnr_id": "comfyroll",
458
+ "ver": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
459
+ "Node name for S&R": "CR SDXL Aspect Ratio"
460
+ },
461
+ "widgets_values": [
462
+ 1024,
463
+ 1024,
464
+ "custom",
465
+ "Off",
466
+ 1,
467
+ 1
468
+ ]
469
+ },
470
+ {
471
+ "id": 106,
472
+ "type": "ImageConcanate",
473
+ "pos": [
474
+ 1018.2929669660746,
475
+ -43.16162642667016
476
+ ],
477
+ "size": [
478
+ 270,
479
+ 102
480
+ ],
481
+ "flags": {},
482
+ "order": 15,
483
+ "mode": 0,
484
+ "inputs": [
485
+ {
486
+ "label": "图像_1",
487
+ "name": "image1",
488
+ "type": "IMAGE",
489
+ "link": 190
490
+ },
491
+ {
492
+ "label": "图像_2",
493
+ "name": "image2",
494
+ "type": "IMAGE",
495
+ "link": 179
496
+ },
497
+ {
498
+ "label": "方向",
499
+ "name": "direction",
500
+ "type": "COMBO",
501
+ "widget": {
502
+ "name": "direction"
503
+ },
504
+ "link": null
505
+ },
506
+ {
507
+ "label": "匹配图像大小",
508
+ "name": "match_image_size",
509
+ "type": "BOOLEAN",
510
+ "widget": {
511
+ "name": "match_image_size"
512
+ },
513
+ "link": null
514
+ }
515
+ ],
516
+ "outputs": [
517
+ {
518
+ "label": "图像",
519
+ "name": "图像",
520
+ "type": "IMAGE",
521
+ "links": [
522
+ 180
523
+ ]
524
+ }
525
+ ],
526
+ "properties": {
527
+ "cnr_id": "comfyui-kjnodes",
528
+ "ver": "e81f33508b0821ea2f53f4f46a833fa6215626bd",
529
+ "Node name for S&R": "ImageConcanate"
530
+ },
531
+ "widgets_values": [
532
+ "right",
533
+ true
534
+ ]
535
+ },
536
+ {
537
+ "id": 116,
538
+ "type": "LoraLoaderModelOnly",
539
+ "pos": [
540
+ 381.59562000310143,
541
+ -247.9522028592399
542
+ ],
543
+ "size": [
544
+ 270,
545
+ 82
546
+ ],
547
+ "flags": {},
548
+ "order": 10,
549
+ "mode": 0,
550
+ "inputs": [
551
+ {
552
+ "name": "model",
553
+ "type": "MODEL",
554
+ "link": 196
555
+ }
556
+ ],
557
+ "outputs": [
558
+ {
559
+ "name": "MODEL",
560
+ "type": "MODEL",
561
+ "links": [
562
+ 194
563
+ ]
564
+ }
565
+ ],
566
+ "properties": {
567
+ "cnr_id": "comfy-core",
568
+ "ver": "0.5.1",
569
+ "Node name for S&R": "LoraLoaderModelOnly"
570
+ },
571
+ "widgets_values": [
572
+ "qwen-image/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors",
573
+ 1
574
+ ]
575
+ },
576
+ {
577
+ "id": 104,
578
+ "type": "LayerUtility: ImageScaleByAspectRatio V2",
579
+ "pos": [
580
+ -347.5305155140268,
581
+ -43.699890946819856
582
+ ],
583
+ "size": [
584
+ 317.2681640625,
585
+ 330
586
+ ],
587
+ "flags": {},
588
+ "order": 6,
589
+ "mode": 0,
590
+ "inputs": [
591
+ {
592
+ "name": "image",
593
+ "shape": 7,
594
+ "type": "IMAGE",
595
+ "link": 173
596
+ },
597
+ {
598
+ "name": "mask",
599
+ "shape": 7,
600
+ "type": "MASK",
601
+ "link": null
602
+ }
603
+ ],
604
+ "outputs": [
605
+ {
606
+ "name": "image",
607
+ "type": "IMAGE",
608
+ "links": [
609
+ 174,
610
+ 190
611
+ ]
612
+ },
613
+ {
614
+ "name": "mask",
615
+ "type": "MASK",
616
+ "links": null
617
+ },
618
+ {
619
+ "name": "original_size",
620
+ "type": "BOX",
621
+ "links": null
622
+ },
623
+ {
624
+ "name": "width",
625
+ "type": "INT",
626
+ "links": [
627
+ 188
628
+ ]
629
+ },
630
+ {
631
+ "name": "height",
632
+ "type": "INT",
633
+ "links": [
634
+ 189
635
+ ]
636
+ }
637
+ ],
638
+ "properties": {
639
+ "cnr_id": "comfyui_layerstyle",
640
+ "ver": "c0fb64d0ebcb81c6c445a8af79ecee24bc3845b0",
641
+ "Node name for S&R": "LayerUtility: ImageScaleByAspectRatio V2"
642
+ },
643
+ "widgets_values": [
644
+ "original",
645
+ 1,
646
+ 1,
647
+ "letterbox",
648
+ "lanczos",
649
+ "16",
650
+ "longest",
651
+ 2048,
652
+ "#000000"
653
+ ],
654
+ "color": "rgba(38, 73, 116, 0.7)"
655
+ },
656
+ {
657
+ "id": 101,
658
+ "type": "TextEncodeQwenImageEditPlus",
659
+ "pos": [
660
+ 351.94210712224776,
661
+ 43.102174602161476
662
+ ],
663
+ "size": [
664
+ 320.1754150390625,
665
+ 173
666
+ ],
667
+ "flags": {},
668
+ "order": 8,
669
+ "mode": 0,
670
+ "inputs": [
671
+ {
672
+ "name": "clip",
673
+ "type": "CLIP",
674
+ "link": 167
675
+ },
676
+ {
677
+ "name": "vae",
678
+ "shape": 7,
679
+ "type": "VAE",
680
+ "link": 171
681
+ },
682
+ {
683
+ "name": "image1",
684
+ "shape": 7,
685
+ "type": "IMAGE",
686
+ "link": 174
687
+ },
688
+ {
689
+ "name": "image2",
690
+ "shape": 7,
691
+ "type": "IMAGE",
692
+ "link": null
693
+ },
694
+ {
695
+ "name": "image3",
696
+ "shape": 7,
697
+ "type": "IMAGE",
698
+ "link": null
699
+ }
700
+ ],
701
+ "outputs": [
702
+ {
703
+ "name": "CONDITIONING",
704
+ "type": "CONDITIONING",
705
+ "links": [
706
+ 168
707
+ ]
708
+ }
709
+ ],
710
+ "properties": {
711
+ "cnr_id": "comfy-core",
712
+ "ver": "0.3.59",
713
+ "Node name for S&R": "TextEncodeQwenImageEditPlus"
714
+ },
715
+ "widgets_values": [
716
+ "Upscale this picture to 4K resolution."
717
+ ]
718
+ },
719
+ {
720
+ "id": 3,
721
+ "type": "KSampler",
722
+ "pos": [
723
+ 705.1409596613103,
724
+ 34.84122260631187
725
+ ],
726
+ "size": [
727
+ 253.9251708984375,
728
+ 612.85224609375
729
+ ],
730
+ "flags": {},
731
+ "order": 12,
732
+ "mode": 0,
733
+ "inputs": [
734
+ {
735
+ "name": "model",
736
+ "type": "MODEL",
737
+ "link": 125
738
+ },
739
+ {
740
+ "name": "positive",
741
+ "type": "CONDITIONING",
742
+ "link": 168
743
+ },
744
+ {
745
+ "name": "negative",
746
+ "type": "CONDITIONING",
747
+ "link": 142
748
+ },
749
+ {
750
+ "name": "latent_image",
751
+ "type": "LATENT",
752
+ "link": 183
753
+ },
754
+ {
755
+ "name": "seed",
756
+ "type": "INT",
757
+ "widget": {
758
+ "name": "seed"
759
+ },
760
+ "link": 162
761
+ }
762
+ ],
763
+ "outputs": [
764
+ {
765
+ "name": "LATENT",
766
+ "type": "LATENT",
767
+ "slot_index": 0,
768
+ "links": [
769
+ 128
770
+ ]
771
+ }
772
+ ],
773
+ "properties": {
774
+ "cnr_id": "comfy-core",
775
+ "ver": "0.3.48",
776
+ "Node name for S&R": "KSampler",
777
+ "enableTabs": false,
778
+ "tabWidth": 65,
779
+ "tabXOffset": 10,
780
+ "hasSecondTab": false,
781
+ "secondTabText": "Send Back",
782
+ "secondTabOffset": 80,
783
+ "secondTabWidth": 65,
784
+ "widget_ue_connectable": {}
785
+ },
786
+ "widgets_values": [
787
+ 367961471892098,
788
+ "randomize",
789
+ 4,
790
+ 1,
791
+ "euler",
792
+ "simple",
793
+ 1
794
+ ]
795
+ },
796
+ {
797
+ "id": 103,
798
+ "type": "LoadImage",
799
+ "pos": [
800
+ -637.1823414972478,
801
+ -31.204213495423637
802
+ ],
803
+ "size": [
804
+ 265.8947448730469,
805
+ 329.90789794921875
806
+ ],
807
+ "flags": {},
808
+ "order": 3,
809
+ "mode": 0,
810
+ "inputs": [],
811
+ "outputs": [
812
+ {
813
+ "name": "IMAGE",
814
+ "type": "IMAGE",
815
+ "links": [
816
+ 173
817
+ ]
818
+ },
819
+ {
820
+ "name": "MASK",
821
+ "type": "MASK",
822
+ "links": null
823
+ }
824
+ ],
825
+ "properties": {
826
+ "cnr_id": "comfy-core",
827
+ "ver": "0.3.50",
828
+ "Node name for S&R": "LoadImage"
829
+ },
830
+ "widgets_values": [
831
+ "test (3).jpeg",
832
+ "image"
833
+ ]
834
+ },
835
+ {
836
+ "id": 117,
837
+ "type": "LoraLoaderModelOnly",
838
+ "pos": [
839
+ 4.705421781944253,
840
+ 45.14098481388096
841
+ ],
842
+ "size": [
843
+ 283.58054817943867,
844
+ 105.63637393062646
845
+ ],
846
+ "flags": {},
847
+ "order": 7,
848
+ "mode": 0,
849
+ "inputs": [
850
+ {
851
+ "name": "model",
852
+ "type": "MODEL",
853
+ "link": 195
854
+ }
855
+ ],
856
+ "outputs": [
857
+ {
858
+ "name": "MODEL",
859
+ "type": "MODEL",
860
+ "links": [
861
+ 196
862
+ ]
863
+ }
864
+ ],
865
+ "properties": {
866
+ "cnr_id": "comfy-core",
867
+ "ver": "0.5.1",
868
+ "Node name for S&R": "LoraLoaderModelOnly"
869
+ },
870
+ "widgets_values": [
871
+ "qwen-image/qwen_image_edit_2511_upscale.safetensors",
872
+ 1
873
+ ]
874
+ },
875
+ {
876
+ "id": 114,
877
+ "type": "UNETLoader",
878
+ "pos": [
879
+ 10.91300242071587,
880
+ -75.8026860973117
881
+ ],
882
+ "size": [
883
+ 270,
884
+ 82
885
+ ],
886
+ "flags": {},
887
+ "order": 4,
888
+ "mode": 0,
889
+ "inputs": [],
890
+ "outputs": [
891
+ {
892
+ "name": "MODEL",
893
+ "type": "MODEL",
894
+ "links": [
895
+ 195
896
+ ]
897
+ }
898
+ ],
899
+ "properties": {
900
+ "cnr_id": "comfy-core",
901
+ "ver": "0.5.1",
902
+ "Node name for S&R": "UNETLoader"
903
+ },
904
+ "widgets_values": [
905
+ "qwen_image_edit_2511_fp8mixed.safetensors",
906
+ "default"
907
+ ]
908
+ }
909
+ ],
910
+ "links": [
911
+ [
912
+ 75,
913
+ 38,
914
+ 0,
915
+ 7,
916
+ 0,
917
+ "CLIP"
918
+ ],
919
+ [
920
+ 76,
921
+ 39,
922
+ 0,
923
+ 8,
924
+ 1,
925
+ "VAE"
926
+ ],
927
+ [
928
+ 125,
929
+ 66,
930
+ 0,
931
+ 3,
932
+ 0,
933
+ "MODEL"
934
+ ],
935
+ [
936
+ 128,
937
+ 3,
938
+ 0,
939
+ 8,
940
+ 0,
941
+ "LATENT"
942
+ ],
943
+ [
944
+ 142,
945
+ 7,
946
+ 0,
947
+ 3,
948
+ 2,
949
+ "CONDITIONING"
950
+ ],
951
+ [
952
+ 161,
953
+ 8,
954
+ 0,
955
+ 98,
956
+ 0,
957
+ "IMAGE"
958
+ ],
959
+ [
960
+ 162,
961
+ 99,
962
+ 0,
963
+ 3,
964
+ 4,
965
+ "INT"
966
+ ],
967
+ [
968
+ 167,
969
+ 38,
970
+ 0,
971
+ 101,
972
+ 0,
973
+ "CLIP"
974
+ ],
975
+ [
976
+ 168,
977
+ 101,
978
+ 0,
979
+ 3,
980
+ 1,
981
+ "CONDITIONING"
982
+ ],
983
+ [
984
+ 171,
985
+ 39,
986
+ 0,
987
+ 101,
988
+ 1,
989
+ "VAE"
990
+ ],
991
+ [
992
+ 173,
993
+ 103,
994
+ 0,
995
+ 104,
996
+ 0,
997
+ "IMAGE"
998
+ ],
999
+ [
1000
+ 174,
1001
+ 104,
1002
+ 0,
1003
+ 101,
1004
+ 2,
1005
+ "IMAGE"
1006
+ ],
1007
+ [
1008
+ 179,
1009
+ 8,
1010
+ 0,
1011
+ 106,
1012
+ 1,
1013
+ "IMAGE"
1014
+ ],
1015
+ [
1016
+ 180,
1017
+ 106,
1018
+ 0,
1019
+ 107,
1020
+ 0,
1021
+ "IMAGE"
1022
+ ],
1023
+ [
1024
+ 183,
1025
+ 108,
1026
+ 4,
1027
+ 3,
1028
+ 3,
1029
+ "LATENT"
1030
+ ],
1031
+ [
1032
+ 188,
1033
+ 104,
1034
+ 3,
1035
+ 108,
1036
+ 0,
1037
+ "INT"
1038
+ ],
1039
+ [
1040
+ 189,
1041
+ 104,
1042
+ 4,
1043
+ 108,
1044
+ 1,
1045
+ "INT"
1046
+ ],
1047
+ [
1048
+ 190,
1049
+ 104,
1050
+ 0,
1051
+ 106,
1052
+ 0,
1053
+ "IMAGE"
1054
+ ],
1055
+ [
1056
+ 194,
1057
+ 116,
1058
+ 0,
1059
+ 66,
1060
+ 0,
1061
+ "MODEL"
1062
+ ],
1063
+ [
1064
+ 195,
1065
+ 114,
1066
+ 0,
1067
+ 117,
1068
+ 0,
1069
+ "MODEL"
1070
+ ],
1071
+ [
1072
+ 196,
1073
+ 117,
1074
+ 0,
1075
+ 116,
1076
+ 0,
1077
+ "MODEL"
1078
+ ]
1079
+ ],
1080
+ "groups": [
1081
+ {
1082
+ "id": 5,
1083
+ "title": "模型加载",
1084
+ "bounding": [
1085
+ -45.6744270324707,
1086
+ -142.2353515625,
1087
+ 359.0284729003906,
1088
+ 558.515625
1089
+ ],
1090
+ "color": "#3f789e",
1091
+ "font_size": 24,
1092
+ "flags": {}
1093
+ },
1094
+ {
1095
+ "id": 7,
1096
+ "title": "Latent",
1097
+ "bounding": [
1098
+ 323.15362445623214,
1099
+ -140.8908254283561,
1100
+ 646.9595336914062,
1101
+ 741.6004028320312
1102
+ ],
1103
+ "color": "#3f789e",
1104
+ "font_size": 24,
1105
+ "flags": {}
1106
+ },
1107
+ {
1108
+ "id": 8,
1109
+ "title": "输入端",
1110
+ "bounding": [
1111
+ -653.845947265625,
1112
+ -141.2954864501953,
1113
+ 602.335520408936,
1114
+ 553.0442260326406
1115
+ ],
1116
+ "color": "#3f789e",
1117
+ "font_size": 24,
1118
+ "flags": {}
1119
+ },
1120
+ {
1121
+ "id": 9,
1122
+ "title": "Result",
1123
+ "bounding": [
1124
+ 991.9212920698683,
1125
+ -137.03938912686516,
1126
+ 653.953369140625,
1127
+ 732.4771118164062
1128
+ ],
1129
+ "color": "#3f789e",
1130
+ "font_size": 24,
1131
+ "flags": {}
1132
+ }
1133
+ ],
1134
+ "config": {},
1135
+ "extra": {
1136
+ "ds": {
1137
+ "scale": 0.724729500000001,
1138
+ "offset": [
1139
+ 651.5996848631228,
1140
+ 649.7833989646049
1141
+ ]
1142
+ },
1143
+ "frontendVersion": "1.34.9",
1144
+ "workflowRendererVersion": "LG",
1145
+ "ue_links": [],
1146
+ "links_added_by_ue": [],
1147
+ "VHS_latentpreview": true,
1148
+ "VHS_latentpreviewrate": 0,
1149
+ "VHS_MetadataImage": true,
1150
+ "VHS_KeepIntermediate": true
1151
+ },
1152
+ "version": 0.4
1153
+ }
qwen_image_edit_2511_upscale.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2be84dd96690311cebfa86bf5c5a3a656bd6ca4da6181dcbeea794a227bd2a74
3
+ size 590057176
result/result1.png ADDED

Git LFS Details

  • SHA256: e7245a4dd9333ad83fb41f4332a400495e902a527f63589b51372d25be8d8faa
  • Pointer size: 132 Bytes
  • Size of remote file: 5.45 MB
result/result2.png ADDED

Git LFS Details

  • SHA256: e66a41f8d2ea89e0bd9ce3bef066e561ad1cfeb432e32a990fdb36945190d55d
  • Pointer size: 132 Bytes
  • Size of remote file: 8.75 MB
result/result3.png ADDED

Git LFS Details

  • SHA256: 1e6b67782d9eb4e9ae743b89e63ed4857ad8ee20ecb46738938fbdc486ef3990
  • Pointer size: 132 Bytes
  • Size of remote file: 6.18 MB
result/test.jpg ADDED

Git LFS Details

  • SHA256: e4d2a94318f4aabb974d379341cb25662353f2977edcfa4b261e1d99455a2f44
  • Pointer size: 131 Bytes
  • Size of remote file: 542 kB