|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from typing import Dict, List, Optional, Tuple, Union |
|
|
|
|
|
from mmengine.config import ConfigDict |
|
|
from mmengine.structures import InstanceData, PixelData |
|
|
from torch import Tensor |
|
|
|
|
|
from mmpose.structures import PoseDataSample |
|
|
|
|
|
|
|
|
ConfigType = Union[ConfigDict, dict] |
|
|
OptConfigType = Optional[ConfigType] |
|
|
|
|
|
MultiConfig = Union[ConfigType, List[ConfigType]] |
|
|
OptMultiConfig = Optional[MultiConfig] |
|
|
|
|
|
SampleList = List[PoseDataSample] |
|
|
OptSampleList = Optional[SampleList] |
|
|
InstanceList = List[InstanceData] |
|
|
PixelDataList = List[PixelData] |
|
|
Predictions = Union[InstanceList, Tuple[InstanceList, PixelDataList]] |
|
|
|
|
|
ForwardResults = Union[Dict[str, Tensor], List[PoseDataSample], Tuple[Tensor], |
|
|
Tensor] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Features = Union[Tuple[Tensor], List[Tuple[Tensor]], List[List[Tuple[Tensor]]]] |
|
|
|