Adaptation of the merging method described in the paper - Git Re-Basin: Merging Models modulo Permutation Symmetries (https://arxiv.org/abs/2209.04836) for Stable Diffusion
Using the latest code. Need an additional check to prevent division by 0. Was merging sd-v1-4 dreambooth model into sd-v1-5
FINDING PERMUTATIONS
Traceback (most recent call last):
File "SD_rebasin_merge.py", line 72, in <module>
new_alpha = y / (y + z)
ZeroDivisionError: division by zero
Using the latest code. Need an additional check to prevent division by 0. Was merging sd-v1-4 dreambooth model into sd-v1-5