-
Notifications
You must be signed in to change notification settings - Fork 707
Closed
Description
unittest failed on mmpose==v0.24.0
tests/test_codebase/test_mmpose/test_pose_detection.py:94:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <mmdeploy.codebase.mmpose.deploy.pose_detection.PoseDetection object at 0x7f104dd0f610>
imgs = array([[[0.38712624, 0.16251343, 0.61474216],
[0.3888045 , 0.1417041 , 0.918831 ],
[0.24305458, 0.242...8063033 ],
[0.04421723, 0.6209389 , 0.15323521],
[0.7485377 , 0.3066191 , 0.9494483 ]]], dtype=float32)
input_shape = (192, 256), kwargs = {}
def create_input(self,
imgs: Union[str, np.ndarray],
input_shape: Sequence[int] = None,
**kwargs) -> Tuple[Dict, torch.Tensor]:
"""Create input for pose detection.
Args:
imgs (Any): Input image(s), accepted data type are ``str``,
``np.ndarray``.
input_shape (list[int]): A list of two integer in (width, height)
format specifying input shape. Defaults to ``None``.
Returns:
tuple: (data, img), meta information for the input image and input.
"""
> from mmpose.apis.inference import LoadImage, _box2cs
E ImportError: cannot import name 'LoadImage' from 'mmpose.apis.inference' (/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/mmpose/apis/inference.py)
mmdeploy/codebase/mmpose/deploy/pose_detection.py:84: ImportError
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels