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

[Bug] InstantID error #1162

Open
datvtn opened this issue Dec 12, 2024 · 0 comments
Open

[Bug] InstantID error #1162

datvtn opened this issue Dec 12, 2024 · 0 comments
Labels
Request-bug Something isn't working

Comments

@datvtn
Copy link

datvtn commented Dec 12, 2024

Your current environment information

My env:
pip install -U --pre oneflow -f https://github.com/siliconflow/oneflow_releases/releases/expanded_assets/community_cu121 pip install onediff==1.2.0 onediffx==1.2.0
My command:
python benchmarks/instant_id.py --repo ./InstantID --face-analysis-root /workspace/insightface/models/ --seed 0 --output-image instant_id.png

🐛 Describe the bug

NotImplementedError: Transform failed of <class 'torch.nn.modules.container.ModuleList'>: Transform failed of <class 'diffusers.models.attention.BasicTransformerBlock'>: Transform failed of <class 'diffusers.models.attention_processor.Attention'>: Transform failed of <class 'ip_adapter.attention_processor.AttnProcessor2_0'>: super(type, obj): obj must be an instance or subtype of type
I get the error when compile instantid
then I have tried https://github.com/siliconflow/onediff/blob/main/benchmarks/instant_id.py
But it still get this error
Please help me to fix this
Thanks all!

@datvtn datvtn added the Request-bug Something isn't working label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant