Skip to content

Commit

Permalink
small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timonpalm committed Nov 20, 2024
1 parent 2853a8c commit 1c1aff8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sahi/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def __init__(
if bbox_from_segmentation is not None:
bbox = bbox_from_segmentation
else:
raise ValueError("Invalid segmentation mask.")
print("Invalid segmentation mask.")
else:
self.mask = None

Expand Down
2 changes: 1 addition & 1 deletion sahi/models/langsam.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def perform_inference(self, image: np.ndarray):
raise ValueError("Model is not loaded, load it by calling .load_model()")

image_pil = Image.fromarray(image)
prediction_result = self.model.predict([image_pil], ["fish."])
prediction_result = self.model.predict([image_pil], ["small fish"])

self._original_predictions = prediction_result

Expand Down

0 comments on commit 1c1aff8

Please sign in to comment.