haofanwang/ControlNet-for-Diffusers

TypeError: forward() got an unexpected keyword argument 'controlnet_hint'

Suhail opened this issue · 4 comments

It looks like something has changed with diffusers and it doesn't have this param:

CleanShot 2023-03-05 at 12 36 15

CleanShot 2023-03-05 at 12 37 37

CleanShot 2023-03-05 at 12 36 48

I tried converting it with the new HF script you updated:
- python scripts/convert_original_stable_diffusion_to_diffusers.py --controlnet --checkpoint_path ../models/control_sd15_canny.pth --dump_path ../models/control_sd15_canny --device cpu --original_config_file ./cldm_v15.yaml

But I might be missing something about the conversion:
CleanShot 2023-03-05 at 13 08 57

Could you please use a specific commit id? @Suhail

git checkout 9a37409663a53f775fa380db332d37d7ea75c915

git checkout 9a37409663a53f775fa380db332d37d7ea75c915 this pr can‘t find
maybe this pipline must update

I replaced control_hint by control_cond, new error occurred, maybe unet not have control param
iShot_2023-03-07_18 34 08