Introduce a new ComfyUI plugin to integrate SGLang Diffusion. Adds core integration pieces (generator, model patcher, server API client), executor implementations for multiple model types (flux, qwen_image, zimage, native, anima), node mappings, utilities, example workflows, and tests. Includes README with installation/usage instructions and example workflow JSON files. This commit implements both server (HTTP) and integrated modes, model loading/patching logic, and basic LoRA/video/image API support.
141 lines
2.9 KiB
JSON
141 lines
2.9 KiB
JSON
{
|
|
"3": {
|
|
"inputs": {
|
|
"seed": 3338398,
|
|
"steps": 9,
|
|
"cfg": 1,
|
|
"sampler_name": "euler",
|
|
"scheduler": "simple",
|
|
"denoise": 1,
|
|
"model": [
|
|
"28",
|
|
0
|
|
],
|
|
"positive": [
|
|
"6",
|
|
0
|
|
],
|
|
"negative": [
|
|
"7",
|
|
0
|
|
],
|
|
"latent_image": [
|
|
"13",
|
|
0
|
|
]
|
|
},
|
|
"class_type": "KSampler",
|
|
"_meta": {
|
|
"title": "KSampler"
|
|
}
|
|
},
|
|
"6": {
|
|
"inputs": {
|
|
"text": "cute anime style girl with massive fluffy fennec ears and a big fluffy tail blonde messy long hair blue eyes wearing a maid outfit with a long black gold leaf pattern dress and a white apron, it is a postcard held by a hand in front of a beautiful realistic city at sunset and there is cursive writing that says \"ZImage, Now in ComfyUI\"",
|
|
"speak_and_recognation": {
|
|
"__value__": [
|
|
false,
|
|
true
|
|
]
|
|
},
|
|
"clip": [
|
|
"18",
|
|
0
|
|
]
|
|
},
|
|
"class_type": "CLIPTextEncode",
|
|
"_meta": {
|
|
"title": "CLIP Text Encode (Positive Prompt)"
|
|
}
|
|
},
|
|
"7": {
|
|
"inputs": {
|
|
"text": "blurry ugly bad",
|
|
"speak_and_recognation": {
|
|
"__value__": [
|
|
false,
|
|
true
|
|
]
|
|
},
|
|
"clip": [
|
|
"18",
|
|
0
|
|
]
|
|
},
|
|
"class_type": "CLIPTextEncode",
|
|
"_meta": {
|
|
"title": "CLIP Text Encode (Negative Prompt)"
|
|
}
|
|
},
|
|
"8": {
|
|
"inputs": {
|
|
"samples": [
|
|
"3",
|
|
0
|
|
],
|
|
"vae": [
|
|
"17",
|
|
0
|
|
]
|
|
},
|
|
"class_type": "VAEDecode",
|
|
"_meta": {
|
|
"title": "VAE Decode"
|
|
}
|
|
},
|
|
"9": {
|
|
"inputs": {
|
|
"filename_prefix": "ComfyUI",
|
|
"images": [
|
|
"8",
|
|
0
|
|
]
|
|
},
|
|
"class_type": "SaveImage",
|
|
"_meta": {
|
|
"title": "Save Image"
|
|
}
|
|
},
|
|
"13": {
|
|
"inputs": {
|
|
"width": 1024,
|
|
"height": 1024,
|
|
"batch_size": 1
|
|
},
|
|
"class_type": "EmptySD3LatentImage",
|
|
"_meta": {
|
|
"title": "EmptySD3LatentImage"
|
|
}
|
|
},
|
|
"17": {
|
|
"inputs": {
|
|
"vae_name": "ae.safetensors"
|
|
},
|
|
"class_type": "VAELoader",
|
|
"_meta": {
|
|
"title": "VAE Loader"
|
|
}
|
|
},
|
|
"18": {
|
|
"inputs": {
|
|
"clip_name": "qwen_3_4b.safetensors",
|
|
"type": "lumina2",
|
|
"device": "default"
|
|
},
|
|
"class_type": "CLIPLoader",
|
|
"_meta": {
|
|
"title": "CLIP Loader"
|
|
}
|
|
},
|
|
"28": {
|
|
"inputs": {
|
|
"unet_name": "z_image_turbo_bf16.safetensors",
|
|
"weight_dtype": "default"
|
|
},
|
|
"class_type": "SGLDUNETLoader",
|
|
"_meta": {
|
|
"title": "SGLDiffusion UNET Loader"
|
|
}
|
|
}
|
|
}
|