Skip to content

Update ip_adapter.py#220

Open
salisbury-espinosa wants to merge 1 commit intotencent-ailab:mainfrom
salisbury-espinosa:patch-1
Open

Update ip_adapter.py#220
salisbury-espinosa wants to merge 1 commit intotencent-ailab:mainfrom
salisbury-espinosa:patch-1

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