Skip to content

Commit

Permalink
DenseNet161 with SGD
Browse files Browse the repository at this point in the history
  • Loading branch information
Junhong Xu committed Jun 9, 2017
1 parent 6454f31 commit 9c75584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trainers/train_densenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def train(epoch):
criterion = MultiLabelSoftMarginLoss()
net = densenet169(pretrained=False)
logger = Logger('../log/', NAME)
optimizer = optim.SGD(lr=1e-1, params=net.parameters(), weight_decay=5e-4, momentum=0.8, nesterov=True)
optimizer = optim.SGD(lr=1e-1, params=net.parameters(), weight_decay=5e-4, momentum=0.9, nesterov=True)
# optimizer = get_optimizer(net, False, 1e-4, 1e-4)
# optimizer = optim.Adam(params=net.parameters(), lr=5e-4, weight_decay=5e-4)
net.cuda()
Expand Down

0 comments on commit 9c75584

Please sign in to comment.