projects
/
pytorch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
317cc21
)
Update.
author
Francois Fleuret
<francois@fleuret.org>
Fri, 12 Aug 2022 08:32:43 +0000
(10:32 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Fri, 12 Aug 2022 08:32:43 +0000
(10:32 +0200)
minidiffusion.py
patch
|
blob
|
history
diff --git
a/minidiffusion.py
b/minidiffusion.py
index
6855752
..
a386a12
100755
(executable)
--- a/
minidiffusion.py
+++ b/
minidiffusion.py
@@
-48,6
+48,7
@@
alpha_bar = alpha.log().cumsum(0).exp()
sigma = beta.sqrt()
for k in range(nb_epochs):
+
acc_loss = 0
optimizer = torch.optim.Adam(model.parameters(), lr = 1e-4 * (1 - k / nb_epochs) )