From b6cc25f4622917b0025d613d617b5ce9e23f07e9 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Sun, 18 Jun 2017 00:50:59 +0200 Subject: [PATCH] Renamed vignette_set.py to svrtset.py --- cnn-svrt.py | 6 +++--- vignette_set.py => svrtset.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename vignette_set.py => svrtset.py (97%) diff --git a/cnn-svrt.py b/cnn-svrt.py index 0d4b313..58035d2 100755 --- a/cnn-svrt.py +++ b/cnn-svrt.py @@ -41,7 +41,7 @@ from torchvision import datasets, transforms, utils # SVRT -import vignette_set +import svrtset ###################################################################### @@ -255,10 +255,10 @@ if args.nb_train_samples%args.batch_size > 0 or args.nb_test_samples%args.batch_ if args.compress_vignettes: log_string('using_compressed_vignettes') - VignetteSet = vignette_set.CompressedVignetteSet + VignetteSet = svrtset.CompressedVignetteSet else: log_string('using_uncompressed_vignettes') - VignetteSet = vignette_set.VignetteSet + VignetteSet = svrtset.VignetteSet for problem_number in range(1, 24): diff --git a/vignette_set.py b/svrtset.py similarity index 97% rename from vignette_set.py rename to svrtset.py index aef23d8..cbc71a3 100755 --- a/vignette_set.py +++ b/svrtset.py @@ -44,7 +44,7 @@ class VignetteSet: def __init__(self, problem_number, nb_samples, batch_size, cuda = False): if nb_samples%batch_size > 0: - print('nb_samples must be a mutiple of batch_size') + print('nb_samples must be a multiple of batch_size') raise self.cuda = cuda @@ -91,7 +91,7 @@ class CompressedVignetteSet: def __init__(self, problem_number, nb_samples, batch_size, cuda = False): if nb_samples%batch_size > 0: - print('nb_samples must be a mutiple of batch_size') + print('nb_samples must be a multiple of batch_size') raise self.cuda = cuda -- 2.39.5