    def _embed_masks(self, masks: torch.Tensor) -> torch.Tensor:
        """Embeds mask inputs."""
        mask_embedding = self.mask_downscaling(masks)
        return mask_embedding
Embeds mask inputs.
third_parts/sam2/modeling/sam/prompt_encoder.py