diff options
author | Jan Buethe <jbuethe@amazon.de> | 2024-01-12 14:02:53 +0300 |
---|---|---|
committer | Jan Buethe <jbuethe@amazon.de> | 2024-01-12 14:02:53 +0300 |
commit | 8abdd0665b81bbef07b5020dc30e28f4f84e4f89 (patch) | |
tree | 8ecbc127f04f5326439daefebe684fc8408ae6f2 | |
parent | 79efc095929869500870a70be0f75b17c700150f (diff) |
fixing git repo information in dnn/torch/osce
-rw-r--r-- | dnn/torch/osce/adv_train_model.py | 2 | ||||
-rw-r--r-- | dnn/torch/osce/adv_train_vocoder.py | 2 | ||||
-rw-r--r-- | dnn/torch/osce/train_model.py | 2 | ||||
-rw-r--r-- | dnn/torch/osce/train_vocoder.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/dnn/torch/osce/adv_train_model.py b/dnn/torch/osce/adv_train_model.py index dcfb65f1..7db859e4 100644 --- a/dnn/torch/osce/adv_train_model.py +++ b/dnn/torch/osce/adv_train_model.py @@ -111,7 +111,7 @@ os.makedirs(checkpoint_dir, exist_ok=True) if has_git: working_dir = os.path.split(__file__)[0] try: - repo = git.Repo(working_dir) + repo = git.Repo(working_dir, search_parent_directories=True) setup['repo'] = dict() hash = repo.head.object.hexsha urls = list(repo.remote().urls) diff --git a/dnn/torch/osce/adv_train_vocoder.py b/dnn/torch/osce/adv_train_vocoder.py index 754a1529..73e3c9b0 100644 --- a/dnn/torch/osce/adv_train_vocoder.py +++ b/dnn/torch/osce/adv_train_vocoder.py @@ -111,7 +111,7 @@ os.makedirs(checkpoint_dir, exist_ok=True) if has_git: working_dir = os.path.split(__file__)[0] try: - repo = git.Repo(working_dir) + repo = git.Repo(working_dir, search_parent_directories=True) setup['repo'] = dict() hash = repo.head.object.hexsha urls = list(repo.remote().urls) diff --git a/dnn/torch/osce/train_model.py b/dnn/torch/osce/train_model.py index 13a20528..8e5c515d 100644 --- a/dnn/torch/osce/train_model.py +++ b/dnn/torch/osce/train_model.py @@ -117,7 +117,7 @@ os.makedirs(checkpoint_dir, exist_ok=True) if has_git: working_dir = os.path.split(__file__)[0] try: - repo = git.Repo(working_dir) + repo = git.Repo(working_dir, search_parent_directories=True) setup['repo'] = dict() hash = repo.head.object.hexsha urls = list(repo.remote().urls) diff --git a/dnn/torch/osce/train_vocoder.py b/dnn/torch/osce/train_vocoder.py index f4d8157d..590e6d1a 100644 --- a/dnn/torch/osce/train_vocoder.py +++ b/dnn/torch/osce/train_vocoder.py @@ -107,7 +107,7 @@ os.makedirs(checkpoint_dir, exist_ok=True) if has_git: working_dir = os.path.split(__file__)[0] try: - repo = git.Repo(working_dir) + repo = git.Repo(working_dir, search_parent_directories=True) setup['repo'] = dict() hash = repo.head.object.hexsha urls = list(repo.remote().urls) |