mmpose
mmpose copied to clipboard
[Bug] ImportError from mmpose.apis
Prerequisite
- [x] I have searched Issues and Discussions but cannot get the expected help.
- [x] The bug has not been fixed in the latest version(https://github.com/open-mmlab/mmpose).
Environment
OrderedDict([('sys.platform', 'linux'), ('Python', '3.9.21 (main, Dec 11 2024, 16:27:47) [GCC 11.2.0]'), ('CUDA available', False), ('MUSA available', False), ('numpy_random_seed', 2147483648), ('GCC', 'gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0'), ('PyTorch', '2.3.1'), ('PyTorch compiling details', 'PyTorch built with:\n - GCC 11.2\n - C++ Version: 201703\n - OpenMP 201511 (a.k.a. OpenMP 4.5)\n - LAPACK is enabled (usually provided by MKL)\n - NNPACK is enabled\n - CPU capability usage: NO AVX\n - Build settings: BLAS_INFO=open, BUILD_TYPE=Release, CXX_COMPILER=/croot/pytorch-select_1730848725855/_build_env/bin/aarch64-conda-linux-gnu-c++, CXX_FLAGS=-fmessage-length=0 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe -isystem /home/ubuntu/anaconda3/envs/wham/include -fdebug-prefix-map=/croot/pytorch-select_1730848725855/work=/usr/local/src/conda/pytorch-2.3.1 -fdebug-prefix-map=/home/ubuntu/anaconda3/envs/wham=/usr/local/src/conda-prefix -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DLIBKINETO_NOROCTRACER -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=range-loop-construct -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=pedantic -Wno-error=old-style-cast -Wno-missing-braces -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow\x00
mmcv 2.1.0 mmdet 3.3.0 mmengine 0.10.6 mmpose 1.3.2 timm 0.4.9
Reproduces the problem - code sample
from mmpose.apis import (
inference_top_down_pose_model,
)
Reproduces the problem - command or script
$ python demo.py --video examples/IMG_9732.mov --visualize --estimate_local_only
Reproduces the problem - error message
Traceback (most recent call last):
File "/home/ubuntu/projects/WHAM/demo.py", line 19, in <module>
from lib.models.preproc.detector import DetectionModel
File "/home/ubuntu/projects/WHAM/lib/models/preproc/detector.py", line 14, in <module>
from mmpose.apis import (
ImportError: cannot import name 'inference_top_down_pose_model' from 'mmpose.apis' (/home/ubuntu/anaconda3/envs/wham/lib/python3.9/site-packages/mmpose/apis/__init__.py)
Additional information
This is running Ubuntu 22.04 on apple silicon M4 in a multipass VM.