Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

poseParameters.hpp 2.0 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  1. #ifndef OPENPOSE_POSE_POSE_PARAMETERS_HPP
  2. #define OPENPOSE_POSE_POSE_PARAMETERS_HPP
  3. #include <map>
  4. #include <openpose/core/common.hpp>
  5. #include <openpose/pose/enumClasses.hpp>
  6. namespace op
  7. {
  8. // Constant Global Parameters
  9. // For OpenCL-NMS in Ubuntu, (POSE_MAX_PEOPLE+1)*3(x,y,score) must be divisible by 32. Easy fix:
  10. // POSE_MAX_PEOPLE = 32n - 1
  11. // For OpenCL-NMS in Windows, it must be by 64, so 64n - 1
  12. const auto POSE_MAX_PEOPLE = 127u;
  13. // Model functions
  14. OP_API const std::map<unsigned int, std::string>& getPoseBodyPartMapping(const PoseModel poseModel);
  15. OP_API const std::string& getPoseProtoTxt(const PoseModel poseModel);
  16. OP_API const std::string& getPoseTrainedModel(const PoseModel poseModel);
  17. OP_API unsigned int getPoseNumberBodyParts(const PoseModel poseModel);
  18. OP_API const std::vector<unsigned int>& getPosePartPairs(const PoseModel poseModel);
  19. OP_API const std::vector<unsigned int>& getPoseMapIndex(const PoseModel poseModel);
  20. OP_API unsigned int getPoseMaxPeaks();
  21. OP_API float getPoseNetDecreaseFactor(const PoseModel poseModel);
  22. OP_API unsigned int poseBodyPartMapStringToKey(const PoseModel poseModel, const std::string& string);
  23. OP_API unsigned int poseBodyPartMapStringToKey(const PoseModel poseModel, const std::vector<std::string>& strings);
  24. // Default NSM and body connector parameters
  25. OP_API float getPoseDefaultNmsThreshold(const PoseModel poseModel, const bool maximizePositives = false);
  26. OP_API float getPoseDefaultConnectInterMinAboveThreshold(const bool maximizePositives = false);
  27. OP_API float getPoseDefaultConnectInterThreshold(const PoseModel poseModel, const bool maximizePositives = false);
  28. OP_API unsigned int getPoseDefaultMinSubsetCnt(const bool maximizePositives = false);
  29. OP_API float getPoseDefaultConnectMinSubsetScore(const bool maximizePositives = false);
  30. OP_API bool addBkgChannel(const PoseModel poseModel);
  31. }
  32. #endif // OPENPOSE_POSE_POSE_PARAMETERS_HPP
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...