IP-Adapter-FaceID-PlusV2 - 0 Shot Face Transfer - Auto Installer & Gradio App (Patreon)
Downloads
Content
Join discord and tell me your discord username to get a special rank : SECourses Discord
https://github.com/FurkanGozukara/Stable-Diffusion
https://www.youtube.com/@SECourses/search?query=runpod
How to use NGROK to connect Gradio apps on free Kaggle notebooks : https://youtu.be/iBT6rhH0Fjs
27 May 2024 Update
RunPod & Massed Compute Installers and instructions files added
Upgraded to the latest libraries
21 January 2024 Update
SDXL model upgraded to ip-adapter-faceid-plusv2_sd15
Kaggle Notebook upgraded to V3 and supports SDXL now
11 January 2024 Update
Image saving naming of the Gradio app improved
Now it will not anymore overwrite older images
10 January 2024 Update
Full tutorial > https://youtu.be/rjXsJ24kQQg
If you also upvote this Reddit Post I appreciate very much
Face embeddings caching added
Now it will calculate face embeddings only if input person image changes and not cached
Therefore the image generation speed is many times faster now
8 January 2024 Update
SDXL models support added
You can also convert SDXL into Diffusers to load models from local Diffusers folders
6 January 2024 Update
Convert any model into Diffusers feature added to the very bottom of the App
After converting add the folder path into models array
Examples added
Now you can use any CivitAI model as well with local saving
Custom model path input box added. You can give any diffusers repo path including your local path
5 January 2024 Update
Free Kaggle notebook added. Follow the notebook instructions
Tutorial video in production. Hopefully coming soon
The Main Repo
https://huggingface.co/h94/IP-Adapter-FaceID
Requirements
For this to work you need to have C++ tools installed with Python 3.10.x
Watch this tutorial to install them https://youtu.be/-NjNy7afOQ0
Edit web-ui.py file and add any models from here : https://huggingface.co/stablediffusionapi
You can also convert any model into diffusers local model and give its path or add its path to web-ui
If you want Hugging Face to download models into another drive (not mandatory) use following prompt
Start a new CMD as administrator
setx HF_HOME "G:\HF_Models"
This above command will add a variable to System Environment Variables
On RunPod or Linux
export HF_HOME="/workspace"
RunPod Install Instructions
Click here to register or open RunPod : https://runpod.io?ref=1aka98lq
Select any GPU - I prefer RTX 3090 - It takes around 2 seconds for each image with 512x768
Select any template - I prefer RunPod Pytorch 2.1
Set volume disk according to how many models you want to download and test e.g. 50 GB
Upload all files inside zip into the workspace folder
Start terminal and execute below command
cd /workspace
chmod +x linux_install.sh
./linux_install.sh
After install completed use below command to start each time
export HF_HOME="/workspace"
cd /workspace/
source venv/bin/activate
python web-ui.py --share
This will give you a Gradio live link. Use it to connect. You can also use RunPod proxy connect feature.
When you are uploading your input picture wait until it fully loads before hit generate button.
Kaggle Instructions
Register a free Kaggle account : https://www.kaggle.com/
Verify your Phone number : https://www.kaggle.com/settings
Start a new notebook by clicking + Create button
Import notebook
Full main tutorial of this notebook > in recording
Select Python and GPU P100 or GPT T2 x2
Instructions are well written on the Notebook