Skip to content

Commit

Permalink
Fix a minor bug of experiment.py (openvinotoolkit#2662)
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
eunwoosh authored Nov 22, 2023
1 parent 6b8729a commit 0fbfbb1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ class MMCVExpParser(BaseExpParser):
def parse_exp_log(self):
"""Parse experiment log."""
for task_dir in (self._workspace / "outputs").iterdir():
if task_dir.is_symlink():
continue

if "train" in str(task_dir.name):
# test score
eval_files = list(task_dir.glob("performance.json"))
Expand Down Expand Up @@ -297,6 +300,9 @@ class AnomalibExpParser(BaseExpParser):
def parse_exp_log(self):
"""Parse experiment log."""
for task_dir in (self._workspace / "outputs").iterdir():
if task_dir.is_symlink():
continue

if "train" in str(task_dir.name):
# test score
eval_files = list(task_dir.glob("performance.json"))
Expand Down

0 comments on commit 0fbfbb1

Please sign in to comment.