Comments (9)
I remember this bug (it is not the fading to white, but the 1st instant in which no people appear), but it was solved at some point.
Can you git pull
or re-download the latest version of the library and re-compile it?
To re-compile it in case you just do git pull
:
make clean && cd 3rdparty/caffe && make clean && make distribute -j8 && cd ../.. && make all -j8
In case you re-download it, just delete the old version and follow the installation steps again.
Note the change rtpose.bin --> openpose.bin
Let me know if it still fails!
from openpose.
Mmm.. I did git pull
and re-compile openpose.
And check commit log.
# git log --oneline
f4dd473 Fixed bug: disable_blending not working
f3454e3 Updated Caffe & more demo doc
...
And I run following command. But same error has occured.
# ./build/examples/openpose/openpose.bin --video sozai/notall2.mp4 --write_pose j
Starting pose estimation demo.
Gtk-Message: Failed to load module "canberra-gtk-module"
Starting thread(s)
terminate called after throwing an instance of 'std::runtime_error'
what():
Error:
Array<T>: cv::Mat functions only valid for T types defined by OpenCV: unsigned char, signed char, int, float & double
Coming from:
- src/openpose/core/array.cpp:getConstCvMat():328
- src/openpose/core/array.cpp:getConstCvMat():334
- src/openpose/filestream/poseSaver.cpp:savePoseKeyPoints():39
- ./include/openpose/filestream/wPoseSaver.hpp:workConsumer():80
- ./include/openpose/thread/subThread.hpp:workTWorkers():138
- ./include/openpose/thread/subThreadQueueInOut.hpp:work():87
- ./include/openpose/thread/thread.hpp:threadFunction():206
Aborted (core dumped)
# gdb ./build/examples/openpose/openpose.bin core.openpose.bin.13594
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./build/examples/openpose/openpose.bin...(no debugging symbols found)...done.
[New LWP 13621]
[New LWP 13595]
[New LWP 13608]
[New LWP 13594]
[New LWP 13620]
[New LWP 13598]
[New LWP 13617]
[New LWP 13619]
[New LWP 13618]
[New LWP 13602]
[New LWP 13596]
[New LWP 13614]
[New LWP 13613]
[New LWP 13616]
[New LWP 13610]
[New LWP 13605]
[New LWP 13606]
[New LWP 13597]
[New LWP 13615]
[New LWP 13603]
[New LWP 13609]
[New LWP 13622]
[New LWP 13601]
[New LWP 13604]
[New LWP 13612]
[New LWP 13607]
[New LWP 13623]
[New LWP 13600]
[New LWP 13599]
[New LWP 13611]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./build/examples/openpose/openpose.bin --video sozai/notall2.mp4 --write_pose j'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007f43dff35428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f436dbf7700 (LWP 13621))]
from openpose.
OK then it is something else, but I tried that video and it worked for me. So I few thoughts:
- Could you convert that video to standard avi format and try it? Or can you send me a link (Dropbox, Google Drive, etc.) to your exact video? Maybe it is some kind of unsupported codecs.
- Which version of OpenCV are you using? The one from
apt-get
or a custom build? If it is a custom build, which exact version? - Could you try on a different video where there is no people on the scene? So I can to know if the error is when no people is there or if it is just this video.
Sorry for any inconveniences!
from openpose.
@gineshidalgo99
These days I can't reproduce this issue.
Sorry, I might have mistaken something maybe m(_ _)m
from openpose.
I received the same error when using the wrapper. I wrote a user-input class that reads image paths and crop positions from a csv file and applies the given cropping to the image. It then resizes the image into 656*358. The image is then put into an input-datum.
I followed the asynchronous user code example.
In particular the cropped and resized image is a relatively low-resolution of a pedestrian walking away from the camera, so I can imagine that the issue may be related to the network not a person in the image. Is there something that should be added into the user-input class to avoid this runtime error? It occurs in function opWrapper.waitAndEmplace(datumToProcess). Could I simply assume that this means that no people were detected?
The error is not present in the demo.
OpenCV version: 3.1.0 (installed from source)
OpenPose: commit cc4082b
Your system configuration
Operating system (lsb_release -a on Ubuntu): 14.04.5 LTS
CUDA version (cat /usr/local/cuda/version.txt in most cases): 7.5.18
cuDNN version: 5.1.10.
GPU model (nvidia-smi): (Titan Z) 375.39
Compiler (gcc --version on Ubuntu): 5.1.3
from openpose.
Good catch! It actually happened when Array was empty (e.g. if no keypoints are detected). Fixed in my last commit, it will give you an empty cv::Mat if Array.empty() == true. (I did not handled this situation before).
Please, post again if the error still persists.
from openpose.
@gineshidalgo99
Hello! I met the same error.when I run this command:
./build/examples/openpose/openpose.bin -image_dir /path/to/image/ -write_pose /path/to/save/ -write_pose_format xml -scale_mode 0 -no_display ture
Error:
Array: cv::Mat functions only valid for T types defined by OpenCV: unsigned char, signed char, int, float & double
Coming from:
- src/openpose/core/array.cpp:getConstCvMat():328
- src/openpose/core/array.cpp:getConstCvMat():334
- src/openpose/filestream/poseSaver.cpp:savePoseKeyPoints():39
- ./include/openpose/filestream/wPoseSaver.hpp:workConsumer():80
- ./include/openpose/thread/subThread.hpp:workTWorkers():138
- ./include/openpose/thread/subThreadQueueInOut.hpp:work():87
- ./include/openpose/thread/thread.hpp:threadFunction():206
Aborted (core dumped)
It is because in some images the demo can’t detect people. But I don't want that the demo to be aborted. I hope it can still run ,and output a xml say there is nobady in the image. How should I change the demo?
from openpose.
@nikoong Please, try write_pose_json
and let me know if it works instead. Thanks
from openpose.
@gineshidalgo99 Thank you!It works.
from openpose.
Related Issues (20)
- just copy and paste the model's directory to the release directory
- unable to install openpose in colab settings HOT 2
- I can't download any model. The URL is just loading and nothing appears HOT 2
- 3D pose estimation
- cann't use getModels.sh to download from posefs1.perception.cs.cmu.edu HOT 6
- How to select stable keypoints from a HeatMap?
- No Keypoints Detected After Running Python Examples
- Gait Analysis Output Video frame is very slow. How can I optimize the code?
- 18 keypoins output HOT 2
- Openpose with Infrared Images HOT 1
- help wanted: which data belongs to which person in the video?
- Problems with the installation HOT 5
- download Caffe, OpenCV, and Caffe prerequisites wrong bying official link, help me HOT 2
- Why cannot detect right hand keypoints in the following image?
- Problem building with CPU_ONLY:
- Release - Dockerfiles with Fixed Model Downloads - CPU / CPU + CUDA + cuDNN HOT 3
- How to modify the identification file path
- Cmake- GUI - Error in Configuration process, project files maybe in invalid
- unknown type name 'PROTOBUF_NAMESPACE_OPEN'
- OpenPose Fine-Tuning with customized data
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 openpose.