Skip to content

Commit

Permalink
Merge branch 'dev' into ss/support-python-311
Browse files Browse the repository at this point in the history
  • Loading branch information
ssheorey authored Oct 23, 2023
2 parents 441ca08 + c62c4f5 commit 29be119
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions ml3d/tf/pipelines/object_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def run_test(self):
dataset = self.dataset
cfg = self.cfg

timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')

log_file_path = join(cfg.logs_dir, 'log_test_' + timestamp + '.txt')
log.info("Logging in file : {}".format(log_file_path))
Expand Down Expand Up @@ -111,7 +111,7 @@ def run_valid(self, epoch=0):
dataset = self.dataset
cfg = self.cfg

timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')

log_file_path = join(cfg.logs_dir, 'log_valid_' + timestamp + '.txt')
log.info("Logging in file : {}".format(log_file_path))
Expand Down Expand Up @@ -212,7 +212,7 @@ def run_train(self):

cfg = self.cfg

timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
log_file_path = join(cfg.logs_dir, 'log_train_' + timestamp + '.txt')
log.info("Logging in file : {}".format(log_file_path))
log.addHandler(logging.FileHandler(log_file_path))
Expand Down
4 changes: 2 additions & 2 deletions ml3d/tf/pipelines/semantic_segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def run_test(self):
cfg = self.cfg

self.load_ckpt(model.cfg.ckpt_path)
timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')

log_file_path = join(cfg.logs_dir, 'log_test_' + timestamp + '.txt')
log.info("Logging in file : {}".format(log_file_path))
Expand Down Expand Up @@ -192,7 +192,7 @@ def run_train(self):
cfg = self.cfg

log.info(model)
timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
log_file_path = join(cfg.logs_dir, 'log_train_' + timestamp + '.txt')
log.info("Logging in file : {}".format(log_file_path))
log.addHandler(logging.FileHandler(log_file_path))
Expand Down
6 changes: 3 additions & 3 deletions ml3d/torch/pipelines/object_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def run_test(self):

model.eval()

timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')

log.info("DEVICE : {}".format(device))
log_file_path = join(cfg.logs_dir, 'log_test_' + timestamp + '.txt')
Expand Down Expand Up @@ -145,7 +145,7 @@ def run_valid(self, epoch=0):

model.eval()

timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')

log.info("DEVICE : {}".format(device))
log_file_path = join(cfg.logs_dir, 'log_valid_' + timestamp + '.txt')
Expand Down Expand Up @@ -282,7 +282,7 @@ def run_train(self):

if rank == 0:
log.info("DEVICE : {}".format(device))
timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')

log_file_path = join(cfg.logs_dir,
'log_train_' + timestamp + '.txt')
Expand Down
4 changes: 2 additions & 2 deletions ml3d/torch/pipelines/semantic_segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def run_test(self):
model.eval()
self.metric_test = SemSegMetric()

timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')

log.info("DEVICE : {}".format(device))
log_file_path = join(cfg.logs_dir, 'log_test_' + timestamp + '.txt')
Expand Down Expand Up @@ -320,7 +320,7 @@ def run_train(self):
model.to(device)

log.info("DEVICE : {}".format(device))
timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
timestamp = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')

log_file_path = join(cfg.logs_dir, 'log_train_' + timestamp + '.txt')
log.info("Logging in file : {}".format(log_file_path))
Expand Down

0 comments on commit 29be119

Please sign in to comment.