| { | |
| "1": { | |
| "class_type": "LoadImage", | |
| "inputs": { | |
| "image": "input.png", | |
| "upload": "image" | |
| } | |
| }, | |
| "2": { | |
| "class_type": "FaceRestoreCFWithModel", | |
| "inputs": { | |
| "facerestore_model": "GFPGANv1.4.pth", | |
| "image": ["1", 0], | |
| "facedetection": "retinaface_resnet50", | |
| "codeformer_fidelity": 0.5 | |
| } | |
| }, | |
| "3": { | |
| "class_type": "ImageBlend", | |
| "inputs": { | |
| "image1": ["1", 0], | |
| "image2": ["2", 0], | |
| "blend_factor": 0.8, | |
| "blend_mode": "normal" | |
| } | |
| }, | |
| "4": { | |
| "class_type": "SaveImage", | |
| "inputs": { | |
| "images": ["3", 0], | |
| "filename_prefix": "face_enhanced" | |
| } | |
| } | |
| } |