NokiMo
Furkan Gözükara
Furkan Gözükara

patreon


IP-Adapter-FaceID-PlusV2 - 0 Shot Face Transfer - Auto Installer & Gradio App

Patreon exclusive posts index

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

1 February 2025 Update

21 January 2024 Update

11 January 2024 Update

10 January 2024 Update

8 January 2024 Update

6 January 2024 Update

5 January 2024 Update

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

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

After install completed use below command to start each time

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

Comments

fixed with v4 please use it : FaceID-Kaggle_v4.ipynb at the attachments above

Furkan Gözükara

Struggling with the notebook. When running the web UI cell I get this error. Any ideas? Traceback (most recent call last): File "/kaggle/working/web-ui.py", line 8, in from diffusers import StableDiffusionPipeline, DDIMScheduler, AutoencoderKL, StableDiffusionXLPipeline File "", line 1075, in _handle_fromlist File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 844, in __getattr__ value = getattr(module, name) File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 844, in __getattr__ value = getattr(module, name) File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 843, in __getattr__ module = self._get_module(self._class_to_module[name]) File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 855, in _get_module raise RuntimeError( RuntimeError: Failed to import diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion because of the following error (look up to see its traceback): Failed to import transformers.models.clip.image_processing_clip because of the following error (look up to see its traceback): operator torchvision::nms does not exist add Codeadd Markdown

Matthew Willliams

Ufuk sıfırdan kurup bana kurulum cmd ekranın tüm loglarını gönderir misin eposta olarak : monstermmorpg@gmail.com

Furkan Gözükara

Traceback (most recent call last): File "D:\video_face\web-ui.py", line 5, in import torch File "D:\video_face\venv\lib\site-packages\torch\__init__.py", line 148, in raise err OSError: [WinError 126] Belirtilen modül bulunamadı. Error loading "D:\video_face\venv\lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies. Press any key to continue . . . merhaba böyle bir hata alıyorum çözemedim? sizceneden?

Ufuk Akçay

it could be incompatible lora. there are so many lora model types sadly. which lora you are trying?

Furkan Gözükara

When I try to use a lora I get this error: raise ValueError(f"The following keys have not been correctly be renamed: \n\n {', '.join(state_dict.keys())}") ValueError: The following keys have not been correctly be renamed: lora_te2_text_projection.lora_down.weight, lora_te2_text_projection.lora_up.weight

Jeff Penny

yes on my todo list hopefully thanks for reminding

Furkan Gözükara

Hi! Could you make a "1 click installer" for PuLID: "Pure and Lightning ID Customization via Contrastive Alignment"? This technology is more advanced than FaceID and shows much better quality. Thanks in advance for the reply. https://github.com/ToTheBeginning/PuLID

Kappa_Neuro

Hello. I just did a fresh install. It worked. Can you tell me what is your python version? also your error seems like models are not accurately downloaded. did you have any problem while installing?

Furkan Gözükara

Hello Furkan, I installed IP Adapter with your script and followed your tutorial but when I try to generate images, I got this message whatever the model I choose : safetensors_rust.SafetensorError: Error while deserializing header: MetadataIncompleteBuffer / Do you have a solution for this one ? Thanks :)

Samuel Mallevaes

thank you. sadly i dont know since i dont have a mac. but you can try.

Furkan Gözükara

Hi. Thank you for good content. Is it possible to run ip-adapter on silicon mac (macbook air m2 24Gb unified memory)?

Max

sadly i cant make since google colab not supporting ngrok.

Furkan Gözükara

is it possible to have this notebook for google colab?

Art

If it is SD 1.5 model don't select SDXL. I am doing a fresh install to test right now

Furkan Gözükara

When I try to convert juggernautv8 I get this error Conversion status: Error: StableDiffusionPipeline.__init__() got an unexpected keyword argument 'tokenizer_2'

Umut Hasanoglu

You need to start from beginning if you do restart or stop. That is how Kaggle works sadly.

Furkan Gözükara

Hi... I installed on Kaggle, and everithing went fine, for the forst run... now I'm trying to restart notebook: what are the steps to reactivate it (I clicked on the link to gradio that worked this morning but it gives me back error... do I have to re run all the steps of the notebook to have it back running?)

Art

no i mean how did you install python? when you open a new cmd and type python what do you see?

Furkan Gözükara

I extracted the files like you did in the video and clicked the install.bat and it installed automatically. then I opened the webui and uploaded a pic then selected a model and click generate. it downloaded the model files after that it gave me error saying Torch not compiled with CUDA enabled. I tried several times

amit maitra

are you installing on linux machine? using runpod installer?

Furkan Gözükara

python version is 3.10.13 and gpu is RTX 3080

amit maitra

that is install error or gpu error. what is your python version and what is your GPU?

Furkan Gözükara

can you help me fix?

amit maitra

I keep getting this error when I click generate "zy_init raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: To"

amit maitra

yes i will make hopefully on my list very soon

Furkan Gözükara

can you make a one click install bat for PhotoMaker ,https://huggingface.co/spaces/TencentARC/PhotoMaker

gao yu

can you give example of that? i can try

Furkan Gözükara

Dr, It is recommended to add wildcard function, this amazing program will be better.

g Yu

which model you are trying? i can try and test

Furkan Gözükara

Error: 'time_embed.0.weight' when i want to convert local safetensors model to diffusers.. Am I doing sth wrong?

Joosheen

hi can you elaborate more? about other download methods?

Furkan Gözükara

Hi there, Are there any other download methods?

guangyu niu

rank given and i tagged you on discord

Furkan Gözükara

Installed plus_ip_v13 on windows Python 3.10 got errors. After wasting about couple hours I decided to try on Kraggle and still getting errors. Please see screenshot. https://i.imgur.com/HWvHD8a.png Also my user name on Discord is barepixels, can you upgrade me there?

Hung Do

you are welcome. i am glad you solved

Furkan Gözükara

but thank you for your quick replies ;-)

Baekdoosixt

i've redownload CUDA 12.1 and reinstalled it , i've verified that the CUDA_PATH env is correct (.../NVIDIA GPU Computing Toolkit\CUDA\v12.1) but still not working can you please help ?

Baekdoosixt

Hi ! as i try to generate , i receive this message : RuntimeError: D:\a\_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:743 onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported.

Baekdoosixt

hello. i heard there is a way to make it work with comfyui but sadly i dont know how. i just tested with a cat and it didn't work sadly : ValueError("No faces found in the image.")

Furkan Gözükara

hello, can i make it work with a comfy UI? and have u tested it with pets? or is there any IP-adapter or something to get similar pets without training a ckpt for your pet

Dr dusk

i can download attachments. you need to check attachments at the very bottom plus_ip_v11.zip

Furkan Gözükara

'AttachmentNotFound' error for the zip file,

Pallavi Chauhan

Re run the installer. 0 errors. Says virtual env made correctly.

mike oxmaul

On Windows. After running install.bat, opening run-web-app.bat I get this error. A matching Triton is not available, some optimizations will not be enabled. Error caught was: No module named 'triton' Traceback (most recent call last): File "C:\AI\plus_ip_v6\web-ui.py", line 13, in from pyngrok import ngrok ModuleNotFoundError: No module named 'pyngrok' Press any key to continue . . .

mike oxmaul

sure i will work on runpod and kaggle scripts now

Furkan Gözükara

Oh I don't really have that haha .. so will wait for a colab or Kaggle

Moh'd Mahfadi

Hello I just did a test. Around 8 GB. so 8 GB GPU should run it fairly well at 512x768 pixel resolution output

Furkan Gözükara

Dr, how much GPU this requires?

Moh'd Mahfadi


Related Creators