    def reset_predictor(self) -> None:
        """
        Resets the image embeddings and other state variables.
        """
        self._is_image_set = False
        self._features = None
        self._orig_hw = None
        self._is_batch = False
Resets the image embeddings and other state variables.
third_parts/sam2/sam2_image_predictor.py