diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

fix multicontrolnet `save_pretrained` logic for compatibility

Open rebel-kblee opened this issue 1 year ago • 2 comments

What does this PR do?

Fix an inconsistency between from_pretrained and save_pretrained within the Multicontrolnet class. The from_pretrained function returns a directory structure like this: controlnet, controlnet_1, controlnet_2, whereas save_pretrained is like this: controlnet, controlnet_1, controlnet_1_2. For example, when loading a saved model, if there are 3 controlnets, the last controlnet will not be loaded. (more than 2 always same issue)

Fixes #7814

rebel-kblee avatar Apr 30 '24 04:04 rebel-kblee

@sayakpaul The PR corresponding to the content of issue report (#7814 ).

rebel-kblee avatar Apr 30 '24 05:04 rebel-kblee

Can you please check this PR? @yiyixuxu

rebel-kblee avatar May 10 '24 10:05 rebel-kblee

Hi @sayakpaul, can you assign another reviewer for this PR?

rebel-kblee avatar May 13 '24 11:05 rebel-kblee

Please give it a few more days. It will be reviewed by @yiyixuxu.

sayakpaul avatar May 13 '24 11:05 sayakpaul

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

thanks for the PR! sorry I missed it

yiyixuxu avatar May 13 '24 19:05 yiyixuxu