mirror of
https://github.com/lucidrains/DALLE2-pytorch.git
synced 2026-02-12 19:44:26 +01:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fbba0f9aaf |
@@ -629,7 +629,7 @@ class NoiseScheduler(nn.Module):
|
||||
|
||||
def calculate_v(self, x_start, t, noise = None):
|
||||
return (
|
||||
extract(self.sqrt_alphas_cumprod, t, x_start.shape) * noise +
|
||||
extract(self.sqrt_alphas_cumprod, t, x_start.shape) * noise -
|
||||
extract(self.sqrt_one_minus_alphas_cumprod, t, x_start.shape) * x_start
|
||||
)
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
__version__ = '1.11.0'
|
||||
__version__ = '1.11.1'
|
||||
|
||||
Reference in New Issue
Block a user