提交 5847ac3b 编写于 作者: G Gines Hidalgo

Improved error message

上级 55ed1f4a
......@@ -416,11 +416,12 @@ OpenPose Library - Release Notes
## Current version - Future OpenPose 1.6.1
1. Main improvements:
1. Some parts of the documentation have been explained better.
2. Functions or parameters renamed:
3. Main bugs fixed:
1. 90 and 270-degree rotations working again.
2. C++ tutorial API demos only try to cv::imshow the image if it is not empty (avoding the assert that it would trigger otherwise).
4. Changes/additions that affect the compatibility with the OpenPose Unity Plugin:
3. Several typos fixed in the documentation.
......
......@@ -51,9 +51,12 @@ namespace op
{
try
{
const std::string message{".\nPossible causes:\n\t1. Not downloading the OpenPose trained models."
"\n\t2. Not running OpenPose from the same directory where the `model`"
" folder is located.\n\t3. Using paths with spaces."};
const std::string message{".\nPossible causes:\n"
"\t1. Not downloading the OpenPose trained models.\n"
"\t2. Not running OpenPose from the root directory (i.e., where the `model` folder is located, but do not move the `model` folder!). E.g.,\n"
"\t\tRight example for the Windows portable binary: `cd {OpenPose_root_path}; bin/openpose.exe`\n"
"\t\tWrong example for the Windows portable binary: `cd {OpenPose_root_path}/bin; openpose.exe`\n"
"\t3. Using paths with spaces."};
if (!existFile(mCaffeProto))
error("Prototxt file not found: " + mCaffeProto + message, __LINE__, __FUNCTION__, __FILE__);
if (!existFile(mCaffeTrainedModel))
......
......@@ -40,9 +40,12 @@ namespace op
mNet{cv::dnn::readNetFromCaffe(caffeProto, caffeTrainedModel)},
spOutputBlob{new caffe::Blob<float>(1,1,1,1)}
{
const std::string message{".\nPossible causes:\n\t1. Not downloading the OpenPose trained models."
"\n\t2. Not running OpenPose from the same directory where the `model`"
" folder is located.\n\t3. Using paths with spaces."};
const std::string message{".\nPossible causes:\n"
"\t1. Not downloading the OpenPose trained models.\n"
"\t2. Not running OpenPose from the root directory (i.e., where the `model` folder is located, but do not move the `model` folder!). E.g.,\n"
"\t\tRight example for the Windows portable binary: `cd {OpenPose_root_path}; bin/openpose.exe`\n"
"\t\tWrong example for the Windows portable binary: `cd {OpenPose_root_path}/bin; openpose.exe`\n"
"\t3. Using paths with spaces."};
if (!existFile(mCaffeProto))
error("Prototxt file not found: " + mCaffeProto + message, __LINE__, __FUNCTION__, __FILE__);
if (!existFile(mCaffeTrainedModel))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册