Skip to content

bug:convert controlnet model(custom datasets train) to diffusers failure #4101

Closed
@chenjingcheng

Description

@chenjingcheng

I trained a controlnet model based on sd1.5 or sd2.1 using my own data. The trained controlnet model performs inference correctly. However, when I try to convert it using the scripts/convert_original_controlnet_to_diffusers.py script, I encounter the following error:
Traceback (most recent call last):
File "/home/jacky/aiproject/diffusers/scripts/convert_original_controlnet_to_diffusers.py", line 96, in
controlnet = download_controlnet_from_original_ckpt(
File "/home/jacky/anaconda3/envs/diffusers/lib/python3.10/site-packages/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py", line 1557, in download_controlnet_from_original_ckpt
controlnet_model = convert_controlnet_checkpoint(
File "/home/jacky/anaconda3/envs/diffusers/lib/python3.10/site-packages/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py", line 1038, in convert_controlnet_checkpoint
controlnet_model = ControlNetModel(**ctrlnet_config)
File "/home/jacky/anaconda3/envs/diffusers/lib/python3.10/site-packages/diffusers/configuration_utils.py", line 614, in inner_init
init(self, *args, **init_kwargs)
TypeError: ControlNetModel.init() got an unexpected keyword argument 'addition_embed_type'

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues that haven't received updates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions