File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
1919static 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;
Original file line number Diff line number Diff line change 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
1919static 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;
You can’t perform that action at this time.
0 commit comments