Skip to content

Instantly share code, notes, and snippets.

@pwillia7
Last active March 19, 2025 13:03
Show Gist options
  • Select an option

  • Save pwillia7/55040fe3523bf3b61dc25e0094a9476c to your computer and use it in GitHub Desktop.

Select an option

Save pwillia7/55040fe3523bf3b61dc25e0094a9476c to your computer and use it in GitHub Desktop.
{
"2": {
"inputs": {
"unet_name": "flux1-dev-fp8.safetensors",
"weight_dtype": "fp8_e4m3fn"
},
"class_type": "UNETLoader",
"_meta": {
"title": "Load Diffusion Model"
}
},
"3": {
"inputs": {
"clip_name1": "t5xxl_fp8_e4m3fn.safetensors",
"clip_name2": "clip_l.safetensors",
"type": "flux"
},
"class_type": "DualCLIPLoader",
"_meta": {
"title": "DualCLIPLoader"
}
},
"4": {
"inputs": {
"vae_name": "ae.safetensors"
},
"class_type": "VAELoader",
"_meta": {
"title": "Load VAE"
}
},
"6": {
"inputs": {
"width": 2048,
"height": 2048,
"upscale_method": "nearest-exact",
"keep_proportion": true,
"divisible_by": 8,
"crop": "disabled",
"image": [
"28",
0
]
},
"class_type": "ImageResizeKJ",
"_meta": {
"title": "Resize Image"
}
},
"7": {
"inputs": {
"control_net_name": "flux\\upscalecn.safetensors"
},
"class_type": "ControlNetLoader",
"_meta": {
"title": "Load ControlNet Model"
}
},
"8": {
"inputs": {
"seed": 568159718233566
},
"class_type": "Seed (rgthree)",
"_meta": {
"title": "Seed (rgthree)"
}
},
"9": {
"inputs": {
"strength": 0.6,
"start_percent": 0,
"end_percent": 0.8,
"positive": [
"22",
0
],
"negative": [
"24",
0
],
"control_net": [
"7",
0
],
"vae": [
"4",
0
],
"image": [
"6",
0
]
},
"class_type": "ControlNetApplySD3",
"_meta": {
"title": "Apply Controlnet with VAE"
}
},
"10": {
"inputs": {
"model": [
"2",
0
],
"clip": [
"3",
0
],
"vae": [
"4",
0
],
"positive": [
"9",
0
],
"negative": [
"9",
1
]
},
"class_type": "ToBasicPipe",
"_meta": {
"title": "ToBasicPipe"
}
},
"11": {
"inputs": {
"pixels": [
"6",
0
],
"vae": [
"4",
0
]
},
"class_type": "VAEEncode",
"_meta": {
"title": "VAE Encode"
}
},
"13": {
"inputs": {
"seed": [
"8",
0
],
"steps": 20,
"cfg": 1,
"sampler_name": "euler",
"scheduler": "simple",
"denoise": 0.8,
"basic_pipe": [
"10",
0
],
"latent_image": [
"11",
0
]
},
"class_type": "ImpactKSamplerBasicPipe",
"_meta": {
"title": "KSampler (pipe)"
}
},
"14": {
"inputs": {
"filename_prefix": "flux_enhance/gen1",
"images": [
"15",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "Save Image"
}
},
"15": {
"inputs": {
"samples": [
"13",
1
],
"vae": [
"4",
0
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE Decode"
}
},
"16": {
"inputs": {
"wildcard": "",
"Select to add LoRA": "Select the LoRA to add to the text",
"Select to add Wildcard": "Select the Wildcard to add to the text",
"basic_pipe": [
"13",
0
],
"bbox_detector": [
"19",
0
],
"sam_model_opt": [
"20",
0
]
},
"class_type": "BasicPipeToDetailerPipe",
"_meta": {
"title": "BasicPipe -> DetailerPipe"
}
},
"17": {
"inputs": {
"guide_size": 1024,
"guide_size_for": true,
"max_size": 1024,
"seed": [
"8",
0
],
"steps": 20,
"cfg": 1,
"sampler_name": "euler",
"scheduler": "simple",
"denoise": 0.26,
"feather": 5,
"noise_mask": false,
"force_inpaint": false,
"bbox_threshold": 0.5,
"bbox_dilation": 15,
"bbox_crop_factor": 3,
"sam_detection_hint": "center-1",
"sam_dilation": 0,
"sam_threshold": 0.93,
"sam_bbox_expansion": 0,
"sam_mask_hint_threshold": 0.7,
"sam_mask_hint_use_negative": "False",
"drop_size": 10,
"refiner_ratio": 0.2,
"cycle": 1,
"inpaint_model": false,
"noise_mask_feather": 20,
"image": [
"15",
0
],
"detailer_pipe": [
"16",
0
]
},
"class_type": "FaceDetailerPipe",
"_meta": {
"title": "FaceDetailer (pipe)"
}
},
"19": {
"inputs": {
"model_name": "bbox/face_yolov8n_v2.pt"
},
"class_type": "UltralyticsDetectorProvider",
"_meta": {
"title": "UltralyticsDetectorProvider"
}
},
"20": {
"inputs": {
"model_name": "sam_vit_b_01ec64.pth",
"device_mode": "AUTO"
},
"class_type": "SAMLoader",
"_meta": {
"title": "SAMLoader (Impact)"
}
},
"21": {
"inputs": {
"filename_prefix": "flux_enhance/facedetail",
"images": [
"17",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "Save Image"
}
},
"22": {
"inputs": {
"clip_l": "",
"t5xxl": "",
"guidance": 5,
"clip": [
"3",
0
]
},
"class_type": "CLIPTextEncodeFlux",
"_meta": {
"title": "CLIPTextEncodeFlux"
}
},
"23": {
"inputs": {
"clip_l": "",
"t5xxl": "",
"guidance": 5,
"clip": [
"3",
0
]
},
"class_type": "CLIPTextEncodeFlux",
"_meta": {
"title": "CLIPTextEncodeFlux"
}
},
"24": {
"inputs": {
"conditioning": [
"23",
0
]
},
"class_type": "ConditioningZeroOut",
"_meta": {
"title": "ConditioningZeroOut"
}
},
"27": {
"inputs": {
"image": "%%B64IMAGE%%"
},
"class_type": "ETN_LoadImageBase64",
"_meta": {
"title": "Load Image (Base64)"
}
},
"28": {
"inputs": {
"upscale_model": [
"29",
0
],
"image": [
"27",
0
]
},
"class_type": "ImageUpscaleWithModel",
"_meta": {
"title": "Upscale Image (using Model)"
}
},
"29": {
"inputs": {
"model_name": "4x-UltraSharp.pth"
},
"class_type": "UpscaleModelLoader",
"_meta": {
"title": "Load Upscale Model"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment