Skip to content

Commit 06cc7a6

Browse files
author
Admin
committed
HRESH for CONF and THRESHOLD for IOU is unified --THRESH
1 parent abcefd6 commit 06cc7a6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

retinaface/retina_mnet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define DEVICE 0 // GPU id
1414
#define BATCH_SIZE 1
1515
#define CONF_THRESH = 0.75
16-
#define IOU_THRESHOLD = 0.4
16+
#define IOU_THRESH = 0.4
1717

1818
// stuff we know about the network and the input/output blobs
1919
static const int INPUT_H = decodeplugin::INPUT_H; // H, W must be able to be divided by 32.
@@ -350,7 +350,7 @@ int main(int argc, char** argv) {
350350

351351
for (int b = 0; b < BATCH_SIZE; b++) {
352352
std::vector<decodeplugin::Detection> res;
353-
nms(res, &prob[b * OUTPUT_SIZE], IOU_THRESHOLD);
353+
nms(res, &prob[b * OUTPUT_SIZE], IOU_THRESH);
354354
std::cout << "number of detections -> " << prob[b * OUTPUT_SIZE] << std::endl;
355355
std::cout << " -> " << prob[b * OUTPUT_SIZE + 10] << std::endl;
356356
std::cout << "after nms -> " << res.size() << std::endl;

retinaface/retina_r50.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define DEVICE 0 // GPU id
1414
#define BATCH_SIZE 1
1515
#define CONF_THRESH = 0.75
16-
#define IOU_THRESHOLD = 0.4
16+
#define IOU_THRESH = 0.4
1717

1818
// stuff we know about the network and the input/output blobs
1919
static const int INPUT_H = decodeplugin::INPUT_H; // H, W must be able to be divided by 32.
@@ -371,7 +371,7 @@ int main(int argc, char** argv) {
371371

372372
for (int b = 0; b < BATCH_SIZE; b++) {
373373
std::vector<decodeplugin::Detection> res;
374-
nms(res, &prob[b * OUTPUT_SIZE], IOU_THRESHOLD);
374+
nms(res, &prob[b * OUTPUT_SIZE], IOU_THRESH);
375375
std::cout << "number of detections -> " << prob[b * OUTPUT_SIZE] << std::endl;
376376
std::cout << " -> " << prob[b * OUTPUT_SIZE + 10] << std::endl;
377377
std::cout << "after nms -> " << res.size() << std::endl;

0 commit comments

Comments
 (0)