projects
/
pysvrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aa372b
)
Replaced SGD with Adam, make the learning rate 1e-1 again.
author
Francois Fleuret
<francois@fleuret.org>
Thu, 15 Jun 2017 12:32:43 +0000
(14:32 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Thu, 15 Jun 2017 12:32:43 +0000
(14:32 +0200)
cnn-svrt.py
patch
|
blob
|
history
diff --git
a/cnn-svrt.py
b/cnn-svrt.py
index
35c664f
..
ad73f0c
100755
(executable)
--- a/
cnn-svrt.py
+++ b/
cnn-svrt.py
@@
-65,7
+65,7
@@
args = parser.parse_args()
log_file = open(args.log_file, 'w')
-print(
'Logging into ' + args.log_file
)
+print(
Fore.RED + 'Logging into ' + args.log_file + Style.RESET_ALL
)
def log_string(s):
s = Fore.GREEN + time.ctime() + Style.RESET_ALL + ' ' + \
@@
-112,7
+112,7
@@
def train_model(train_input, train_target):
model.cuda()
criterion.cuda()
- optimizer, bs = optim.
SGD(model.parameters(), lr = 1e-2
), 100
+ optimizer, bs = optim.
Adam(model.parameters(), lr = 1e-1
), 100
for k in range(0, args.nb_epochs):
acc_loss = 0.0