Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_ip_adapter cannot load ip-adapter-faceid-plusv2_sdxl #169

Open
doublexxking opened this issue Jul 29, 2024 · 1 comment
Open

load_ip_adapter cannot load ip-adapter-faceid-plusv2_sdxl #169

doublexxking opened this issue Jul 29, 2024 · 1 comment

Comments

@doublexxking
Copy link

doublexxking commented Jul 29, 2024

My code:
pipe.load_ip_adapter("h94/IP-Adapter-FaceID", subfolder="", weight_name="ip-adapter-faceid-plusv2_sdxl.bin")
It gives error:

ip-adapter-faceid-plusv2_sdxl.bin: 100%|█████████████████████████████████████████████████████████| 1.49G/1.49G [01:47<00:00, 13.8MB/s]
Traceback (most recent call last):
File "/opt/venv/lib/python3.8/site-packages/huggingface_hub/utils/_errors.py", line 304, in hf_raise_for_status
response.raise_for_status()
File "/opt/venv/lib/python3.8/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/image_encoder/config.json

If I set
pipe.load_ip_adapter("h94/IP-Adapter-FaceID", subfolder="", weight_name="ip-adapter-faceid-plusv2_sdxl.bin", image_encoder_folder=None)
it gives
dtype = next(self.image_encoder.parameters()).dtype
AttributeError: 'NoneType' object has no attribute 'parameters
how to set image_encoder?

@doublexxking
Copy link
Author

I check the files in huggingface, https://huggingface.co/h94/IP-Adapter/tree/main/sdxl_models
I change to
pipe.load_ip_adapter("h94/IP-Adapter", subfolder="sdxl_models", weight_name="ip-adapter-plus-face_sdxl_vit-h.bin")

it gives the following error
RuntimeError: mat1 and mat2 shapes cannot be multiplied (1028x1664 and 1280x1280)

Is there some method to use ip-adapter-plus-face_sdxl with PhotoMakerV2?

@doublexxking doublexxking changed the title load_ip_adapter cannot load ip-adapter-faceid-plusv2_sdxl.bin load_ip_adapter cannot load ip-adapter-faceid-plusv2_sdxl Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant