Skip to content

[Bug] InstantID error #1162

Open
Open
@datvtn

Description

@datvtn

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Request-bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions