Skip to content

ImportError: cannot import name 'inference_top_down_pose_model' from 'mmpose.apis' #2

Description

@HeChengHui
mmcv                      2.0.1                    pypi_0    pypi
mmdet                     3.1.0                    pypi_0    pypi
mmengine                  0.8.4                    pypi_0    pypi
mmpose                    1.1.0                    pypi_0    pypi
torch                     2.0.1+cu117              pypi_0    pypi
torchaudio                2.0.2+cu117              pypi_0    pypi
torchmetrics              0.11.4                   pypi_0    pypi
torchvision               0.15.2+cu117             pypi_0    pypi

Exception has occurred: ImportError (note: full exception trace is shown but execution is paused at: run_module_as_main)
cannot import name 'inference_top_down_pose_model' from 'mmpose.apis' (D:\CH\Anaconda\envs\KeyPosS\lib\site-packages\mmpose\apis_init
.py)
File "D:\CH\Projects\Driver State Detection\testing\me\Fabian\facial landmarks\KeyPosS\demo\face_video_demo_CH.py", line 9, in
from mmpose.apis import (inference_top_down_pose_model, init_pose_model,
File "D:\CH\Anaconda\envs\KeyPosS\Lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\CH\Anaconda\envs\KeyPosS\Lib\runpy.py", line 196, in _run_module_as_main (Current frame)
return run_code(code, main_globals, None,
ImportError: cannot import name 'inference_top_down_pose_model' from 'mmpose.apis' (D:\CH\Anaconda\envs\KeyPosS\lib\site-packages\mmpose\apis_init
.py)

Please advice on the above error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions