diff --git a/invokeai/backend/image_util/grounding_dino/grounding_dino_pipeline.py b/invokeai/backend/image_util/grounding_dino/grounding_dino_pipeline.py index 68c2b8decc..772e8c0dd8 100644 --- a/invokeai/backend/image_util/grounding_dino/grounding_dino_pipeline.py +++ b/invokeai/backend/image_util/grounding_dino/grounding_dino_pipeline.py @@ -18,6 +18,7 @@ class GroundingDinoPipeline(RawModel): def detect(self, image: Image.Image, candidate_labels: list[str], threshold: float = 0.1) -> list[DetectionResult]: results = self._pipeline(image=image, candidate_labels=candidate_labels, threshold=threshold) + assert results is not None results = [DetectionResult.model_validate(result) for result in results] return results