From 73d9c3bd4686e52740da4851f4a5b15bfe52ff65 Mon Sep 17 00:00:00 2001 From: mrq Date: Sat, 18 Feb 2023 02:01:09 +0000 Subject: [PATCH] set output folder to be sane with the cwd as a reference point --- codes/utils/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codes/utils/options.py b/codes/utils/options.py index 5be1f37f..b4f4c917 100644 --- a/codes/utils/options.py +++ b/codes/utils/options.py @@ -39,7 +39,7 @@ def parse(opt_path, is_train=True): opt['path'][key] = osp.expanduser(path) else: opt['path'] = {} - opt['path']['root'] = osp.abspath(osp.join(__file__, osp.pardir, osp.pardir, osp.pardir)) + opt['path']['root'] = osp.abspath(osp.getcwd()) #osp.join(__file__, osp.pardir, osp.pardir, osp.pardir)) if is_train: experiments_root = osp.join(opt['path']['root'], 'experiments', opt['name']) opt['path']['experiments_root'] = experiments_root