Test DetectionModel base class.
(self)
| 106 | assert object_annotation3.category.name == category_name |
| 107 | |
| 108 | def test_detection_model(self) -> None: |
| 109 | """Test DetectionModel base class.""" |
| 110 | from sahi import DetectionModel |
| 111 | |
| 112 | MODEL_PATH = "model_path" |
| 113 | IMAGE_SIZE = 640 |
| 114 | detection_model = DetectionModel(model_path="model_path", image_size=IMAGE_SIZE, load_at_init=False) |
| 115 | assert detection_model.model_path == MODEL_PATH |
| 116 | assert detection_model.image_size == IMAGE_SIZE |
nothing calls this directly
no test coverage detected