Fixing logging folder
This commit is contained in:
parent
95a97fd91a
commit
1779da4757
@ -105,8 +105,8 @@ all_robust = [
|
||||
"add_edge",
|
||||
"remove_edge",
|
||||
"remove_node",
|
||||
"pgd",
|
||||
"fgsm",
|
||||
# "pgd",
|
||||
# "fgsm",
|
||||
"no_attack",
|
||||
]
|
||||
all_sparsity = ["l0"]
|
||||
@ -716,7 +716,6 @@ class ExplainingOutline(object):
|
||||
makedirs(self.out_dir)
|
||||
|
||||
now_str = now.strftime("month=%m-day=%d-year=%Y-hour=%H-minute=%M-second=%S")
|
||||
set_printing(f"{self.out_dir}/logging-{now_str}.log")
|
||||
|
||||
dump_cfg(self.cfg, os.path.join(self.out_dir, "config.yaml"))
|
||||
write_json(self.model_info, os.path.join(self.out_dir, "info.json"))
|
||||
@ -736,6 +735,8 @@ class ExplainingOutline(object):
|
||||
os.path.join(self.explainer_path, self.explaining_cfg.cfg_dest),
|
||||
)
|
||||
|
||||
makedirs(os.path.join(self.explainer_path, "logs"))
|
||||
set_printing(f"{self.explainer_path}/logs/{now_str}.log")
|
||||
logging.info("Setting up experiment")
|
||||
logging.info("Date and Time: %s", now)
|
||||
logging.info("Save experiment to %s", self.out_dir)
|
||||
|
Loading…
Reference in New Issue
Block a user