Closed iurisilvio closed 1 month ago
Hard to fix, because it probably breaks compatibility.
roboflow/models/video.py:59: error: Signature of "predict" incompatible with supertype "InferenceModel" [override] roboflow/models/video.py:59: note: Superclass: roboflow/models/video.py:59: note: def predict(self, image_path: Any, prediction_type: Any = ..., **kwargs: Any) -> Any roboflow/models/video.py:59: note: Subclass: roboflow/models/video.py:59: note: def predict(self, video_path: str, inference_type: str, fps: int = ..., additional_models: Optional[List[Any]] = ...) -> Tuple[str, str] roboflow/models/video.py:127: error: "VideoInferenceModel" has no attribute "inference_type" [attr-defined] roboflow/models/semantic_segmentation.py:21: error: Signature of "predict" incompatible with supertype "InferenceModel" [override] roboflow/models/semantic_segmentation.py:21: note: Superclass: roboflow/models/semantic_segmentation.py:21: note: def predict(self, image_path: Any, prediction_type: Any = ..., **kwargs: Any) -> Any roboflow/models/semantic_segmentation.py:21: note: Subclass: roboflow/models/semantic_segmentation.py:21: note: def predict(self, image_path: str, confidence: int = ...) -> Any
I "fixed" it ignoring the errors.
Hard to fix, because it probably breaks compatibility.