Spaces:
Runtime error
Runtime error
from typing import Tuple | |
from mmengine.model import BaseModule | |
from torch import Tensor | |
from mmdet.registry import MODELS | |
class LastLayerNeck(BaseModule): | |
r"""Last Layer Neck | |
Return the last layer feature of the backbone. | |
""" | |
def __init__(self) -> None: | |
super().__init__(init_cfg=None) | |
def forward(self, inputs: Tuple[Tensor]) -> Tensor: | |
return inputs[-1] | |