Unverified Commit 33f9a1f4 authored by Michael Baumgartner's avatar Michael Baumgartner Committed by GitHub
Browse files

Merge pull request #74 from kapsner/main

fix: downgrading torchmetrics due to import error
parents 4c899398 820546d6
...@@ -39,11 +39,15 @@ def load_dataset_info(task_dir: Pathlike) -> dict: ...@@ -39,11 +39,15 @@ def load_dataset_info(task_dir: Pathlike) -> dict:
""" """
task_dir = Path(task_dir) task_dir = Path(task_dir)
yaml_path = task_dir / "dataset.yaml" yaml_path = task_dir / "dataset.yaml"
yaml_path_fallback = task_dir / "dataset.yml"
json_path = task_dir / "dataset.json" json_path = task_dir / "dataset.json"
if yaml_path.is_file(): if yaml_path.is_file():
with open(yaml_path, 'r') as f: with open(yaml_path, 'r') as f:
data = yaml.full_load(f) data = yaml.full_load(f)
elif yaml_path_fallback.is_file():
with open(yaml_path_fallback, 'r') as f:
data = yaml.full_load(f)
elif json_path.is_file(): elif json_path.is_file():
with open(json_path, "r") as f: with open(json_path, "r") as f:
data = json.load(f) data = json.load(f)
......
...@@ -17,3 +17,4 @@ mlflow ...@@ -17,3 +17,4 @@ mlflow
GitPython GitPython
matplotlib matplotlib
seaborn seaborn
torchmetrics>=0.7.0,<=0.7.3
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment