Skip to content

Commit

Permalink
Update training.py
Browse files Browse the repository at this point in the history
Wrong condition for loading previous model
  • Loading branch information
theojourdan authored Apr 2, 2024
1 parent 6abb81e commit 9229c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion training.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def train_single_scale(params, signals_list, fs_list, generators_list, noise_amp

reconstruction_noise = signal_padder(reconstruction_noise)

if scale_idx > 1:
if scale_idx >= 1:
netG.load_state_dict(
torch.load('%s/netGScale%d.pth' % (params.output_folder, scale_idx - 1), map_location=params.device))
netD.load_state_dict(
Expand Down

0 comments on commit 9229c63

Please sign in to comment.