File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ def run_test(self):
62
62
dataset = self .dataset
63
63
cfg = self .cfg
64
64
65
- timestamp = datetime .now ().strftime ('%Y-%m-%d_%H:%M: %S' )
65
+ timestamp = datetime .now ().strftime ('%Y-%m-%d_%H-%M- %S' )
66
66
67
67
log_file_path = join (cfg .logs_dir , 'log_test_' + timestamp + '.txt' )
68
68
log .info ("Logging in file : {}" .format (log_file_path ))
@@ -111,7 +111,7 @@ def run_valid(self, epoch=0):
111
111
dataset = self .dataset
112
112
cfg = self .cfg
113
113
114
- timestamp = datetime .now ().strftime ('%Y-%m-%d_%H:%M: %S' )
114
+ timestamp = datetime .now ().strftime ('%Y-%m-%d_%H-%M- %S' )
115
115
116
116
log_file_path = join (cfg .logs_dir , 'log_valid_' + timestamp + '.txt' )
117
117
log .info ("Logging in file : {}" .format (log_file_path ))
@@ -212,7 +212,7 @@ def run_train(self):
212
212
213
213
cfg = self .cfg
214
214
215
- timestamp = datetime .now ().strftime ('%Y-%m-%d_%H:%M: %S' )
215
+ timestamp = datetime .now ().strftime ('%Y-%m-%d_%H-%M- %S' )
216
216
log_file_path = join (cfg .logs_dir , 'log_train_' + timestamp + '.txt' )
217
217
log .info ("Logging in file : {}" .format (log_file_path ))
218
218
log .addHandler (logging .FileHandler (log_file_path ))
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ def run_test(self):
147
147
cfg = self .cfg
148
148
149
149
self .load_ckpt (model .cfg .ckpt_path )
150
- timestamp = datetime .now ().strftime ('%Y-%m-%d_%H:%M: %S' )
150
+ timestamp = datetime .now ().strftime ('%Y-%m-%d_%H-%M- %S' )
151
151
152
152
log_file_path = join (cfg .logs_dir , 'log_test_' + timestamp + '.txt' )
153
153
log .info ("Logging in file : {}" .format (log_file_path ))
@@ -192,7 +192,7 @@ def run_train(self):
192
192
cfg = self .cfg
193
193
194
194
log .info (model )
195
- timestamp = datetime .now ().strftime ('%Y-%m-%d_%H:%M: %S' )
195
+ timestamp = datetime .now ().strftime ('%Y-%m-%d_%H-%M- %S' )
196
196
log_file_path = join (cfg .logs_dir , 'log_train_' + timestamp + '.txt' )
197
197
log .info ("Logging in file : {}" .format (log_file_path ))
198
198
log .addHandler (logging .FileHandler (log_file_path ))
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ def run_test(self):
85
85
86
86
model .eval ()
87
87
88
- timestamp = datetime .now ().strftime ('%Y-%m-%d_%H:%M: %S' )
88
+ timestamp = datetime .now ().strftime ('%Y-%m-%d_%H-%M- %S' )
89
89
90
90
log .info ("DEVICE : {}" .format (device ))
91
91
log_file_path = join (cfg .logs_dir , 'log_test_' + timestamp + '.txt' )
@@ -145,7 +145,7 @@ def run_valid(self, epoch=0):
145
145
146
146
model .eval ()
147
147
148
- timestamp = datetime .now ().strftime ('%Y-%m-%d_%H:%M: %S' )
148
+ timestamp = datetime .now ().strftime ('%Y-%m-%d_%H-%M- %S' )
149
149
150
150
log .info ("DEVICE : {}" .format (device ))
151
151
log_file_path = join (cfg .logs_dir , 'log_valid_' + timestamp + '.txt' )
@@ -282,7 +282,7 @@ def run_train(self):
282
282
283
283
if rank == 0 :
284
284
log .info ("DEVICE : {}" .format (device ))
285
- timestamp = datetime .now ().strftime ('%Y-%m-%d_%H:%M: %S' )
285
+ timestamp = datetime .now ().strftime ('%Y-%m-%d_%H-%M- %S' )
286
286
287
287
log_file_path = join (cfg .logs_dir ,
288
288
'log_train_' + timestamp + '.txt' )
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ def run_test(self):
190
190
model .eval ()
191
191
self .metric_test = SemSegMetric ()
192
192
193
- timestamp = datetime .now ().strftime ('%Y-%m-%d_%H:%M: %S' )
193
+ timestamp = datetime .now ().strftime ('%Y-%m-%d_%H-%M- %S' )
194
194
195
195
log .info ("DEVICE : {}" .format (device ))
196
196
log_file_path = join (cfg .logs_dir , 'log_test_' + timestamp + '.txt' )
@@ -320,7 +320,7 @@ def run_train(self):
320
320
model .to (device )
321
321
322
322
log .info ("DEVICE : {}" .format (device ))
323
- timestamp = datetime .now ().strftime ('%Y-%m-%d_%H:%M: %S' )
323
+ timestamp = datetime .now ().strftime ('%Y-%m-%d_%H-%M- %S' )
324
324
325
325
log_file_path = join (cfg .logs_dir , 'log_train_' + timestamp + '.txt' )
326
326
log .info ("Logging in file : {}" .format (log_file_path ))
You can’t perform that action at this time.
0 commit comments