Update YOLO node to use cxcywh box format for V8 box processing
This commit is contained in:
parent
bbf987fe87
commit
b4709b20cd
@ -49,7 +49,7 @@
|
||||
"model_w": 768,
|
||||
"model_h": 768,
|
||||
"num_classes": 11,
|
||||
"v8_box_format": "auto",
|
||||
"v8_box_format": "cxcywh",
|
||||
"v8_cls_activation": "auto",
|
||||
"conf": 0.25,
|
||||
"nms": 0.45,
|
||||
|
||||
@ -561,7 +561,7 @@ public:
|
||||
model_input_h_ = config.ValueOr<int>("model_h", 640);
|
||||
num_classes_ = config.ValueOr<int>("num_classes", 80);
|
||||
{
|
||||
const std::string bf = config.ValueOr<std::string>("v8_box_format", "auto");
|
||||
const std::string bf = config.ValueOr<std::string>("v8_box_format", "cxcywh");
|
||||
if (bf == "xyxy") {
|
||||
v8_box_format_ = V8BoxFormat::XyXy;
|
||||
} else if (bf == "xywh") {
|
||||
@ -1101,7 +1101,7 @@ private:
|
||||
int model_input_w_ = 640;
|
||||
int model_input_h_ = 640;
|
||||
int num_classes_ = 80;
|
||||
V8BoxFormat v8_box_format_ = V8BoxFormat::Auto;
|
||||
V8BoxFormat v8_box_format_ = V8BoxFormat::CxCyWh;
|
||||
V8ClsActivation v8_cls_activation_ = V8ClsActivation::Auto;
|
||||
YoloVersion yolo_version_ = YoloVersion::V8;
|
||||
bool auto_detect_version_ = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user