MOSS-Image-Edit-HQ / workflows /armV4_workflow_multi.json
akhaliq's picture
akhaliq HF Staff
ComfyUI workflow for armV2-lo (moss_edit_multi_reference.json: patch=armV4-moss-edit-lora.safetensors, 50 steps, CFG 3.0)
49e50ea verified
Raw History Blame Contribute Delete
19.4 kB
{
"last_node_id": 32,
"last_link_id": 21,
"nodes": [
{
"id": 1,
"type": "UNETLoader",
"pos": [
40,
60
],
"size": [
310,
110
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
1
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"moss\\mossImage_sft_pruned_int8.safetensors",
"default"
]
},
{
"id": 2,
"type": "CLIPLoader",
"pos": [
40,
510
],
"size": [
310,
170
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
8,
9
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPLoader"
},
"widgets_values": [
"moss\\qwen3.5_9b_int8_convrot.safetensors",
"moss_image",
"default"
]
},
{
"id": 3,
"type": "VAELoader",
"pos": [
40,
360
],
"size": [
310,
110
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
3,
17
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"flux2-vae_small.safetensors"
]
},
{
"id": 4,
"type": "ModelPatchLoader",
"pos": [
40,
210
],
"size": [
310,
110
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL_PATCH",
"type": "MODEL_PATCH",
"links": [
2
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ModelPatchLoader"
},
"widgets_values": [
"armV4-moss-edit-lora.safetensors"
]
},
{
"id": 5,
"type": "ApplyMossImageEdit",
"pos": [
850,
280
],
"size": [
360,
290
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 1
},
{
"name": "model_patch",
"type": "MODEL_PATCH",
"link": 2
},
{
"name": "vae",
"type": "VAE",
"link": 3
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 4
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 5
},
{
"name": "image",
"type": "IMAGE",
"link": 6,
"label": "\u5f85\u7f16\u8f91\u56fe\u50cf / source image"
},
{
"name": "reference_images.reference_0",
"type": "IMAGE",
"link": 21,
"shape": 7
},
{
"name": "reference_images.reference_1",
"type": "IMAGE",
"link": null,
"shape": 7
}
],
"outputs": [
{
"name": "model",
"type": "MODEL",
"links": [
20
],
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"links": [
13
],
"slot_index": 1
},
{
"name": "negative",
"type": "CONDITIONING",
"links": [
14
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "ApplyMossImageEdit"
},
"widgets_values": [
512,
1.0
],
"title": "Apply MOSS Edit (source + optional references)"
},
{
"id": 6,
"type": "LoadImage",
"pos": [
40,
820
],
"size": [
310,
400
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
6,
7
],
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [],
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"example.png",
"image"
]
},
{
"id": 7,
"type": "ImageScaleToTotalPixels",
"pos": [
420,
1090
],
"size": [
310,
170
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 7
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
19
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageScaleToTotalPixels"
},
"widgets_values": [
"lanczos",
1.0,
16
],
"title": "Output size: scale image (pixels) \u00b7 ~1MP / align 16"
},
{
"id": 9,
"type": "CLIPTextEncode",
"pos": [
420,
530
],
"size": [
340,
190
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 8
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
4
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"Change only the pink dress to bright red. Keep the character, face, hair, pose, background and composition unchanged."
],
"title": "Edit instruction (positive)"
},
{
"id": 10,
"type": "CLIPTextEncode",
"pos": [
420,
780
],
"size": [
340,
190
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 9
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
5
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
],
"title": "Negative prompt (may be empty)"
},
{
"id": 13,
"type": "EmptyFlux2LatentImage",
"pos": [
1200,
880
],
"size": [
310,
170
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "width",
"type": "INT",
"link": 10,
"widget": {
"name": "width"
}
},
{
"name": "height",
"type": "INT",
"link": 11,
"widget": {
"name": "height"
}
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
15
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyFlux2LatentImage"
},
"widgets_values": [
1024,
1024,
1
],
"title": "Empty FLUX.2 latent \u00b7 follows output size"
},
{
"id": 14,
"type": "KSampler",
"pos": [
1640,
280
],
"size": [
310,
315
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 12
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 13
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 14
},
{
"name": "latent_image",
"type": "LATENT",
"link": 15
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
16
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
42,
"fixed",
50,
3.0,
"euler",
"normal",
1.0
]
},
{
"id": 15,
"type": "VAEDecode",
"pos": [
2010,
280
],
"size": [
310,
170
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 16
},
{
"name": "vae",
"type": "VAE",
"link": 17
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
18
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 16,
"type": "SaveImage",
"pos": [
2380,
280
],
"size": [
520,
580
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 18
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "SaveImage"
},
"widgets_values": [
"MOSS-Image-Edit/multi-reference"
]
},
{
"id": 17,
"type": "GetImageSize",
"pos": [
850,
880
],
"size": [
310,
170
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 19
}
],
"outputs": [
{
"name": "width",
"type": "INT",
"links": [
10
],
"slot_index": 0
},
{
"name": "height",
"type": "INT",
"links": [
11
],
"slot_index": 1
},
{
"name": "batch_size",
"type": "INT",
"links": [],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "GetImageSize"
},
"widgets_values": [],
"title": "\u8bfb\u53d6\u8f93\u51fa\u5bbd\u9ad8"
},
{
"id": 18,
"type": "SkipLayerGuidanceDiTSimple",
"pos": [
1250,
280
],
"size": [
320,
220
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 20
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
12
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "SkipLayerGuidanceDiTSimple"
},
"widgets_values": [
"",
"22",
0.0,
1.0
],
"title": "\u8df3\u8fc7\u5c42\u5f15\u5bfc\uff08DiT\u7b80\u5316\uff09\u00b7 \u542f\u7528 / \u7b2c22\u5c42"
},
{
"id": 30,
"type": "Note",
"pos": [
820,
20
],
"size": [
740,
230
],
"flags": {},
"order": 15,
"mode": 0,
"properties": {},
"widgets_values": [
"\u56fe\u50cf\u8f93\u5165\u987a\u5e8f\u4e0e\u591a\u56fe\u5165\u53e3\n\u5f85\u7f16\u8f91\u56fe\u50cf image \u59cb\u7ec8\u5728\u524d\uff1b\u9644\u52a0 reference_0\u30011\u30012\u2026 \u6309\u6570\u503c\u987a\u5e8f\u52a0\u5165\u3002\n\u9644\u52a0\u56fe\u53ef\u7559\u7a7a\uff0c\u8fde\u63a5\u540e\u52a8\u6001\u589e\u52a0\u7aef\u53e3\uff1b\u6bcf\u56fe\u7f16\u7801\u4e00\u6b21\u5e76\u540c\u6b65\u7ed9\u6b63\u8d1f\u6761\u4ef6\u3002\u591a\u56fe\u5b9e\u9645\u53c2\u4e0e\u63a8\u7406\uff0c\u6548\u679c\u53d6\u51b3\u4e8e LoRA \u8bad\u7ec3\u3002\n\u6bcf\u7aef\u53e3\u901a\u5e38\u63a5\u4e00\u5f20\u56fe\u3002IMAGE\u6279\u6b21\u4f1a\u5c55\u5f00\u4e3a\u591a\u5f20\u53c2\u8003\uff0c\u4e0d\u662f\u5206\u522b\u51fa\u56fe\u3002100\u4e2a\u9644\u52a0\u53e3\u662f\u5f53\u524d\u6846\u67b6\u9650\u5236\uff0c\u4e0d\u662f\u63a8\u8350\u6570\u91cf\u3002\n\u539f\u56fe/\u53c2\u8003\u56fe\u662f\u754c\u9762\u7ea6\u5b9a\uff0c\u6a21\u578b\u7406\u89e3\u4ecd\u53d6\u51b3\u4e8e\u8bad\u7ec3\u4e0e\u7f16\u8f91\u6307\u4ee4\u3002\u8f93\u51fa\u5c3a\u5bf8\u8ddf\u968f\u539f\u56fe\u7684\u72ec\u7acb\u7f29\u653e\u5206\u652f\u3002"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 31,
"type": "Note",
"pos": [
820,
1110
],
"size": [
800,
300
],
"flags": {},
"order": 16,
"mode": 0,
"properties": {},
"widgets_values": [
"\u53c2\u8003\u5206\u8fa8\u7387 \u2260 \u8f93\u51fa\u5206\u8fa8\u7387\n\u539f\u56fe\u76f4\u63a5\u63a5 Apply\uff0creference_max_edge=512\uff1a\u53c2\u8003\u957f\u8fb9\u4e0a\u9650\uff0c\u53ea\u7f29\u5c0f\u4e0d\u653e\u5927\uff0c\u4e0d\u88c1\u526a\uff0c\u5bbd\u9ad8\u5bf9\u9f5016\u3002\n\u8f93\u51fa\u5206\u652f\u7684\u201c\u7f29\u653e\u56fe\u50cf\uff08\u50cf\u7d20\uff09\u201d\uff1amegapixels=1.0\uff0cresolution_steps=16\uff1b\u5176\u5bbd\u9ad8\u63a5\u7a7a latent\u3002\u8fd9\u91cc\u4e0d\u4f1a\u5c061MP\u56fe\u4f5c\u4e3a\u53c2\u8003\u7f16\u7801\u3002\n1MP \u7ea6\u4e3a 1024\u00d71024\uff1b\u975e\u65b9\u56fe\u4fdd\u6301\u5bbd\u9ad8\u6bd4\u5e76\u5404\u81ea\u53d616\u500d\u6570\uff0c\u603b\u50cf\u7d20\u5141\u8bb8\u5c0f\u5e45\u504f\u5dee\u3002\nMOSS \u7684 FLUX.2 latent \u7f51\u683c\u5bf9\u5e94\u50cf\u7d20\u5bbd\u9ad8 / 16\uff1b\u4e0d\u662f\u8981\u6c42 latent \u7f51\u683c\u672c\u8eab\u518d\u4e3a16\u500d\u6570\u3002\n\u63d0\u9ad8 reference_max_edge \u5c5e\u4e8e\u53c2\u8003\u5206\u8fa8\u7387\u5b9e\u9a8c\uff1b\u80fd\u8fd0\u884c\u4e0d\u4ee3\u8868\u5df2\u7ecf\u9a8c\u8bc1\u4e86\u8d28\u91cf\u3002\n\u82e5\u53c2\u8003\u4e0e\u8f93\u51fa\u5c3a\u5ea6\u4e0d\u540c\uff0c\u53ef\u80fd\u51fa\u73b0\u6784\u56fe\u53d8\u5316\uff1b\u53ef\u5148\u7528512\u53c2\u8003 / 0.25MP\u8f93\u51fa\u5bf9\u7167\u3002\u63d0\u9ad8\u53c2\u8003\u4e0a\u9650\u4e0d\u4f1a\u4e3b\u52a8\u653e\u5927\u5c0f\u56fe\uff0c1MP\u53c2\u8003\u9700\u8f93\u5165\u8db3\u591f\u5c3a\u5bf8\u7684\u56fe\u3002"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 32,
"type": "Note",
"pos": [
1570,
20
],
"size": [
750,
225
],
"flags": {},
"order": 17,
"mode": 0,
"properties": {},
"widgets_values": [
"\u91c7\u6837\u9ed8\u8ba4\u503c\u4e0e\u663e\u5f0f SLG\n\u53d7\u652f\u6301\u7248\u672c\u7684 ComfyUI \u8bc6\u522b MOSS \u540e\u81ea\u52a8\u914d\u7f6e inference_shift=5.0\u3001multiplier=1\u3002\u8fd9\u662f\u6a21\u578b\u9ed8\u8ba4\u503c\uff0c\u4e0d\u662f\u6309\u5206\u8fa8\u7387\u52a8\u6001\u4f30\u7b97\uff1b\u6807\u51c6\u5de5\u4f5c\u6d41\u65e0\u9700\u989d\u5916 shift \u8282\u70b9\u3002\n\u53ea\u6709\u81ea\u5b9a\u4e49 shift \u65f6\u624d\u5728 SLG \u524d\u52a0 ModelSamplingAuraFlow\uff08\u4e0d\u8981\u7528 ModelSamplingSD3\uff09\u3002\n\u201c\u8df3\u8fc7\u5c42\u5f15\u5bfc\uff08DiT\u7b80\u5316\uff09\u201d\uff1asingle_layers=22\uff08\u4ece0\u8ba1\u6570\uff09\uff0cdouble_layers \u7559\u7a7a\uff0cstart=0\uff0cend=1\u3002SLG \u662f\u5e95\u6a21\u5b98\u65b9\u5efa\u8bae\uff0cEdit \u8d28\u91cf\u9700\u5bf9\u7167\u6d4b\u8bd5\uff1b\u6e05\u7a7a single_layers \u6216\u53f3\u952e\u65c1\u8def\u5373\u53ef\u5173\u95ed\u3002\nApply \u4e0d\u9690\u85cf\u542f\u7528 SLG\u3002\u8d77\u70b9\uff1aEuler / normal\uff0c30 steps\uff0cCFG 4\uff0cdenoise 1\u3002"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 19,
"type": "LoadImage",
"pos": [
420,
60
],
"size": [
310,
400
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
21
],
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [],
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"example_reference.png",
"image"
],
"title": "\u9644\u52a0\u53c2\u8003\u56fe \u00b7 \u6309\u4efb\u52a1\u9009\u62e9\u7b2c\u4e8c\u5f20\u56fe\u7247"
}
],
"links": [
[
1,
1,
0,
5,
0,
"MODEL"
],
[
2,
4,
0,
5,
1,
"MODEL_PATCH"
],
[
3,
3,
0,
5,
2,
"VAE"
],
[
4,
9,
0,
5,
3,
"CONDITIONING"
],
[
5,
10,
0,
5,
4,
"CONDITIONING"
],
[
6,
6,
0,
5,
5,
"IMAGE"
],
[
7,
6,
0,
7,
0,
"IMAGE"
],
[
8,
2,
0,
9,
0,
"CLIP"
],
[
9,
2,
0,
10,
0,
"CLIP"
],
[
10,
17,
0,
13,
0,
"INT"
],
[
11,
17,
1,
13,
1,
"INT"
],
[
12,
18,
0,
14,
0,
"MODEL"
],
[
13,
5,
1,
14,
1,
"CONDITIONING"
],
[
14,
5,
2,
14,
2,
"CONDITIONING"
],
[
15,
13,
0,
14,
3,
"LATENT"
],
[
16,
14,
0,
15,
0,
"LATENT"
],
[
17,
3,
0,
15,
1,
"VAE"
],
[
18,
15,
0,
16,
0,
"IMAGE"
],
[
19,
7,
0,
17,
0,
"IMAGE"
],
[
20,
5,
0,
18,
0,
"MODEL"
],
[
21,
19,
0,
5,
6,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.6,
"offset": [
40,
60
]
}
},
"version": 0.4
}