Skip to content

Commit

Permalink
Debug: set default dataset path
Browse files Browse the repository at this point in the history
  • Loading branch information
yihong1120 committed Jun 29, 2024
1 parent c6cc556 commit 23dac0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/YOLOv8-Evaluation/evaluate_yolov8.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ def evaluate(self) -> Dict[str, Any]:
Returns:
Dict[str, Any]: The results from the model evaluation.
"""
print(f"Evaluating model with data path: {self.data_path}")
# The 'val' method is used for evaluation, 'test' could also be used as per the requirement.
return self.model.val()
return self.model.val(data=self.data_path)

def parse_arguments() -> argparse.Namespace:
"""
Expand Down

0 comments on commit 23dac0b

Please sign in to comment.