Skip to content

Commit

Permalink
debug1
Browse files Browse the repository at this point in the history
  • Loading branch information
King-of-Infinite-Space committed Sep 30, 2017
1 parent 86173a5 commit 57dee01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train_placesCNN.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def main():
if args.mode >= 2:
for param in model.module.layer4.parameters():
param.requires_grad = True
optimizer = torch.optim.SGD([model.module.fc.parameters(), model.module.layer4.parameters()], args.lr,
optimizer = torch.optim.SGD(list(model.module.fc.parameters())+list(model.module.layer4.parameters()), args.lr,
momentum=args.momentum,
weight_decay=args.weight_decay)
'''optim.SGD([
Expand Down

0 comments on commit 57dee01

Please sign in to comment.