photogen1 / workflows /face_enhancement_workflow.json
stateofw's picture
Fix HF Spaces build: add pre-requirements.txt and missing files
12d573d
raw
history blame contribute delete
660 Bytes
{
"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"
}
}
}