We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b50c213 commit a3fc656Copy full SHA for a3fc656
official/vision/configs/retinanet.py
@@ -135,6 +135,8 @@ class DetectionGenerator(hyperparams.Config):
135
)
136
# Return decoded boxes/scores even if apply_nms is set `True`.
137
return_decoded: Optional[bool] = None
138
+ # Only works when nms_version='v2'.
139
+ use_class_agnostic_nms: Optional[bool] = False
140
141
142
@dataclasses.dataclass
official/vision/modeling/factory.py
@@ -323,6 +323,7 @@ def build_retinanet(
323
soft_nms_sigma=generator_config.soft_nms_sigma,
324
tflite_post_processing_config=tflite_post_processing_config,
325
return_decoded=generator_config.return_decoded,
326
+ use_class_agnostic_nms=generator_config.use_class_agnostic_nms,
327
328
329
model = retinanet_model.RetinaNetModel(
0 commit comments