twlelev/FaceSwap

Based on EcomID, PuLID and InstantID. Swap face between two photos with high ID fidelity, include hair feature.

24

stars

3

commits

Python

primary language

Dec 9, 2024

updated

README

FaceSwap

Facilitate the exchange of facial features, including hair characteristics, between two photographs with high identity fidelity, utilizing the EcomID framework.

Get Started

python face_swap_ecomid.py  
    --src images/kaifu_resize.png
    --dst images/musk_resize.jpeg 
    --outdir results
    --face_adapter_path checkpoints/ip-adapter.bin 
    --controlnet_path  checkpoints/ControlNetModel 
    --base_model_path checkpoints/realisticStockPhoto_v20.safetensors

Example

DestinationSourceResult

Model Zoo

VersionBase ModelDescription
realisticStockPhoto_v20SDXLbase model
face_adapterInstantIDface embedding
ControlnetInstantIDlandmarks controlnet

References

https://github.com/alimama-creative/SDXL_EcomID_ComfyUI
https://github.com/ToTheBeginning/PuLID
https://github.com/instantX-research/InstantID
https://github.com/huggingface/diffusers

Contributors

twlelev

3 commits

twlelev/FaceSwap

Based on EcomID, PuLID and InstantID. Swap face between two photos with high ID fidelity, include hair feature.

24

stars

3

commits

Python

primary language

Dec 9, 2024

updated

README

FaceSwap

Facilitate the exchange of facial features, including hair characteristics, between two photographs with high identity fidelity, utilizing the EcomID framework.

Get Started

python face_swap_ecomid.py  
    --src images/kaifu_resize.png
    --dst images/musk_resize.jpeg 
    --outdir results
    --face_adapter_path checkpoints/ip-adapter.bin 
    --controlnet_path  checkpoints/ControlNetModel 
    --base_model_path checkpoints/realisticStockPhoto_v20.safetensors

Example

DestinationSourceResult

Model Zoo

VersionBase ModelDescription
realisticStockPhoto_v20SDXLbase model
face_adapterInstantIDface embedding
ControlnetInstantIDlandmarks controlnet

References

https://github.com/alimama-creative/SDXL_EcomID_ComfyUI
https://github.com/ToTheBeginning/PuLID
https://github.com/instantX-research/InstantID
https://github.com/huggingface/diffusers

Contributors

twlelev

3 commits

Languages

Python

100.0%