Skip to content

Commit

Permalink
Add support for DeepSparse dynamic image pipelines (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwitiderrick authored Mar 21, 2023
1 parent de68008 commit f9bd8f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sahi/models/yolov5sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def load_model(self):
from deepsparse import Pipeline

try:
model = Pipeline.create(task="yolo", model_path=self.model_path)
model = Pipeline.create(task="yolo", model_path=self.model_path, image_size=self.image_size)
self.set_model(model)
except Exception as e:
raise TypeError("Could not load the model: ", e)
Expand Down

0 comments on commit f9bd8f3

Please sign in to comment.