Skip to content

Instantly share code, notes, and snippets.

@omarsar
Created October 15, 2018 09:15
Show Gist options
  • Save omarsar/6371a22045cef20548edfcf483a0ed14 to your computer and use it in GitHub Desktop.
Save omarsar/6371a22045cef20548edfcf483a0ed14 to your computer and use it in GitHub Desktop.
model = mt_models.Unet(drop_rate=0.4, bn_momentum=0.1)
model.cuda()
num_epochs = 10
initial_lr = 0.001
optimizer = optim.Adam(model.parameters(), lr=initial_lr)
scheduler = optim.lr_scheduler.CosineAnnealingLR(optimizer, num_epochs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment