Don't add relative paths to experiment name (#871)

dont add relative paths to exp name
This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-10-31 12:27:58 -07:00
1 parent 96a7853cd0
commit cd468a8e94
1 file changed
+1 -1
+1 -1
View File
@@ -241,7 +241,7 @@ class Config(PrintableConfig):
def set_experiment_name(self) -> None:
"""Dynamically set the experiment name"""
if self.experiment_name is None:
self.experiment_name = str(self.pipeline.datamanager.dataparser.data).replace("/", "-")
self.experiment_name = str(self.pipeline.datamanager.dataparser.data).replace("../", "").replace("/", "-")
def get_base_dir(self) -> Path:
"""Retrieve the base directory to set relative paths"""