From b72b4f27eea7b800e3f1e93af4ce0ae8065d0bc1 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Wed, 29 Nov 2017 09:19:47 +0100 Subject: [PATCH] Cosmetics. --- cnn-svrt.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cnn-svrt.py b/cnn-svrt.py index 338e145..a6b9cab 100755 --- a/cnn-svrt.py +++ b/cnn-svrt.py @@ -442,7 +442,7 @@ class vignette_logger(): ) self.last_t = t -def save_examplar_vignettes(data_set, nb, name): +def save_exemplar_vignettes(data_set, nb, name): n = torch.randperm(data_set.nb_samples).narrow(0, 0, nb) for k in range(0, nb): @@ -493,7 +493,7 @@ for problem_number in map(int, args.problems.split(',')): model_filename = model.name + '_pb:' + \ str(problem_number) + '_ns:' + \ - int_to_suffix(args.nb_train_samples) + '.state' + int_to_suffix(args.nb_train_samples) + '.pth' nb_parameters = 0 for p in model.parameters(): nb_parameters += p.numel() @@ -529,8 +529,8 @@ for problem_number in map(int, args.problems.split(',')): ) if args.nb_exemplar_vignettes > 0: - save_examplar_vignettes(train_set, args.nb_exemplar_vignettes, - 'examplar_{:d}.png'.format(problem_number)) + save_exemplar_vignettes(train_set, args.nb_exemplar_vignettes, + 'exemplar_{:d}.png'.format(problem_number)) if args.validation_error_threshold > 0.0: validation_set = VignetteSet(problem_number, -- 2.39.5