Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
estija committed Jun 24, 2020
1 parent c3ae737 commit 07d5b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def train(d_par, d_model, vgg, n_epochs, n_batch, f, current_path, exp_folder, w
f.write('\n')
print('>%d, %d/%d, d=%.3f, mae=%.3f, mssim=%.3f, color=%.3f, vgg=%.5f' %(i+1, j+1, bat_per_epo, d_loss[0], d_loss[1], d_loss[2], d_loss[3], d_loss[4]))
filename = os.path.join(current_path, exp_folder, weights_file + '_%04d.h5' % (i+1))
d_save = d_par.get_layer('model_2')
d_save = d_par.get_layer('model_3')
d_save.save_weights(filename)
del raw
del canon
Expand Down

0 comments on commit 07d5b1c

Please sign in to comment.