lllyasviel commited on
Commit
301f98f
·
1 Parent(s): c230ef7
Files changed (2) hide show
  1. modules/patch.py +2 -2
  2. update_log.md +4 -0
modules/patch.py CHANGED
@@ -345,8 +345,8 @@ def unet_forward_patched(self, x, timesteps=None, context=None, y=None, control=
345
  h = h.type(x.dtype)
346
  x0 = self.out(h)
347
 
348
- alpha = 1.0 - ((timesteps / 999.0)[:, None, None, None].clone() ** 2.0)
349
- alpha *= 0.01
350
  degraded_x0 = gaussian_filter_2d(x0) * alpha + x0 * (1.0 - alpha)
351
 
352
  x0 = x0 * uc_mask + degraded_x0 * (1.0 - uc_mask)
 
345
  h = h.type(x.dtype)
346
  x0 = self.out(h)
347
 
348
+ alpha = 1.0 - (timesteps / 999.0)[:, None, None, None].clone()
349
+ alpha *= 0.002
350
  degraded_x0 = gaussian_filter_2d(x0) * alpha + x0 * (1.0 - alpha)
351
 
352
  x0 = x0 * uc_mask + degraded_x0 * (1.0 - uc_mask)
update_log.md CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  ### 1.0.28
2
 
3
  * SAG implemented
 
1
+ ### 1.0.29
2
+
3
+ * Fix overcook problem in 1.0.28
4
+
5
  ### 1.0.28
6
 
7
  * SAG implemented