hako-mikan / sd-webui-supermerger

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

recent commits cause merged models to lose model layers, rendering them untrainable in kohya_ss #255

Closed SQCU closed 1 year ago

SQCU commented 1 year ago

https://github.com/hako-mikan/sd-webui-supermerger/commit/64a40445b25e49f3cac3f24b3e7b338e3caa258f isolated problem to a commit from the same day as this. reverting to d5decbb fixes the problem. attaching examples of the messed up merged models in the sd-webui-model-toolkit extension and in training scripts.

because the issue has already been resolved (by reverting to a previous version) I do not think any more information is needed to address the problem for other users. firefox_2023-09-27_16-29-11 cmd_2023-09-27_23-50-15

hako-mikan commented 1 year ago

So when merging the two models, a specific key gets lost. Does this phenomenon occur with all models?

SQCU commented 1 year ago

Yes, this error I experienced affected all of the different models I attempted merging. Only keys from the clip models were ever lost, and every model I merged would produce a valid U-net and Vae model with all of the necessary keys.

I am away from my inference computer at the moment and cannot retrieve all of my notes, but I have several working supermerged U-nets from these corrupted merges. These particular u-nets work as expected if they are substituted as the u-net portion of another working model.

On Wed, Oct 4, 2023, 3:43 AM hako-mikan @.***> wrote:

So when merging the two models, a specific key gets lost. Does this phenomenon occur with all models?

— Reply to this email directly, view it on GitHub https://github.com/hako-mikan/sd-webui-supermerger/issues/255#issuecomment-1746614646, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ2HDGUWZV6WTAP4BCTDWQLX5U4VDAVCNFSM6AAAAAA5KREJCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBWGYYTINRUGY . You are receiving this because you authored the thread.Message ID: @.***>

hako-mikan commented 1 year ago

Maybe fixed.