File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,8 @@ class DetectionGenerator(hyperparams.Config):
135
135
)
136
136
# Return decoded boxes/scores even if apply_nms is set `True`.
137
137
return_decoded : Optional [bool ] = None
138
+ # Only works when nms_version='v2'.
139
+ use_class_agnostic_nms : Optional [bool ] = False
138
140
139
141
140
142
@dataclasses .dataclass
Original file line number Diff line number Diff line change @@ -323,6 +323,7 @@ def build_retinanet(
323
323
soft_nms_sigma = generator_config .soft_nms_sigma ,
324
324
tflite_post_processing_config = tflite_post_processing_config ,
325
325
return_decoded = generator_config .return_decoded ,
326
+ use_class_agnostic_nms = generator_config .use_class_agnostic_nms ,
326
327
)
327
328
328
329
model = retinanet_model .RetinaNetModel (
You can’t perform that action at this time.
0 commit comments