ControlNet-for-Diffusers
ControlNet-for-Diffusers copied to clipboard
ControlNetInpaintPipeline: Errors for loading Controlnet Diffusers folder
Thanks for your work, After I converted the Controlnet.pth to diffusers, an error still occurred while loading. Did my conversion fail?How can I solve this problem?The error log is as follows:
The config attributes {'controlnet_hint_channels': 3} were passed to UNet2DConditionModel, but are not expected and will be ignored. Please verify your config.json configuration file.
Traceback (most recent call last):
File "/home/sd/Harddisk/zxp/ControlNet-for-Diffusers/Test.py", line 8, in low_cpu_mem_usage=False
and device_map=None
if you want to randomely initialize those weights or else make sure your checkpoint file is correct.
Can you provide your full script? Which controlnet model do you convert? @little-misfit
@haofanwang python /home/sd/Harddisk/zxp/diffusers/scripts/convert_controlnet_to_diffusers.py --checkpoint_path control_sd15_seg.pth --dump_path control_SD15_seg --device cpu
thanks
Can you provide your full script? Which controlnet model do you convert? @little-misfit
I'm trying to convert a “seg_controlnet", which is fllow your //ControlNet + Inpainting//
What is your diffusers version? Please install diffusers using the provided commit id instead of the official repo. I know that diffusers has officially supported this op, but there may have some slight difference. Once you successfully convert it, then you can load it with the recent diffusers version. @little-misfit