Skip to content

Commit

Permalink
fixes here and there
Browse files Browse the repository at this point in the history
  • Loading branch information
arseny committed Jun 12, 2021
1 parent dda565b commit 1e9d48f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, config, train: DataLoader, val: DataLoader):

def train(self):
self._init_params()
for epoch in range(0, config['num_epochs']):
for epoch in range(0, self.config['num_epochs']):
if (epoch == self.warmup_epochs) and not (self.warmup_epochs == 0):
self.netG.module.unfreeze()
self.optimizer_G = self._get_optim(self.netG.parameters())
Expand Down

0 comments on commit 1e9d48f

Please sign in to comment.