Hyper-SD / comfyui /Hyper-SDXL-1step-Unet-workflow.json
renyuxi's picture
support 1-step unet inference for comfyui
c9d3150 verified
raw
history blame
8.35 kB
{
"last_node_id": 24,
"last_link_id": 39,
"nodes": [
{
"id": 8,
"type": "VAEDecode",
"pos": [
967,
130
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 35
},
{
"name": "vae",
"type": "VAE",
"link": 8
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
9
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 19,
"type": "CLIPTextEncode",
"pos": [
6,
541
],
"size": {
"0": 422.84503173828125,
"1": 164.31304931640625
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 25,
"slot_index": 0
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
31
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
]
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
463,
707
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
34
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1024,
1024,
1
]
},
{
"id": 21,
"type": "SamplerCustom",
"pos": [
570,
-189
],
"size": {
"0": 355.20001220703125,
"1": 230
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 36
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 30
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 31
},
{
"name": "sampler",
"type": "SAMPLER",
"link": 29
},
{
"name": "sigmas",
"type": "SIGMAS",
"link": 38
},
{
"name": "latent_image",
"type": "LATENT",
"link": 34
}
],
"outputs": [
{
"name": "output",
"type": "LATENT",
"links": null,
"shape": 3
},
{
"name": "denoised_output",
"type": "LATENT",
"links": [
35
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "SamplerCustom"
},
"widgets_values": [
true,
448506039228027,
"randomize",
1
]
},
{
"id": 22,
"type": "KSamplerSelect",
"pos": [
145,
-198
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
29
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"lcm"
]
},
{
"id": 9,
"type": "SaveImage",
"pos": [
1274,
-187
],
"size": {
"0": 391.4791564941406,
"1": 700.6646728515625
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 24,
"type": "HyperSDXL1StepUnetScheduler",
"pos": [
104,
225
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 39,
"slot_index": 0
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
38
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "HyperSDXL1StepUnetScheduler"
},
"widgets_values": [
1
]
},
{
"id": 20,
"type": "Note",
"pos": [
-471,
-169
],
"size": {
"0": 322.0227355957031,
"1": 164.27613830566406
},
"flags": {},
"order": 2,
"mode": 0,
"properties": {
"text": ""
},
"widgets_values": [
"Use the Hyper-SDXL Unet for 1-step inference. \nIt requires the `HyperSDXL1StepUnetScheduler` to denoise from 800 timestep rather than 999.\n\n\nAttention: `HyperSDXL1StepUnetScheduler` only support our 1-step Unet inference!"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
-31,
-31
],
"size": {
"0": 422.84503173828125,
"1": 164.31304931640625
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 23,
"slot_index": 0
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
30
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"a photo of a dog"
]
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
-568,
290
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
36,
39
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
23,
25
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
8
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"Hyper-SDXL-1step-Unet-Comfyui.fp16.safetensors"
]
}
],
"links": [
[
8,
4,
2,
8,
1,
"VAE"
],
[
9,
8,
0,
9,
0,
"IMAGE"
],
[
23,
4,
1,
6,
0,
"CLIP"
],
[
25,
4,
1,
19,
0,
"CLIP"
],
[
29,
22,
0,
21,
3,
"SAMPLER"
],
[
30,
6,
0,
21,
1,
"CONDITIONING"
],
[
31,
19,
0,
21,
2,
"CONDITIONING"
],
[
34,
5,
0,
21,
5,
"LATENT"
],
[
35,
21,
1,
8,
0,
"LATENT"
],
[
36,
4,
0,
21,
0,
"MODEL"
],
[
38,
24,
0,
21,
4,
"SIGMAS"
],
[
39,
4,
0,
24,
0,
"MODEL"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}