projects
/
pysvrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74a8724
)
Minor ETA fix.
author
Francois Fleuret
<francois@fleuret.org>
Fri, 16 Jun 2017 13:45:55 +0000
(15:45 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Fri, 16 Jun 2017 13:45:55 +0000
(15:45 +0200)
cnn-svrt.py
patch
|
blob
|
history
diff --git
a/cnn-svrt.py
b/cnn-svrt.py
index
06e58bd
..
592f982
100755
(executable)
--- a/
cnn-svrt.py
+++ b/
cnn-svrt.py
@@
-159,7
+159,7
@@
def train_model(model, train_set):
loss.backward()
optimizer.step()
log_string('train_loss {:d} {:f}'.format(e + 1, acc_loss))
- dt = (time.time() - t) / (e + 1)
+ dt = (time.time() -
start_
t) / (e + 1)
print(Fore.CYAN + 'ETA ' + time.ctime(time.time() + dt * (args.nb_epochs - e)) + Style.RESET_ALL)
return model