Skip to content

Commit

Permalink
Merge pull request #596 from luxonis/yolo_iou_threshold
Browse files Browse the repository at this point in the history
Set default yolo iou threshold to 0.5
  • Loading branch information
SzabolcsGergely authored Sep 24, 2022
2 parents 875bd7b + 3a82ecd commit 4f9a8e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pipeline/node/DetectionNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ YoloDetectionNetwork::YoloDetectionNetwork(const std::shared_ptr<PipelineImpl>&
YoloDetectionNetwork::YoloDetectionNetwork(const std::shared_ptr<PipelineImpl>& par, int64_t nodeId, std::unique_ptr<Properties> props)
: NodeCRTP<DetectionNetwork, YoloDetectionNetwork, DetectionNetworkProperties>(par, nodeId, std::move(props)) {
properties.parser.nnFamily = DetectionNetworkType::YOLO;
properties.parser.iouThreshold = 0.5f;
}

void YoloDetectionNetwork::setNumClasses(const int numClasses) {
Expand Down

0 comments on commit 4f9a8e4

Please sign in to comment.