1 #ifndef OPENPOSE_POSE_POSE_EXTRACTOR_CAFFE_HPP
2 #define OPENPOSE_POSE_POSE_EXTRACTOR_CAFFE_HPP
20 const PoseModel poseModel,
const std::string& modelFolder,
const int gpuId,
21 const std::vector<HeatMapType>& heatMapTypes = {},
23 const bool addPartCandidates =
false,
const bool maximizePositives =
false,
24 const std::string& protoTxtPath =
"",
const std::string& caffeModelPath =
"",
25 const float upsamplingRatio = 0.f,
const bool enableNet =
true,
26 const bool enableGoogleLogging =
true);
41 const std::vector<double>& scaleInputToNetInputs = {1.f},
60 const std::string mModelFolder;
61 const std::string mProtoTxtPath;
62 const std::string mCaffeModelPath;
63 const float mUpsamplingRatio;
64 const bool mEnableNet;
65 const bool mEnableGoogleLogging;
67 std::vector<std::shared_ptr<Net>> spNets;
68 std::shared_ptr<ResizeAndMergeCaffe<float>> spResizeAndMergeCaffe;
69 std::shared_ptr<NmsCaffe<float>> spNmsCaffe;
70 std::shared_ptr<BodyPartConnectorCaffe<float>> spBodyPartConnectorCaffe;
71 std::shared_ptr<MaximumCaffe<float>> spMaximumCaffe;
72 std::vector<std::vector<int>> mNetInput4DSizes;
74 std::vector<std::shared_ptr<ArrayCpuGpu<float>>> spCaffeNetOutputBlobs;
75 std::shared_ptr<ArrayCpuGpu<float>> spHeatMapsBlob;
76 std::shared_ptr<ArrayCpuGpu<float>> spPeaksBlob;
77 std::shared_ptr<ArrayCpuGpu<float>> spMaximumPeaksBlob;
#define DELETE_COPY(className)