Skip to content

Commit

Permalink
fixing sahi with subset of class
Browse files Browse the repository at this point in the history
  • Loading branch information
shamspias committed Sep 10, 2024
1 parent 1548610 commit ba9ad5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/sahi_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ def __init__(self, debug,

def load_model(self, model_path):
"""Loads a detection model based on the specified type and path."""
print(self.supported_classes_map)
# print(self.supported_classes_map)
detection_model = AutoDetectionModel.from_pretrained(
model_type=self.model_type,
model=model_path,
confidence_threshold=0.1,
device=self.device,
# category_mapping=self.supported_classes_map,
# category_remapping=self.supported_classes_map,
)
return detection_model

Expand Down

0 comments on commit ba9ad5e

Please sign in to comment.