Files
comfyui-workflows/optimized/I2I/refiner/workflow.json
T

31 lines
4.2 KiB
JSON

{
"1": {"class_type":"UNETLoader","inputs":{"unet_name":"qwen_image_2.1_int8_convrot.safetensors","weight_dtype":"default"}},
"2": {"class_type":"CLIPLoader","inputs":{"clip_name":"qwen3vl_8b_w4a8.safetensors","type":"qwen_image","device":"default"}},
"3": {"class_type":"VAELoader","inputs":{"vae_name":"qwen_image_2.1_vae_bf16.safetensors"}},
"4": {"class_type":"LoadImage","inputs":{"image":"refiner_reference.jpg"}},
"5": {"class_type":"ResizeAndPadImage","inputs":{"image":["4",0],"target_width":576,"target_height":1024,"padding_color":"white","interpolation":"lanczos"}},
"6": {"class_type":"QwenImage21Cache","inputs":{"model":["1",0],"device":"auto","dtype":"int8"}},
"7": {"class_type":"TextEncodeQwenImage21","inputs":{"clip":["2",0],"prompt":"Transform the supplied reference image into a photorealistic image of the same subject. Infer identity, facial features, skin tone, hairstyle, clothing, accessories, colors, pose, body proportions, composition, and framing directly from the reference. Preserve those visual attributes faithfully while replacing the original rendering style with natural human anatomy, realistic skin and hair texture, physically accurate materials, believable fabric and surface detail, natural hands and fingers, cinematic soft light, realistic shadows, coherent perspective, premium editorial photography, high dynamic range, photorealistic, highly detailed. Do not redesign, restyle, substitute, add, remove, mirror, or crop the subject. No text or logos.","negative_prompt":"different person, changed identity, changed face, changed hairstyle, changed clothing, changed colors, altered accessories, changed pose, different composition, extra person, duplicate person, extra limbs, malformed hands, fused fingers, distorted anatomy, cropped head, cropped feet, mirrored image, cartoon, illustration, anime, CGI, plastic skin, waxy skin, blurry, low detail, text, logo, watermark","resolution":0,"images.image_1":["5",0],"vae":["3",0]}},
"8": {"class_type":"KSamplerSelect","inputs":{"sampler_name":"euler_cfg_pp"}},
"9": {"class_type":"BasicScheduler","inputs":{"model":["6",0],"scheduler":"beta","steps":50,"denoise":1.0}},
"10": {"class_type":"RandomNoise","inputs":{"noise_seed":310101}},
"11": {"class_type":"CFGGuider","inputs":{"model":["6",0],"positive":["7",0],"negative":["7",1],"cfg":3.5}},
"12": {"class_type":"SamplerCustomAdvanced","inputs":{"noise":["10",0],"guider":["11",0],"sampler":["8",0],"sigmas":["9",0],"latent_image":["7",2]}},
"13": {"class_type":"VAEDecode","inputs":{"samples":["12",0],"vae":["3",0]}},
"28": {"class_type":"ResizeAndPadImage","inputs":{"image":["13",0],"target_width":1080,"target_height":1920,"padding_color":"white","interpolation":"lanczos"}},
"14": {"class_type":"UNETLoader","inputs":{"unet_name":"flux3-image-klein-int8-convrot.safetensors","weight_dtype":"default"}},
"15": {"class_type":"CLIPLoader","inputs":{"clip_name":"qwen3-vl-4b-heretic_int8.safetensors","type":"flux3","device":"default"}},
"16": {"class_type":"VAELoader","inputs":{"vae_name":"flux2-vae.safetensors"}},
"17": {"class_type":"StarFlux2Conditioner","inputs":{"clip":["15",0],"vae":["16",0],"text":"","join_references":true,"image_1":["28",0]}},
"18": {"class_type":"FluxGuidance","inputs":{"conditioning":["17",0],"guidance":1.0}},
"19": {"class_type":"BasicGuider","inputs":{"model":["14",0],"conditioning":["18",0]}},
"20": {"class_type":"KSamplerSelect","inputs":{"sampler_name":"euler_ancestral"}},
"21": {"class_type":"BasicScheduler","inputs":{"model":["14",0],"scheduler":"simple","steps":8,"denoise":0.11}},
"22": {"class_type":"RandomNoise","inputs":{"noise_seed":310101}},
"23": {"class_type":"VAEEncode","inputs":{"pixels":["28",0],"vae":["16",0]}},
"24": {"class_type":"SamplerCustomAdvanced","inputs":{"noise":["22",0],"guider":["19",0],"sampler":["20",0],"sigmas":["21",0],"latent_image":["23",0]}},
"25": {"class_type":"VAEDecode","inputs":{"samples":["24",0],"vae":["16",0]}},
"27": {"class_type":"SaveImage","inputs":{"images":["28",0],"filename_prefix":"fluxExperiments/i2i_refiner/QRF-I2I-02-base"}},
"26": {"class_type":"SaveImage","inputs":{"images":["25",0],"filename_prefix":"fluxExperiments/i2i_refiner/QRF-I2I-02"}}
}