-
Notifications
You must be signed in to change notification settings - Fork 94
/
Copy pathefficientRotatedNMSParameters.h
62 lines (54 loc) · 1.86 KB
/
efficientRotatedNMSParameters.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* SPDX-FileCopyrightText: Copyright (c) 1993-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef TRT_EFFICIENT_ROTATED_NMS_PARAMETERS_H
#define TRT_EFFICIENT_ROTATED_NMS_PARAMETERS_H
#include "common/plugin.h"
namespace nvinfer1
{
namespace plugin
{
struct EfficientRotatedNMSParameters
{
// Related to RotatedNMS Options
float iouThreshold = 0.5F;
float scoreThreshold = 0.5F;
int32_t numOutputBoxes = 100;
int32_t numOutputBoxesPerClass = -1;
bool padOutputBoxesPerClass = false;
int32_t backgroundClass = -1;
bool scoreSigmoid = false;
bool clipBoxes = false;
int32_t boxCoding = 0;
bool classAgnostic = false;
// Related to RotatedNMS Internals
int32_t numSelectedBoxes = 4096;
int32_t scoreBits = -1;
// Related to Tensor Configuration
// (These are set by the various plugin configuration methods, no need to define them during plugin creation.)
int32_t batchSize = -1;
int32_t numClasses = 1;
int32_t numBoxElements = -1;
int32_t numScoreElements = -1;
int32_t numAnchors = -1;
bool shareLocation = true;
bool shareAnchors = true;
bool boxDecoder = false;
nvinfer1::DataType datatype = nvinfer1::DataType::kFLOAT;
};
} // namespace plugin
} // namespace nvinfer1
#endif