Giter Club home page Giter Club logo

Comments (9)

gineshidalgo99 avatar gineshidalgo99 commented on May 5, 2024

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.

kidapu avatar kidapu commented on May 5, 2024

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.

gineshidalgo99 avatar gineshidalgo99 commented on May 5, 2024

OK then it is something else, but I tried that video and it worked for me. So I few thoughts:

  1. 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.
  2. 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?
  3. 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.

kidapu avatar kidapu commented on May 5, 2024

@gineshidalgo99
These days I can't reproduce this issue.
Sorry, I might have mistaken something maybe m(_ _)m

from openpose.

muumintroll avatar muumintroll commented on May 5, 2024

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.

gineshidalgo99 avatar gineshidalgo99 commented on May 5, 2024

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.

nikoong avatar nikoong commented on May 5, 2024

@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.

gineshidalgo99 avatar gineshidalgo99 commented on May 5, 2024

@nikoong Please, try write_pose_json and let me know if it works instead. Thanks

from openpose.

nikoong avatar nikoong commented on May 5, 2024

@gineshidalgo99 Thank you!It works.

from openpose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.