Skip to content

Commit 5d2e73e

Browse files
authored
update addBatchedNMSLayer
1 parent 66f9d4f commit 5d2e73e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

common.hpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -341,15 +341,13 @@ IPluginV2Layer *addYoLoLayer(INetworkDefinition *network, std::map<std::string,
341341
yolo->setName("yolo_layer");
342342
return yolo;
343343
}
344-
/*
345-
// this is ok as well
344+
346345
IPluginV2Layer *addBatchedNMSLayer(INetworkDefinition *network, IPluginV2Layer *yolo, int num_classes, int top_k, int keep_top_k, float score_thresh, float iou_thresh, bool is_normalized = false, bool clip_boxes = false)
347346
{
348-
auto creator = getPluginRegistry()->getPluginCreator("CUSTOMNMS_TRT", "1");
347+
auto creator = getPluginRegistry()->getPluginCreator("BatchedNMS_TRT", "1");
349348
// Set plugin fields and the field collection
350349
const bool share_location = true;
351350
const int background_id = -1;
352-
353351
PluginField fields[9] = {
354352
PluginField{"shareLocation", &share_location,
355353
PluginFieldType::kINT32, 1},
@@ -378,8 +376,7 @@ IPluginV2Layer *addBatchedNMSLayer(INetworkDefinition *network, IPluginV2Layer *
378376
assert(batchednmslayer);
379377
return batchednmslayer;
380378
}
381-
*/
382-
379+
/*
383380
IPluginV2Layer *addBatchedNMSLayer(INetworkDefinition *network, IPluginV2Layer *yolo, int num_classes, int top_k, int keep_top_k, float score_thresh, float iou_thresh, bool is_normalized = false, bool clip_boxes = false)
384381
{
385382
nvinfer1::plugin::NMSParameters param;
@@ -403,5 +400,5 @@ IPluginV2Layer *addBatchedNMSLayer(INetworkDefinition *network, IPluginV2Layer *
403400
assert(batchednmslayer);
404401
return batchednmslayer;
405402
}
406-
403+
*/
407404
#endif

0 commit comments

Comments
 (0)