1 #ifndef OPENPOSE_POSE_BODY_PART_CONNECTOR_CAFFE_HPP
2 #define OPENPOSE_POSE_BODY_PART_CONNECTOR_CAFFE_HPP
22 virtual inline const char*
type()
const {
return "BodyPartConnector"; }
60 bool mMaximizePositives;
61 T mDefaultNmsThreshold;
62 T mInterMinAboveThreshold;
67 std::array<int, 4> mHeatMapsSize;
68 std::array<int, 4> mPeaksSize;
69 std::array<int, 4> mTopSize;
71 unsigned int* pBodyPartPairsGpuPtr;
72 unsigned int* pMapIdxGpuPtr;
74 T* pFinalOutputGpuPtr;
virtual void Forward_cpu(const std::vector< ArrayCpuGpu< T > * > &bottom, Array< T > &poseKeypoints, Array< T > &poseScores)
void setScaleNetToOutput(const T scaleNetToOutput)
void setPoseModel(const PoseModel poseModel)
virtual void Forward_ocl(const std::vector< ArrayCpuGpu< T > * > &bottom, Array< T > &poseKeypoints, Array< T > &poseScores)
virtual void Forward(const std::vector< ArrayCpuGpu< T > * > &bottom, Array< T > &poseKeypoints, Array< T > &poseScores)
void setMinSubsetCnt(const int minSubsetCnt)
void setMaximizePositives(const bool maximizePositives)
void setInterThreshold(const T interThreshold)
void setInterMinAboveThreshold(const T interMinAboveThreshold)
virtual void Backward_cpu(const std::vector< ArrayCpuGpu< T > * > &top, const std::vector< bool > &propagate_down, const std::vector< ArrayCpuGpu< T > * > &bottom)
void setMinSubsetScore(const T minSubsetScore)
virtual void Forward_gpu(const std::vector< ArrayCpuGpu< T > * > &bottom, Array< T > &poseKeypoints, Array< T > &poseScores)
virtual ~BodyPartConnectorCaffe()
virtual void Reshape(const std::vector< ArrayCpuGpu< T > * > &bottom, const int gpuID=0)
virtual void Backward_gpu(const std::vector< ArrayCpuGpu< T > * > &top, const std::vector< bool > &propagate_down, const std::vector< ArrayCpuGpu< T > * > &bottom)
virtual const char * type() const
void setDefaultNmsThreshold(const T defaultNmsThreshold)