Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a minor bug of experiment.py #2662

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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