Fooocus-API icon indicating copy to clipboard operation
Fooocus-API copied to clipboard

Hello FaceSwap API for face replacement

Open egoorr opened this issue 1 year ago • 4 comments

Hello FaceSwap API for face replacement

egoorr avatar Mar 19 '24 15:03 egoorr

This is a function in image prompt, use image prompt endpoint and change cn_type in params, like this :

face_swap_params = {
    "performance_selection": "Speed",
    "aspect_ratios_selection": "896*1152",
    "image_prompts": [
        {
            "cn_img": source_face_m,
            "cn_stop": 0.5,
            "cn_weight": 0.6,
            "cn_type": "ImagePrompt"
        },{
            "cn_img": target_face,
            "cn_stop": 0.9,
            "cn_weight": 0.75,
            "cn_type": "FaceSwap"
        }
    ],
    "async_process": False
}

mrhan1993 avatar Apr 03 '24 08:04 mrhan1993

@mrhan1993 Is this project using IP Adapter or Instant ID under the hood?

If it's not Instant ID, is there any chance we could get that supported?

platform-kit avatar Apr 28 '24 23:04 platform-kit

@mrhan1993 Is this project using IP Adapter or Instant ID under the hood?

If it's not Instant ID, is there any chance we could get that supported?

this need Fooocus to support

mrhan1993 avatar Apr 29 '24 16:04 mrhan1993

@mrhan1993 There's a fork which has already implemented it: https://github.com/lllyasviel/Fooocus/issues/2025#issuecomment-1947322264

platform-kit avatar Apr 29 '24 17:04 platform-kit