Skip to content

Commit c5f8578

Browse files
isak-jakobssonjohan-hultberg-work
authored andcommitted
Bugfix: misspelled variable conf_threshold
1 parent d37ad31 commit c5f8578

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

object-detection-yolov5/app/object_detection_yolov5.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ static void non_maximum_suppression(uint8_t* tensor,
174174
}
175175

176176
static void filter_detections(uint8_t* tensor,
177-
float conf_theshold,
177+
float conf_threshold,
178178
float iou_threshold,
179179
model_params_t* model_params,
180180
int* invalid_detections) {
@@ -184,7 +184,7 @@ static void filter_detections(uint8_t* tensor,
184184
model_params->quantization_zero_point) *
185185
model_params->quantization_scale;
186186

187-
if (object_likelihood < conf_theshold) {
187+
if (object_likelihood < conf_threshold) {
188188
invalid_detections[i] = 1;
189189
} else {
190190
invalid_detections[i] = 0;

0 commit comments

Comments
 (0)