Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] ImportError from mmpose.apis #3191

Open
2 tasks done
arbenede opened this issue Feb 17, 2025 · 1 comment
Open
2 tasks done

[Bug] ImportError from mmpose.apis #3191

arbenede opened this issue Feb 17, 2025 · 1 comment

Comments

@arbenede
Copy link

Prerequisite

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 \x00\x00\x00, LAPACK_INFO=open, TORCH_VERSION=2.3.1, USE_CUDA=0, USE_CUDNN=OFF, USE_CUSPARSELT=OFF, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_GLOO=ON, USE_MKLDNN=0, USE_MPI=OFF, USE_NCCL=OFF, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, USE_ROCM_KERNEL_ASSERT=OFF, \n'), ('TorchVision', '0.18.1a0'), ('OpenCV', '4.11.0'), ('MMEngine', '0.10.6'), ('MMPose', '1.3.2+2b54f77')])

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.

@helloworld-YY
Copy link

Hi. I meet the same problem. Did you solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants