hako-mikan / sd-webui-supermerger

model merge extention for stable diffusion web ui
GNU Affero General Public License v3.0
753 stars 112 forks source link

Feature request: Copy/save model config. #290

Closed groinge closed 9 months ago

groinge commented 1 year ago

Hey, this extension could really benefit for having options for copying config files from checkpoints, like selecting which input checkpoint to copy the config from and the option to save the config alongside the merged model. Currently supermerger will just use the config file from model A when loading the merged model, and it doesn't save a copy for new models.

I'm asking for this since I'm merging vpred models, which require a config file as otherwise they will just generate noise.

Thanks

hako-mikan commented 1 year ago

What is vpred models?

groinge commented 1 year ago

What is vpred models?

https://arxiv.org/abs/2305.08891 https://github.com/mindspore-lab/mindone/blob/master/examples/stable_diffusion_v2/v_prediction.md

Most V2 models have been trained with v prediction.

I'm actually not entirely sure if vpred is the reason the models I'm merging require a config file. Regardless, it would be a huge convenience if Supermerger could copy the config from one of the input models just like A1111's built-in merger is able to.

hako-mikan commented 11 months ago

Added new option copy config.