Closed ChenZhenGui closed 1 year ago
I have set the default value of cuda to True. Why do I still call the cpu when running demo
webcam_api_demo is going to be deprecated soon, if you just want to use webcam to inference, I suggest directly using demo scripts such as topdown_demo_with_mmdet.py
, by specifying --input webcam
Prerequisite
Environment
OrderedDict([('sys.platform', 'win32'), ('Python', '3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]'), ('CUDA available', True), ('numpy_random_seed', 2147483648), ('GPU 0', 'NV IDIA GeForce GTX 1650'), ('CUDA_HOME', 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4'), ('NVCC', 'Cuda compilation tools, release 11.4, V11.4.100'), ('MSVC', '用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.29.30143 版'), ('GCC', 'n/a'), ('PyTorch', '1.8.0+cu111'), ('PyTorch compiling details', 'PyTorch built with:\n - C++ Version: 199711\n - MSVC 192829337\n - Intel(R) Math Kernel Library Versi on 2020.0.2 Product Build 20200624 for Intel(R) 64 architecture applications\n - Intel(R) MKL-DNN v1.7.0 (Git Hash 7aed236906b1f7a05c0917e5257a1af05e9ff683)\n - OpenMP 2019\n - CPU capability usage: AVX2\n
Reproduces the problem - code sample
this is my human_pose.py:
Copyright (c) OpenMMLab. All rights reserved.
executor_cfg = dict(
Basic configurations of the executor
Reproduces the problem - command or script
python demo/webcam_api_demo.py
Reproduces the problem - error message
I want to add key point detection of hand on the basis of posture detection, but it still cannot detect key point of hand after adding it into human_pose.py according to the above method
Additional information
No response