Darknet/YOLO v3.0-149-gb11c9d5
Object Detection Framework
 
Loading...
Searching...
No Matches
darknet_enums.hpp File Reference

Some of the common Darknet/YOLO enums, and methods to convert between them and std::string. More...

Include dependency graph for darknet_enums.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  Darknet
 The namespace for the C++ Darknet API.
 

Enumerations

enum class  Darknet::EActivation {
  Darknet::LOGISTIC = ACTIVATION::LOGISTIC ,
  Darknet::RELU = ACTIVATION::RELU ,
  Darknet::RELU6 = ACTIVATION::RELU6 ,
  Darknet::RELIE = ACTIVATION::RELIE ,
  Darknet::LINEAR = ACTIVATION::LINEAR ,
  Darknet::RAMP = ACTIVATION::RAMP ,
  Darknet::TANH = ACTIVATION::TANH ,
  Darknet::PLSE = ACTIVATION::PLSE ,
  Darknet::REVLEAKY = ACTIVATION::REVLEAKY ,
  Darknet::LEAKY = ACTIVATION::LEAKY ,
  Darknet::ELU = ACTIVATION::ELU ,
  Darknet::LOGGY = ACTIVATION::LOGGY ,
  Darknet::STAIR = ACTIVATION::STAIR ,
  Darknet::HARDTAN = ACTIVATION::HARDTAN ,
  Darknet::LHTAN = ACTIVATION::LHTAN ,
  Darknet::SELU = ACTIVATION::SELU ,
  Darknet::GELU = ACTIVATION::GELU ,
  Darknet::SWISH = ACTIVATION::SWISH ,
  Darknet::MISH = ACTIVATION::MISH ,
  Darknet::HARD_MISH = ACTIVATION::HARD_MISH ,
  Darknet::NORM_CHAN = ACTIVATION::NORM_CHAN ,
  Darknet::NORM_CHAN_SOFTMAX = ACTIVATION::NORM_CHAN_SOFTMAX ,
  Darknet::NORM_CHAN_SOFTMAX_MAXVAL = ACTIVATION::NORM_CHAN_SOFTMAX_MAXVAL
}
 The plan is to eventually remove ACTIVATION completely once we fully switch over to C++. More...
 
enum class  Darknet::ECostType {
  Darknet::SSE = COST_TYPE::SSE ,
  Darknet::MASKED = COST_TYPE::MASKED ,
  Darknet::SMOOTH = COST_TYPE::SMOOTH
}
 The plan is to eventually remove COST_TYPE completely once we fully switch over to C++. More...
 
enum class  Darknet::EIoULoss {
  Darknet::IOU = IOU_LOSS::IOU ,
  Darknet::GIOU = IOU_LOSS::GIOU ,
  Darknet::MSE = IOU_LOSS::MSE ,
  Darknet::DIOU = IOU_LOSS::DIOU ,
  Darknet::CIOU = IOU_LOSS::CIOU
}
 The plan is to eventually remove IOU_LOSS completely once we fully switch over to C++. More...
 
enum class  Darknet::ELayerType {
  Darknet::CONVOLUTIONAL ,
  Darknet::CONNECTED ,
  Darknet::MAXPOOL ,
  Darknet::LOCAL_AVGPOOL ,
  Darknet::SOFTMAX ,
  Darknet::DROPOUT ,
  Darknet::ROUTE ,
  Darknet::COST ,
  Darknet::AVGPOOL ,
  Darknet::SHORTCUT ,
  Darknet::SCALE_CHANNELS ,
  Darknet::SAM ,
  Darknet::RNN ,
  Darknet::LSTM ,
  Darknet::CRNN ,
  Darknet::NETWORK ,
  Darknet::REGION ,
  Darknet::YOLO ,
  Darknet::GAUSSIAN_YOLO ,
  Darknet::REORG ,
  Darknet::UPSAMPLE ,
  Darknet::EMPTY ,
  Darknet::BLANK ,
  Darknet::CONTRASTIVE ,
  Darknet::LAYER_LAST_IDX = ELayerType::CONTRASTIVE
}
 This is the new C++ version of what used to be called LAYER_TYPE in the old C code. More...
 
enum class  Darknet::ELearningRatePolicy {
  Darknet::CONSTANT = learning_rate_policy::CONSTANT ,
  Darknet::STEP = learning_rate_policy::STEP ,
  Darknet::EXP = learning_rate_policy::EXP ,
  Darknet::POLY = learning_rate_policy::POLY ,
  Darknet::STEPS = learning_rate_policy::STEPS ,
  Darknet::SIG = learning_rate_policy::SIG ,
  Darknet::RANDOM = learning_rate_policy::RANDOM ,
  Darknet::SGDR = learning_rate_policy::SGDR
}
 The plan is to eventually remove learning_rate_policy completely once we fully switch over to C++. More...
 
enum class  Darknet::ENMSKind {
  Darknet::DEFAULT_NMS = NMS_KIND::DEFAULT_NMS ,
  Darknet::GREEDY_NMS = NMS_KIND::GREEDY_NMS ,
  Darknet::DIOU_NMS = NMS_KIND::DIOU_NMS ,
  Darknet::CORNERS_NMS = NMS_KIND::CORNERS_NMS
}
 The plan is to eventually remove NMS_KIND completely once we fully switch over to C++. More...
 
enum class  Darknet::EWeightsNormalization {
  Darknet::NO_NORMALIZATION = WEIGHTS_NORMALIZATION_T::NO_NORMALIZATION ,
  Darknet::RELU_NORMALIZATION = WEIGHTS_NORMALIZATION_T::RELU_NORMALIZATION ,
  Darknet::SOFTMAX_NORMALIZATION = WEIGHTS_NORMALIZATION_T::SOFTMAX_NORMALIZATION
}
 The plan is to eventually remove WEIGHTS_NORMALIZATION_T completely once we fully switch over to C++. More...
 
enum class  Darknet::EWeightsType {
  Darknet::NO_WEIGHTS = WEIGHTS_TYPE_T::NO_WEIGHTS ,
  Darknet::PER_FEATURE = WEIGHTS_TYPE_T::PER_FEATURE ,
  Darknet::PER_CHANNEL = WEIGHTS_TYPE_T::PER_CHANNEL
}
 The plan is to eventually remove WEIGHTS_TYPE_T completely once we fully switch over to C++. More...
 
enum class  Darknet::EYoloPoint {
  Darknet::YOLO_CENTER = YOLO_POINT::YOLO_CENTER ,
  Darknet::YOLO_LEFT_TOP = YOLO_POINT::YOLO_LEFT_TOP ,
  Darknet::YOLO_RIGHT_BOTTOM = YOLO_POINT::YOLO_RIGHT_BOTTOM
}
 The plan is to eventually remove YOLO_POINT completely once we fully switch over to C++. More...
 
const NamesAndLayersDarknet::all_names_and_layers ()
 Convert between names and Darknet/YOLO layer types.
 
ELayerType Darknet::get_layer_type_from_name (const std::string &name)
 Convert between names and Darknet/YOLO layer types.
 
using Darknet::NamesAndLayers = std::map< std::string, ELayerType >
 Convert between names and Darknet/YOLO layer types.
 
std::string Darknet::to_string (const ELayerType type)
 Convert between names and Darknet/YOLO layer types.
 
const NamesAndActivationTypesDarknet::all_names_and_activations ()
 Convert between names and activation types.
 
EActivation Darknet::get_activation_from_name (const std::string &name)
 Convert between names and activation types.
 
using Darknet::NamesAndActivationTypes = std::map< std::string, EActivation >
 Convert between names and activation types.
 
std::string Darknet::to_string (const EActivation activation)
 Convert between names and activation types.
 
const NamesAndLearningRatePoliciesDarknet::all_names_and_learning_rate_policies ()
 Convert between names and learning rate policies.
 
ELearningRatePolicy Darknet::get_learning_rate_policy_from_name (const std::string &name)
 Convert between names and learning rate policies.
 
using Darknet::NamesAndLearningRatePolicies = std::map< std::string, ELearningRatePolicy >
 Convert between names and learning rate policies.
 
std::string Darknet::to_string (const ELearningRatePolicy policy)
 Convert between names and learning rate policies.
 
const NamesAndIoULossDarknet::all_names_and_IoU_loss ()
 Convert between names and IoU loss types.
 
EIoULoss Darknet::get_IoU_loss_from_name (const std::string &name)
 Convert between names and IoU loss types.
 
using Darknet::NamesAndIoULoss = std::map< std::string, EIoULoss >
 Convert between names and IoU loss types.
 
std::string Darknet::to_string (const EIoULoss loss)
 Convert between names and IoU loss types.
 
const NamesAndNMSKindDarknet::all_names_and_NMS_kind ()
 Convert between names and NMS kind.
 
ENMSKind Darknet::get_NMS_kind_from_name (const std::string &name)
 Convert between names and NMS kind.
 
using Darknet::NamesAndNMSKind = std::map< std::string, ENMSKind >
 Convert between names and NMS kind.
 
std::string Darknet::to_string (const ENMSKind nms_kind)
 Convert between names and NMS kind.
 
const NamesAndWeightsTypeDarknet::all_names_and_weights_types ()
 Convert between names and weights types.
 
EWeightsType Darknet::get_weights_type_from_name (const std::string &name)
 Convert between names and weights types.
 
using Darknet::NamesAndWeightsType = std::map< std::string, EWeightsType >
 Convert between names and weights types.
 
std::string Darknet::to_string (const EWeightsType type)
 Convert between names and weights types.
 
const NamesAndWeightsNormalizationDarknet::all_names_and_weights_normalization ()
 Convert between names and weights normalization.
 
EWeightsNormalization Darknet::get_weights_normalization_from_name (const std::string &name)
 Convert between names and weights normalization.
 
using Darknet::NamesAndWeightsNormalization = std::map< std::string, EWeightsNormalization >
 Convert between names and weights normalization.
 
std::string Darknet::to_string (const EWeightsNormalization normalization)
 Convert between names and weights normalization.
 
const NamesAndCostTypesDarknet::all_names_and_cost_types ()
 Convert between names and cost types.
 
ECostType Darknet::get_cost_types_from_name (const std::string &name)
 Convert between names and cost types.
 
using Darknet::NamesAndCostTypes = std::map< std::string, ECostType >
 Convert between names and cost types.
 
std::string Darknet::to_string (const ECostType type)
 Convert between names and cost types.
 
const NamesAndYoloPointTypesDarknet::all_names_and_yolo_point_types ()
 Convert between names and YOLO point types.
 
EYoloPoint Darknet::get_yolo_point_types_from_name (const std::string &name)
 Convert between names and YOLO point types.
 
using Darknet::NamesAndYoloPointTypes = std::map< std::string, EYoloPoint >
 Convert between names and YOLO point types.
 
std::string Darknet::to_string (const EYoloPoint type)
 Convert between names and YOLO point types.
 

Detailed Description

Some of the common Darknet/YOLO enums, and methods to convert between them and std::string.