Skip to content

Close to working but issue with '_load_state_dict_into_model' #530

@fxlab

Description

@fxlab

I think I have the environment set up properly to have the plugin working but I still get this issue when loading the custom plugin into ComfyUI:
File "C:\Users\*\Documents\comfy\ComfyUI\custom_nodes\ComfyUI-3D-Pack\Gen_3D_Modules\CharacterGen\Stage_2D\tuneavideo\models\unet_mv2d_condition.py", line 40, in <module> from diffusers.models.modeling_utils import ModelMixin, load_state_dict, _load_state_dict_into_model ImportError: cannot import name '_load_state_dict_into_model' from 'diffusers.models.modeling_utils' (C:\Users\*\Documents\comfy\comfy-env\Lib\site-packages\diffusers\models\modeling_utils.py)
I followed the steps here:
#487 (comment)
Which seems to resolve all the dependencies, but I did get a version error for:
numpy being higher than 2.3 so I downgraded it (not sure if that could cause the above issue)
pip install --force-reinstall numpy==2.2.6
Any suggestions are welcome.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions