Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-joan authored and fcakyon committed Nov 25, 2023
1 parent 131bc0b commit 14c812b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_yolov8onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_load_model(self):
)

# Test setting options for onnxruntime
yolov8_onnx_detection_model.load_model(enable_mem_pattern=False)
yolov8_onnx_detection_model.load_model({"enable_mem_pattern": False})

self.assertNotEqual(yolov8_onnx_detection_model.model, None)

Expand Down Expand Up @@ -85,7 +85,7 @@ def test_perform_inference(self):
best_bbox = boxes[best_box_index]

# Compare
desired_bbox = [833, 309, 872, 342]
desired_bbox = [603, 239, 629, 259]
predicted_bbox = best_bbox.tolist()
margin = 2

Expand Down

0 comments on commit 14c812b

Please sign in to comment.