diff --git a/ultralytics/__init__.py b/ultralytics/__init__.py index a8283a253d..839ac6216c 100644 --- a/ultralytics/__init__.py +++ b/ultralytics/__init__.py @@ -1,6 +1,6 @@ # Ultralytics YOLO 🚀, AGPL-3.0 license -__version__ = "8.3.33" +__version__ = "8.3.34" import os diff --git a/ultralytics/models/fastsam/predict.py b/ultralytics/models/fastsam/predict.py index 9910237b0f..0fbe16ffe9 100644 --- a/ultralytics/models/fastsam/predict.py +++ b/ultralytics/models/fastsam/predict.py @@ -64,6 +64,9 @@ class FastSAMPredictor(SegmentationPredictor): if not isinstance(results, list): results = [results] for result in results: + if len(result) == 0: + prompt_results.append(result) + continue masks = result.masks.data if masks.shape[1:] != result.orig_shape: masks = scale_masks(masks[None], result.orig_shape)[0]