Skip to content

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMax2016 authored Sep 20, 2023
1 parent e3d98ea commit 23c96c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion grad_extend/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def train(hps, chkpt_path=None):
checkpoint = torch.load(hps.train.pretrain, map_location='cpu')
load_model(model, checkpoint['model'])
hps.train.learning_rate = 2e-5
# fine_tune
model.fine_tune()
else:
print_error(10 * '~' + "No Pretrain Model" + 10 * '~')

Expand Down Expand Up @@ -73,7 +75,7 @@ def train(hps, chkpt_path=None):

print('Start training...')
skip_diff_train = True
if initepoch > hps.train.fast_epochs:
if initepoch >= hps.train.fast_epochs:
skip_diff_train = False
for epoch in range(initepoch, hps.train.full_epochs + 1):

Expand Down

0 comments on commit 23c96c3

Please sign in to comment.