From 2cf991b25cc07748a8fb1961b16bfe48dc144c71 Mon Sep 17 00:00:00 2001 From: gineshidalgo99 Date: Thu, 4 May 2017 14:26:53 -0400 Subject: [PATCH] Wrapper: GUI verbose working on user's output Workers --- README.md | 20 ++++++++++---------- include/openpose/wrapper/wrapper.hpp | 4 +++- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 01a1a70e..f1704a22 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,16 @@ We use standard formats (JSON, XML, PNG, JPG, ...) to save our results, so there +## Custom Caffe +We only modified some Caffe compilation flags and minor details. You can use use your own Caffe distribution, these are the files we added and modified: + +1. Added files: `install_caffe.sh`; as well as `Makefile.config.Ubuntu14.example`, `Makefile.config.Ubuntu16.example`, `Makefile.config.Ubuntu14_cuda_7.example` and `Makefile.config.Ubuntu16_cuda_7.example` (extracted from `Makefile.config.example`). Basically, you must enable cuDNN. +2. Edited file: Makefile. Search for "# OpenPose: " to find the edited code. We basically added the C++11 flag to avoid issues in some old computers. +3. Optional - deleted Caffe file: `Makefile.config.example`. +4. Finally, run `make all && make distribute` in your Caffe version and modify the Caffe directory variable in our Makefile config file: `./Makefile.config.UbuntuX.example` (where X is 14 or 16 depending on your Ubuntu version), set the `CAFFE_DIR` parameter to the path where both the `include` and `lib` Caffe folders are located. + + + ## Send Us your Feed-Back! Our library is open source for research purposes, and we want to continuously improve it! So please, let us know if... @@ -182,16 +192,6 @@ Just comment on GibHub or make a pull request! We will answer you back as soon a -## Custom Caffe -We only modified some Caffe compilation flags and minor details. You can use use your own Caffe distribution, these are the files we added and modified: - -1. Added files: `install_caffe.sh`; as well as `Makefile.config.Ubuntu14.example`, `Makefile.config.Ubuntu16.example`, `Makefile.config.Ubuntu14_cuda_7.example` and `Makefile.config.Ubuntu16_cuda_7.example` (extracted from `Makefile.config.example`). Basically, you must enable cuDNN. -2. Edited file: Makefile. Search for "# OpenPose: " to find the edited code. We basically added the C++11 flag to avoid issues in some old computers. -3. Optional - deleted Caffe file: `Makefile.config.example`. -4. Finally, run `make all && make distribute` in your Caffe version and modify the Caffe directory variable in our Makefile config file: `./Makefile.config.UbuntuX.example` (where X is 14 or 16 depending on your Ubuntu version), set the `CAFFE_DIR` parameter to the path where both the `include` and `lib` Caffe folders are located. - - - ## Citation Please cite the paper in your publications if it helps your research: diff --git a/include/openpose/wrapper/wrapper.hpp b/include/openpose/wrapper/wrapper.hpp index 7f37845c..2141d2f8 100644 --- a/include/openpose/wrapper/wrapper.hpp +++ b/include/openpose/wrapper/wrapper.hpp @@ -699,7 +699,9 @@ namespace op // Add frame information for GUI // If this WGuiInfoAdder instance is placed before the WImageSaver or WVideoSaver, then the resulting recorded frames will // look exactly as the final displayed image by the GUI - if (wrapperStructOutput.displayGui && wrapperStructOutput.guiVerbose) + if (wrapperStructOutput.guiVerbose && (wrapperStructOutput.displayGui || !mUserOutputWs.empty() + || mThreadManagerMode == ThreadManagerMode::Asynchronous + || mThreadManagerMode == ThreadManagerMode::AsynchronousOut)) { const auto guiInfoAdder = std::make_shared(finalOutputSize, wrapperStructPose.gpuNumber); mOutputWs.emplace_back(std::make_shared>(guiInfoAdder)); -- GitLab