Comments (9)
@WanliZhong Please take a look at the problem.
from opencv_zoo.
@z14git Thanks for the report. Could you provide the picture with hand you used?
from opencv_zoo.
from opencv_zoo.
@z14git I got a result on Jetson-GPU
with your code. Could you use print(cv2.getBuildInformation())
to show if you have installed OpenCV with CUDA?
from opencv_zoo.
Build Information:
General configuration for OpenCV 4.6.0 =====================================
Version control: unknown
Extra modules:
Location (extra): /home/user/repos/opencv_contrib/modules
Version control (extra): unknown
Platform:
Timestamp: 2022-07-06T06:31:53Z
Host: Linux [proxychains] DLL init: proxychains-ng 4.12
[proxychains] DLL init: proxychains-ng 4.12
4.9.253-tegra [proxychains] DLL init: proxychains-ng 4.12
[proxychains] DLL init: proxychains-ng 4.12
aarch64
CMake: 3.10.2
CMake generator: Unix Makefiles
CMake build tool: /usr/bin/make
Configuration: RELEASE
CPU/HW features:
Baseline:
requested: DETECT
C/C++:
Built as dynamic libs?: YES
C++ standard: 11
C++ Compiler: /usr/bin/c++ (ver 7.5.0)
C++ flags (Release): -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
C++ flags (Debug): -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
C Compiler: /usr/bin/cc
C flags (Release): -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
C flags (Debug): -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
Linker flags (Release): -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined
Linker flags (Debug): -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined
ccache: NO
Precompiled headers: NO
Extra dependencies: m pthread cudart_static dl rt nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cudnn cufft -L/usr/local/cuda/lib64 -L/usr/lib/aarch64-linux-gnu
3rdparty dependencies:
OpenCV modules:
To be built: alphamat aruco barcode bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dnn_superres dpm face features2d flann freetype fuzzy gapi hdf hfs highgui img_hash imgcodecs imgproc intensity_transform line_descriptor mcc ml objdetect optflow phase_unwrapping photo plot python3 quality rapid reg rgbd saliency sfm shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab wechat_qrcode xfeatures2d ximgproc xobjdetect xphoto
Disabled: java_bindings_generator python2 world
Disabled by dependency: -
Unavailable: cvv java julia matlab ovis viz
Applications: tests perf_tests apps
Documentation: NO
Non-free algorithms: YES
GUI: NONE
GTK+: NO
OpenGL support: NO
VTK support: NO
Media I/O:
ZLib: /usr/lib/aarch64-linux-gnu/libz.so (ver 1.2.11)
JPEG: /usr/lib/aarch64-linux-gnu/libjpeg.so (ver 80)
WEBP: build (ver encoder: 0x020f)
PNG: /usr/lib/aarch64-linux-gnu/libpng.so (ver 1.6.34)
TIFF: build (ver 42 - 4.2.0)
JPEG 2000: build (ver 2.4.0)
OpenEXR: build (ver 2.3.0)
HDR: YES
SUNRASTER: YES
PXM: YES
PFM: YES
Video I/O:
DC1394: NO
FFMPEG: YES
avcodec: YES (57.107.100)
avformat: YES (57.83.100)
avutil: YES (55.78.100)
swscale: YES (4.8.100)
avresample: NO
GStreamer: YES (1.14.5)
v4l/v4l2: YES (linux/videodev2.h)
Parallel framework: pthreads
Trace: YES (built-in)
Other third-party libraries:
Tengine: YES (tengine)
Lapack: YES (/usr/lib/aarch64-linux-gnu/liblapack.so /usr/lib/aarch64-linux-gnu/libcblas.so /usr/lib/aarch64-linux-gnu/libatlas.so)
Eigen: YES (ver 3.3.4)
Custom HAL: NO
Protobuf: build (3.19.1)
NVIDIA CUDA: YES (ver 10.2, CUFFT CUBLAS)
NVIDIA GPU arch: 53
NVIDIA PTX archs:
cuDNN: YES (ver 8.2.1)
OpenCL: YES (no extra features)
Include path: /home/user/repos/opencv/3rdparty/include/opencl/1.2
Link libraries: Dynamic load
Python 3:
Interpreter: /home/user/.virtualenvs/cv/bin/python3 (ver 3.6.9)
Libraries: /usr/lib/aarch64-linux-gnu/libpython3.6m.so (ver 3.6.9)
numpy: /home/user/.venv/cv/lib/python3.6/site-packages/numpy/core/include (ver 1.19.4)
install path: lib/python3.6/site-packages/cv2/python-3.6
Python (for build): /usr/bin/python2.7
Java:
ant: NO
JNI: NO
Java wrappers: NO
Java tests: NO
Install to: /usr/venv_cv
-----------------------------------------------------------------
from opencv_zoo.
I found that it's not about the CUDA, but also the CPU failed.
I try to change the backend to cv.dnn.DNN_BACKEND_OPENCV
and target to cv.dnn.DNN_TARGET_CPU
. It throws this error:
---------------------------------------------------------------------------
error Traceback (most recent call last)
<ipython-input-4-81d8661407af> in <module>
4
5 for palm in palms:
----> 6 handpose = handpose_detector.infer(image, palm)
7 if handpose is not None:
8 hands = np.vstack((hands, handpose))
~/Tutorials/hand/mp_handpose.py in infer(self, image, palm)
109 # Forward
110 self.model.setInput(input_blob)
--> 111 output_blob = self.model.forward(self.model.getUnconnectedOutLayersNames())
112
113 # Postprocess
error: OpenCV(4.6.0) /home/user/repos/opencv/modules/dnn/include/opencv2/dnn/shape_utils.hpp:171: error: (-215:Assertion failed) start <= (int)shape.size() && end <= (int)shape.size() && start <= end in function 'total'
the palm_detector seems to work fine, only handpose_detector failed.
from opencv_zoo.
from opencv_zoo.
@z14git Hi, I have reproduced your error. You can rebuild OpenCV version 4.7.0 with CUDA and this will solve your problem.
from opencv_zoo.
Thanks, 4.7.0 works fine.
from opencv_zoo.
Related Issues (20)
- 请问为什么没有提供rpn的量化版本,是不支持siam网络量化嘛? HOT 6
- AttributeError: module 'cv2' has no attribute 'TrackerVit_Params' HOT 9
- K-best BB VitTracker (feature/Question) HOT 3
- VitTracker weights (question) HOT 10
- Mediapipe pose estimation performance HOT 5
- Refreshing template in Vit (Question) HOT 4
- Dynamic Input Shape? HOT 2
- Lack of charsets in models\text_recognition_crnn HOT 8
- `quantize-ort.py` doesn't reproduce the quantized models in the repos HOT 3
- Is it possible to parallelize face detection process using the face_detection_yunet model in C++? HOT 6
- How to process output of face detection network when batch of images is used as network input? HOT 7
- SFace: Quantized model is slower HOT 1
- 为什么输入的两张相同的图片经过处理以后维度会不一样 HOT 10
- 求助求助,随便选两个图片对比的相似度都很高。 HOT 3
- Add Java demos (Last update on 2024-04-07) HOT 4
- I can't run the yunet_2023mar in OpenCV4.9.0 HOT 2
- Face Anti-Spoofing opencv HOT 1
- 总是报错 HOT 1
- 奇怪的问题 HOT 1
- SFaceRecognizer model face recognition C++ test failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencv_zoo.