Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Worromots committed May 23, 2022
1 parent d965bd8 commit 3d42692
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ def _get_model(self):
return tfnet

def _get_optimizer(self, model):
return torch.optim.SGD([
{"params": model.patten.parameters(), "lr": self.cfg.learn_rate_seg}
],
lr=self.cfg.learn_rate)
# return torch.optim.SGD([
# {"params": model.patten.parameters(), "lr": self.cfg.learn_rate_seg}
# ],
# lr=self.cfg.learn_rate)
return torch.optim.SGD(model.parameters(), self.cfg.LEARNING_RATE)


def _train_model(self, device, model, train_loader, criterion_seg, criterion_dec, optimizer, test_loader,
tensorboard_writer):
Expand Down

0 comments on commit 3d42692

Please sign in to comment.