Files
wildminder-ComfyUI-DyPE/example_workflows/HiFlow-Flux-workflow.json
T
WildAi 04a97d91a9 feat(hiflow): scale_factor replaces target_resolution
User: absolute pixel target unintuitive and vague. New param is
relative to the input latent: 2 = double each side, 1 = unchanged,
0.5 = half. Semantics:

- scale applies PER SIDE (old absolute form over-upscaled the short
  side of non-square inputs — both sides doubled until the smaller
  hit the pixel target)
- up >1 keeps paper 2x-stage quantization: 1.2-2.0 -> one 2x stage,
  4 -> two; final may land above exact scale
- scale <1 (0.25-1): single guided refinement stage at the smaller
  size; reference trajectory bicubic-resized down, walk unchanged
- range [0.25, 8] validated at node + core

_stage_latent_sizes rewritten (nearest-snap helper split out);
cascade + node params renamed; workflow JSON updated; 158 hiflow
tests (new: downscale stage, per-side non-square, range, scale-2
single stage); suite 1310 passed / 4 skipped; ruff F,E9 green;
v2.13.0.
2026-09-04 01:18:19 +03:00

124 lines
2.0 KiB
JSON

{
"1": {
"class_type": "UNETLoader",
"_meta": {
"title": "Load FLUX"
}
},
"2": {
"class_type": "DualCLIPLoader",
"_meta": {
"title": "Load CLIP (T5 + CLIP-L)"
}
},
"3": {
"class_type": "VAELoader",
"_meta": {
"title": "Load VAE"
}
},
"4": {
"class_type": "CLIPTextEncode",
"_meta": {
"title": "Positive Prompt"
},
"inputs": {
"text": "a serene mountain lake at dawn, mist over the water, photorealistic",
"clip": [
"2",
0
]
}
},
"5": {
"class_type": "CLIPTextEncode",
"_meta": {
"title": "Negative Prompt"
},
"inputs": {
"text": "",
"clip": [
"2",
0
]
}
},
"6": {
"class_type": "EmptySD3LatentImage",
"_meta": {
"title": "Base Latent (1024x1024)"
},
"inputs": {
"width": 1024,
"height": 1024,
"batch_size": 1
}
},
"7": {
"class_type": "HiFlow",
"_meta": {
"title": "HiFlow \u2014 trajectory-guided 2K upscale"
},
"inputs": {
"model": [
"1",
0
],
"vae": [
"3",
0
],
"positive": [
"4",
0
],
"negative": [
"5",
0
],
"latent_image": [
"6",
0
],
"cfg": 3.5,
"steps": 30,
"guidance": 4.5,
"steps_per_stage": 16,
"tau": 0.6,
"filter_ratio": 0.2,
"alpha_scale": 1.0,
"beta_scale": 0.5,
"upsampling": "latent",
"scale_factor": 2.0
}
},
"8": {
"class_type": "VAEDecode",
"_meta": {
"title": "Decode"
},
"inputs": {
"samples": [
"7",
0
],
"vae": [
"3",
0
]
}
},
"9": {
"class_type": "SaveImage",
"_meta": {
"title": "Save"
},
"inputs": {
"filename_prefix": "HiFlow",
"images": [
"8",
0
]
}
}
}