def forward(self, x) -> Dict[(str, Tensor)]:
    outs = self.backbone(x)
    if (self.neck is not None):
        outs = self.neck(outs)
    assert isinstance(outs, (list, tuple)), 'mmdet backbone should return a list/tuple of tensors!'
    if (len(outs) != len(self._output_shapes)):
        raise ValueError(f'Length of output_shapes does not match outputs from the mmdet backbone: {len(outs)} != {len(self._output_shapes)}')
    return {k: v for (k, v) in zip(self._output_names, outs)}
def forward(self, x) -> Dict[(str, Tensor)]:
    outs = self.backbone(x)
    if (self.neck is not None):
        outs = self.neck(outs)
    assert isinstance(outs, (list, tuple)), 'mmdet backbone should return a list/tuple of tensors!'
    if (len(outs) != len(self._output_shapes)):
        raise ValueError(f'Length of output_shapes does not match outputs from the mmdet backbone: {len(outs)} != {len(self._output_shapes)}')
    return {k: v for (k, v) in zip(self._output_names, outs)}