From b5d2aa9902825c6c652e3b08b19446d199b49590 Mon Sep 17 00:00:00 2001 From: Soroush Nasiriany Date: Fri, 8 Jul 2022 19:15:03 -0700 Subject: [PATCH] Expand path for output directory (#36) --- robomimic/utils/train_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robomimic/utils/train_utils.py b/robomimic/utils/train_utils.py index b25e969a..40fc110c 100644 --- a/robomimic/utils/train_utils.py +++ b/robomimic/utils/train_utils.py @@ -48,7 +48,7 @@ def get_exp_dir(config, auto_remove_exp_dir=False): time_str = datetime.datetime.fromtimestamp(t_now).strftime('%Y%m%d%H%M%S') # create directory for where to dump model parameters, tensorboard logs, and videos - base_output_dir = config.train.output_dir + base_output_dir = os.path.expanduser(config.train.output_dir) if not os.path.isabs(base_output_dir): # relative paths are specified relative to robomimic module location base_output_dir = os.path.join(robomimic.__path__[0], base_output_dir)