Hey guys, from this code -> https://huggingface.co/spaces/multimodalart/Ip-Adapter-FaceID/blob/main/

Hey guys, from this code -> https://huggingface.co/spaces/multimodalart/Ip-Adapter-FaceID/blob/main/app.py
I need the below part of the code to use juggernaut-x-v10 and ip-adapter-v2-sdxl models, how can I do this?

original code: (from the above link)
base_model_path = "SG161222/Realistic_Vision_V4.0_noVAE"
vae_model_path = "stabilityai/sd-vae-ft-mse"
image_encoder_path = "laion/CLIP-ViT-H-14-laion2B-s32B-b79K"
ip_ckpt = hf_hub_download(repo_id="h94/IP-Adapter-FaceID", filename="ip-adapter-faceid_sd15.bin", repo_type="model")
ip_plus_ckpt = hf_hub_download(repo_id="h94/IP-Adapter-FaceID", filename="ip-adapter-faceid-plusv2_sd15.bin", repo_type="model")


My changes:
base_model_path = "RunDiffusion/Juggernaut-X-v10"
vae_model_path = "stabilityai/sd-vae-ft-mse"
image_encoder_path = "laion/CLIP-ViT-H-14-laion2B-s32B-b79K"
ip_ckpt = hf_hub_download(repo_id="h94/IP-Adapter-FaceID", filename="ip-adapter-faceid_sdxl.bin", repo_type="model")
ip_plus_ckpt = hf_hub_download(repo_id="h94/IP-Adapter-FaceID", filename="ip-adapter-faceid-plusv2_sdxl.bin", repo_type="model")


Error:
line 80, in generate_image
    image = ip_model_plus.generate(
  File "/venv/lib/python3.10/site-packages/ip_adapter/ip_adapter_faceid.py", line 384, in generate
    prompt_embeds_, negative_prompt_embeds_ = self.pipe.encode_prompt(
ValueError: too many values to unpack (expected 2)


Any help is appreciated.
Was this page helpful?