what is checkpoint merger for and why?
I downloaded several checkpoint files. On web ui there is the checkpoint merger. My question is why people merge checkpoints, and what advantages does it have apart from saving disk space? thank you!
About this post
- Posted
- Archived
- Score
- 15 · 89% up
- Kind
- Text
- ID
- yojca1
23 comments
A youtuber researched and explained this really well: https://youtu.be/dfMLrytpfAU
There is no reliable methods discovered yet that I've seen. It's all trail and error. Personally I just hot swap as needed and use inpainting a lot.
Can we train inpainting model ?
Deleted before we saved it.
StableDiffusion can be fine-tuned into specific content, which gives its offbranches some strengths and weaknesses. The most well known existing StableDiffusion branches include WaifuDiffusion (model essentially trained on a ton of manga and hentai -images) and leaked NovelAi's model trained on some (AFAIK) unspecified anime -data. Some people somehow mix these branches together producing in-between mixed models. For example a branch may be better at human anatomy, but also easily produce images sexual in nature due to big chunk of its mixed-in training data being porn.
Thank you, that has a lot of sense why people mix them. So the themes and styles are joined together.
I still don't even know what a checkpoint is, let alone a checkpoint merger.
Checkpoints are the weights of the model. A model trained on a giant dataset of only labeled cat pictures will end up with different weights than a model trained on only labeled car pictures. However, the number of weights you have are the same if you had the same configuration and same code. This means you can literally average all the data together and try to get something in the middle. this doesn’t work as well the more different the two models are, but in practice most people are starting from the pretrained Stable Diffusion models and just fine tuning, so most of the weights are the same/similar anyway.
Another way to think about it is Checkpoint = save point in a video game. Imagine you have two Pokémon save files and you average them to try and get one that has your favorite Pokémon from both. The save file (checkpoint )has all your unique data but it doesn’t contain the game’s code on what to do with that data.
Thank you for taking the time to explain this. You're gonna hate me but...I don't know what weights are, either. But your analogy to Pokemon does help a bit. Thank you!
I've seen people who have mixed some very specific models about styles to get the best of both worlds. But I have no idea how they do it
Mixing a person and a style for exemple. From my experience it isn’t working that well, though.
do you mean mixing two dreambooth cpk files?
Exactly but It seems to dilute the results.
It's for mixing/blending different models.