def METHOD_NAME(self, inputs: torch.Tensor) -> torch.Tensor:
    """Directly extract features from the backbone."""
    if self.with_preprocessor:
        inputs = self.preprocessor(inputs)
    if self.with_backbone:
        inputs = self.backbone(inputs)
    return inputs