Spaces:
Runtime error
Runtime error
File size: 425 Bytes
9cc3eb2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
from typing import Tuple
from mmengine.model import BaseModule
from torch import Tensor
from mmdet.registry import MODELS
@MODELS.register_module()
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]
|