set output folder to be sane with the cwd as a reference point

This commit is contained in:
mrq 2023-02-18 02:01:09 +00:00
parent 5ecf7da881
commit 73d9c3bd46

View File

@ -39,7 +39,7 @@ def parse(opt_path, is_train=True):
opt['path'][key] = osp.expanduser(path) opt['path'][key] = osp.expanduser(path)
else: else:
opt['path'] = {} 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: if is_train:
experiments_root = osp.join(opt['path']['root'], 'experiments', opt['name']) experiments_root = osp.join(opt['path']['root'], 'experiments', opt['name'])
opt['path']['experiments_root'] = experiments_root opt['path']['experiments_root'] = experiments_root