CMU-Perceptual-Computing-Lab / openpose_unity_plugin

OpenPose's Unity Plugin for Unity users

Home Page:https://github.com/CMU-Perceptual-Computing-Lab/openpose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unity Crashing

SaadAnees opened this issue · comments

Hello, I have setup the OpenPose as instructed. I tried testBinary and it played a video with poses in it. Meaning OpenPose is setup correctly but unity is keep crashing and giving me error which is mentioned below:

OP_Error:
Error occurred on a thread. OpenPose closed all its threads and then propagated the error to the main thread. Error description:

Caffe trained model file not found: D:\Unity-Try-on\openpose_unity_plugin\OpenPosePlugin\Assets\StreamingAssets\models\pose/body_25/pose_iter_584000.caffemodel.
Possible causes:
1. Not downloading the OpenPose trained models.
2. Not running OpenPose from the same directory where the model folder is located.
3. Using paths with spaces.

Coming from:

  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\net\netCaffe.cpp:op::NetCaffe::ImplNetCaffe::ImplNetCaffe():56
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\net\netCaffe.cpp:op::NetCaffe::ImplNetCaffe::ImplNetCaffe():89
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\pose\poseExtractorCaffe.cpp:op::addCaffeNetOnThread():108
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\pose\poseExtractorCaffe.cpp:op::PoseExtractorCaffe::netInitializationOnThread():198
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\pose\poseExtractorNet.cpp:op::PoseExtractorNet::initializationOnThread():98
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\pose\poseExtractor.cpp:op::PoseExtractor::initializationOnThread():34
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\include\openpose/pose/wPoseExtractor.hpp:op::WPoseExtractor<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > > >::initializationOnThread():57
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\include\openpose/thread/worker.hpp:op::Worker<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > > >::initializationOnThreadNoException():77
  • [All threads closed and control returned to main thread]
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\utilities\errorAndLog.cpp:op::checkWorkerErrors():280
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\include\openpose/thread/threadManager.hpp:op::ThreadManager<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::shared_ptr<class op::Worker<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > > > >,class op::Queue<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::queue<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::deque<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::allocator<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > > > > > > >::stop():243
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\include\openpose/thread/threadManager.hpp:op::ThreadManager<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::shared_ptr<class op::Worker<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > > > >,class op::Queue<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::queue<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::deque<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::allocator<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > > > > > > >::exec():202
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\include\openpose/wrapper/wrapper.hpp:op::WrapperT<struct op::Datum,class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > >,class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > >,class std::shared_ptr<class op::Worker<class std::shared_ptr<class std::vector<class std::shared_ptr,class std::allocator<class std::shared_ptr > > > > > >::exec():424
  • D:\Users\gines\Dropbox\Perceptual_Computing_Lab\openpose\openpose\src\openpose\unity\unityBinding.cpp:op::openpose_main():453
  • [Error occurred in a destructor or in the OpenPose Unity Plugin, so no std::exception has been thrown. Returning with exit status 0]

UnityEngine.Debug:LogError(Object)
OpenPose.OPWrapper:m__0(String, Int32) (at Assets/OpenPose/Modules/Scripts/OPWrapper.cs:231)
OpenPose.OPBind:_OPRun()
OpenPose.OPWrapper:OPExecuteThread() (at Assets/OpenPose/Modules/Scripts/OPWrapper.cs:268)

Unity version: 2018.4.15f1
Kindly let me know what am I missing.