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

Update ip_adapter.py #220

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

salisbury-espinosa
Copy link

fix:

File "/ip-adapter/env/lib/python3.10/site-packages/ip_adapter/ip_adapter.py", line 6, in <module>
    from diffusers.pipelines.controlnet import MultiControlNetModel
ImportError: cannot import name 'MultiControlNetModel' from 'diffusers.pipelines.controlnet' (ip-adapter/env/lib/python3.10/site-packages/diffusers/pipelines/controlnet/__init__.py)

fix:

```
File "/ip-adapter/env/lib/python3.10/site-packages/ip_adapter/ip_adapter.py", line 6, in <module>
    from diffusers.pipelines.controlnet import MultiControlNetModel
ImportError: cannot import name 'MultiControlNetModel' from 'diffusers.pipelines.controlnet' (ip-adapter/env/lib/python3.10/site-packages/diffusers/pipelines/controlnet/__init__.py)
```
@xiaohu2015
Copy link
Collaborator

your diffusers version?

@YZBPXX
Copy link
Contributor

YZBPXX commented Jan 3, 2024

I have also encountered this issue and resolved it by installing 'transformers.' Without it, even installing the recommended 'diffusers=0.22.1' unable to import successfully

@xiaohu2015
Copy link
Collaborator

I have also encountered this issue and resolved it by installing 'transformers.' Without it, even installing the recommended 'diffusers=0.22.1' unable to import successfully

i think the current code has no problem

@salisbury-espinosa
Copy link
Author

your diffusers version?

0.25.0

@xiaohu2015
Copy link
Collaborator

your diffusers version?

0.25.0

but this version should work for "from diffusers.pipelines.controlnet import MultiControlNetModel"
https://github.com/huggingface/diffusers/blob/v0.25.0/src/diffusers/pipelines/controlnet/__init__.py#L52

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

Successfully merging this pull request may close these issues.

3 participants