mmpose icon indicating copy to clipboard operation
mmpose copied to clipboard

[Bug] process_mmdet_results problem

Open Yuhan291 opened this issue 11 months ago • 0 comments

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

python -c "from mmpose.utils import collect_env; print(collect_env())":

OrderedDict([('sys.platform', 'linux'), ('Python', '3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]'), ('CUDA available', True), ('MUSA available', False), ('numpy_random_seed', 2147483648), ('GPU 0', 'Tesla V100-SXM2-32GB'), ('CUDA_HOME', '/usr/local/cuda'), ('NVCC', 'Cuda compilation tools, release 12.1, V12.1.105'), ('GCC', 'x86_64-linux-gnu-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0'), ('PyTorch', '2.0.0+cu118'), ('PyTorch compiling details', 'PyTorch built with:\n - GCC 9.3\n - C++ Version: 201703\n - Intel(R) oneAPI Math Kernel Library Version 2022.2-Product Build 20220804 for Intel(R) 64 architecture applications\n - Intel(R) MKL-DNN v2.7.3 (Git Hash 6dbeffbae1f23cbbeae17adb7b5b13f1f37c080e)\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: AVX2\n - CUDA Runtime 11.8\n - NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_90,code=sm_90\n - CuDNN 8.7\n - Magma 2.6.1\n - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.8, CUDNN_VERSION=8.7.0, CXX_COMPILER=/opt/rh/devtoolset-9/root/usr/bin/c++, CXX_FLAGS= -D_GLIBCXX_USE_CXX11_ABI=0 -fabi-version=11 -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wunused-local-typedefs -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Werror=cast-function-type -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_DISABLE_GPU_ASSERTS=ON, TORCH_VERSION=2.0.0, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=1, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, \n'), ('TorchVision', '0.15.1+cu118'), ('OpenCV', '4.10.0'), ('MMEngine', '0.10.5'), ('MMPose', '1.3.2+')])

pip list: Package Version


addict 2.4.0 albucore 0.0.21 albumentations 1.4.22 aliyun-python-sdk-core 2.16.0 aliyun-python-sdk-kms 2.16.5 annotated-types 0.7.0 certifi 2022.12.7 cffi 1.17.1 charset-normalizer 2.1.1 chumpy 0.70 click 8.1.7 cmake 3.25.0 colorama 0.4.6 contourpy 1.3.1 crcmod 1.7 cryptography 44.0.0 cycler 0.12.1 Cython 3.0.11 eval_type_backport 0.2.0 filelock 3.14.0 fonttools 4.55.3 fsspec 2024.10.0 huggingface-hub 0.26.5 idna 3.4 Jinja2 3.1.3 jmespath 0.10.0 json-tricks 3.17.3 kiwisolver 1.4.7 lit 15.0.7 Markdown 3.7 markdown-it-py 3.0.0 MarkupSafe 2.1.5 matplotlib 3.10.0 mdurl 0.1.2 mmcv 2.0.1 mmdet 3.2.0 mmengine 0.10.5 mmpose 1.3.2 model-index 0.1.11 mpmath 1.3.0 munkres 1.1.4 networkx 3.2.1 numpy 1.26.3 opencv-python 4.10.0.84 opencv-python-headless 4.10.0.84 opendatalab 0.0.10 openmim 0.3.9 openxlab 0.1.2 ordered-set 4.1.0 oss2 2.17.0 packaging 24.2 pandas 2.2.3 pillow 10.2.0 pip 24.3.1 platformdirs 4.3.6 protobuf 5.29.1 pycocotools 2.0.8 pycparser 2.22 pycryptodome 3.21.0 pydantic 2.10.3 pydantic_core 2.27.1 Pygments 2.18.0 pyparsing 3.2.0 python-dateutil 2.9.0.post0 pytz 2023.4 PyYAML 6.0.2 requests 2.28.2 rich 13.4.2 safetensors 0.4.5 scipy 1.14.1 setuptools 60.2.0 shapely 2.0.6 simsimd 6.2.1 six 1.17.0 stringzilla 3.11.1 sympy 1.13.1 tabulate 0.9.0 tensorboardX 2.6.2.2 termcolor 2.5.0 terminaltables 3.1.10 timm 1.0.12 tomli 2.2.1 torch 2.0.0+cu118 torchaudio 2.0.1+cu118 torchvision 0.15.1+cu118 tqdm 4.65.2 triton 2.0.0 typing_extensions 4.12.2 tzdata 2024.2 urllib3 1.26.13 wheel 0.45.1 xtcocotools 1.14.3 yacs 0.1.8 yapf 0.43.0

Reproduces the problem - code sample

from mmpose.apis import (inference_topdown, process_mmdet_results)

Reproduces the problem - command or script

just for the importerro.

Reproduces the problem - error message

ImportError: cannot import name 'process_mmdet_results' from 'mmpose.apis' (/picassox/sfs-mtlab-train-base/segmentation/hyh5/envs/PCT2/lib/python3.10/site-packages/mmpose/apis/init.py)

Additional information

I want to use function of process_mmdet_results, but it seems that it has been removed from inference.py. Is there any solution for this requirement? Thank you.

Yuhan291 avatar Dec 16 '24 04:12 Yuhan291