projects
/
pysvrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Append to the log instead of overwriting it.
[pysvrt.git]
/
cnn-svrt.py
diff --git
a/cnn-svrt.py
b/cnn-svrt.py
index
704b003
..
e5ecf76
100755
(executable)
--- a/
cnn-svrt.py
+++ b/
cnn-svrt.py
@@
-77,11
+77,15
@@
parser.add_argument('--test_loaded_models',
type = distutils.util.strtobool, default = 'False',
help = 'Should we compute the test errors of loaded models')
type = distutils.util.strtobool, default = 'False',
help = 'Should we compute the test errors of loaded models')
+parser.add_argument('--problems',
+ type = str, default = '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23',
+ help = 'What problems to process')
+
args = parser.parse_args()
######################################################################
args = parser.parse_args()
######################################################################
-log_file = open(args.log_file, '
w
')
+log_file = open(args.log_file, '
a
')
pred_log_t = None
print(Fore.RED + 'Logging into ' + args.log_file + Style.RESET_ALL)
pred_log_t = None
print(Fore.RED + 'Logging into ' + args.log_file + Style.RESET_ALL)
@@
-269,6
+273,8
@@
if args.nb_train_samples%args.batch_size > 0 or args.nb_test_samples%args.batch_
print('The number of samples must be a multiple of the batch size.')
raise
print('The number of samples must be a multiple of the batch size.')
raise
+log_string('############### start ###############')
+
if args.compress_vignettes:
log_string('using_compressed_vignettes')
VignetteSet = svrtset.CompressedVignetteSet
if args.compress_vignettes:
log_string('using_compressed_vignettes')
VignetteSet = svrtset.CompressedVignetteSet
@@
-276,7
+282,7
@@
else:
log_string('using_uncompressed_vignettes')
VignetteSet = svrtset.VignetteSet
log_string('using_uncompressed_vignettes')
VignetteSet = svrtset.VignetteSet
-for problem_number in
range(1, 24
):
+for problem_number in
map(int, args.problems.split(',')
):
log_string('############### problem ' + str(problem_number) + ' ###############')
log_string('############### problem ' + str(problem_number) + ' ###############')