Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
s1dlx committed Jul 21, 2024
1 parent 2780321 commit 04af2c8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sd_meh/rebasin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2200,11 +2200,9 @@ def apply_permutation(ps: PermutationSpec, perm, params):
def update_model_a(ps: PermutationSpec, perm, model_a, new_alpha):
for k in model_a:
try:
perm_params = get_permuted_param(
ps, perm, k, model_a
)
perm_params = get_permuted_param(ps, perm, k, model_a)
model_a[k] = model_a[k] * (1 - new_alpha) + new_alpha * perm_params
except RuntimeError: # dealing with pix2pix and inpainting models
except RuntimeError: # dealing with pix2pix and inpainting models
continue
return model_a

Expand Down

0 comments on commit 04af2c8

Please sign in to comment.