sd-webui-controlnet icon indicating copy to clipboard operation
sd-webui-controlnet copied to clipboard

no clear model cache when sd model changes

Open dennissheng opened this issue 2 years ago • 3 comments
trafficstars

When sd model changes, control model cache will be cleared. Maybe we can cache muliti sd model? Just need to change the format of the cache key, like "sd_model + control_model".

dennissheng avatar May 15 '23 09:05 dennissheng

wait - is this fixing error or optimizing mem? is the current code wrong and can we trigger some bugs with current code logic?

lllyasviel avatar May 15 '23 09:05 lllyasviel

ah i know - this only influences diff controlnet right? but considering we are going to end the support for diff controls, perhaps not going to add complexity for diff controlnet

lllyasviel avatar May 15 '23 10:05 lllyasviel

@lllyasviel yes, this is an optimization of decreasing loading time when switching stable diffusion model. In my test, this would decrease several seconds.

dennissheng avatar May 15 '23 11:05 dennissheng

@lllyasviel yes, this is an optimization of decreasing loading time when switching stable diffusion model. In my test, this would decrease several seconds. How did you implement the loading of the Controlnet cache, keeping it unaffected by SD model switching

Xelawk avatar May 29 '23 03:05 Xelawk