MCPcopy
hub / github.com/obss/sahi / test_detection_model

Method test_detection_model

tests/test_high_level_api.py:108–116  ·  view source on GitHub ↗

Test DetectionModel base class.

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

DetectionModelClass · 0.90

Tested by

no test coverage detected