From: Francois Fleuret Date: Sat, 17 Jun 2017 22:50:59 +0000 (+0200) Subject: Renamed vignette_set.py to svrtset.py X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=b6cc25f4622917b0025d613d617b5ce9e23f07e9;p=pysvrt.git Renamed vignette_set.py to svrtset.py --- 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