Skip to content

Commit

Permalink
i (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
lllyasviel committed Aug 15, 2023
1 parent a5cff12 commit 446a4fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ def unet_forward_patched(self, x, timesteps=None, context=None, y=None, control=
h = h.type(x.dtype)
x0 = self.out(h)

alpha = 1.0 - ((timesteps / 999.0)[:, None, None, None].clone() ** 2.0)
alpha *= 0.01
alpha = 1.0 - (timesteps / 999.0)[:, None, None, None].clone()
alpha *= 0.002
degraded_x0 = gaussian_filter_2d(x0) * alpha + x0 * (1.0 - alpha)

x0 = x0 * uc_mask + degraded_x0 * (1.0 - uc_mask)
Expand Down
4 changes: 4 additions & 0 deletions update_log.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.0.29

* Fix overcook problem in 1.0.28

### 1.0.28

* SAG implemented
Expand Down

0 comments on commit 446a4fe

Please sign in to comment.