3dgenstudio-mirror/comfyui_workflows/Gen Image with Flux2 and Prompt Enhancer.json
2026-05-06 11:24:18 +02:00

272 lines
No EOL
4.5 KiB
JSON

{
"9": {
"inputs": {
"filename_prefix": "Flux2-Klein",
"images": [
"97",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "Save Image"
}
},
"84": {
"inputs": {
"sampler_name": "euler"
},
"class_type": "KSamplerSelect",
"_meta": {
"title": "KSamplerSelect"
}
},
"85": {
"inputs": {
"steps": 8,
"width": [
"90",
0
],
"height": [
"91",
0
]
},
"class_type": "Flux2Scheduler",
"_meta": {
"title": "Flux2Scheduler"
}
},
"86": {
"inputs": {
"cfg": 1.5,
"model": [
"93",
0
],
"positive": [
"96",
0
],
"negative": [
"89",
0
]
},
"class_type": "CFGGuider",
"_meta": {
"title": "CFGGuider"
}
},
"87": {
"inputs": {
"noise": [
"92",
0
],
"guider": [
"86",
0
],
"sampler": [
"84",
0
],
"sigmas": [
"85",
0
],
"latent_image": [
"88",
0
]
},
"class_type": "SamplerCustomAdvanced",
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"88": {
"inputs": {
"width": [
"90",
0
],
"height": [
"91",
0
],
"batch_size": 1
},
"class_type": "EmptyFlux2LatentImage",
"_meta": {
"title": "Empty Flux 2 Latent"
}
},
"89": {
"inputs": {
"text": "blurry, low detail, low contrast, deformed",
"clip": [
"94",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Negative Prompt)"
}
},
"90": {
"inputs": {
"value": 1024
},
"class_type": "PrimitiveInt",
"_meta": {
"title": "Width"
}
},
"91": {
"inputs": {
"value": 1024
},
"class_type": "PrimitiveInt",
"_meta": {
"title": "Height"
}
},
"92": {
"inputs": {
"noise_seed": 12345
},
"class_type": "RandomNoise",
"_meta": {
"title": "RandomNoise"
}
},
"93": {
"inputs": {
"unet_name": "flux-2-klein-9b-kv-fp8.safetensors",
"weight_dtype": "default"
},
"class_type": "UNETLoader",
"_meta": {
"title": "Load Diffusion Model"
}
},
"94": {
"inputs": {
"clip_name": "qwen_3_8b_fp8mixed.safetensors",
"type": "flux2",
"device": "default"
},
"class_type": "CLIPLoader",
"_meta": {
"title": "Load CLIP"
}
},
"95": {
"inputs": {
"vae_name": "flux2-vae.safetensors"
},
"class_type": "VAELoader",
"_meta": {
"title": "Load VAE"
}
},
"96": {
"inputs": {
"text": [
"98",
0
],
"clip": [
"94",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
},
"97": {
"inputs": {
"samples": [
"87",
0
],
"vae": [
"95",
0
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE Decode"
}
},
"98": {
"inputs": {
"switch": [
"99",
0
],
"on_false": [
"100",
0
],
"on_true": [
"101",
0
]
},
"class_type": "ComfySwitchNode",
"_meta": {
"title": "Switch"
}
},
"99": {
"inputs": {
"value": true
},
"class_type": "PrimitiveBoolean",
"_meta": {
"title": "Enhance Prompt"
}
},
"100": {
"inputs": {
"value": "An anime dwarf sorcerer, standing in T-Pose with arms apart, front view, gray background"
},
"class_type": "PrimitiveStringMultiline",
"_meta": {
"title": "String (Multiline)"
}
},
"101": {
"inputs": {
"model_name": "Qwen3-VL-4B-Instruct",
"quantization": "None (FP16)",
"attention_mode": "auto",
"use_torch_compile": false,
"device": "auto",
"prompt_text": [
"100",
0
],
"enhancement_style": "📝 Refine",
"custom_system_prompt": "",
"max_tokens": 256,
"temperature": 0.7,
"top_p": 0.9,
"repetition_penalty": 1.1,
"keep_model_loaded": true,
"seed": 12345
},
"class_type": "AILab_QwenVL_PromptEnhancer",
"_meta": {
"title": "QwenVL Prompt Enhancer"
}
}
}