Skip to content

Commit a3fc656

Browse files
tensorflower-gardenerfyangf
authored andcommitted
Internal change
PiperOrigin-RevId: 505244177
1 parent b50c213 commit a3fc656

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

official/vision/configs/retinanet.py

+2
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ class DetectionGenerator(hyperparams.Config):
135135
)
136136
# Return decoded boxes/scores even if apply_nms is set `True`.
137137
return_decoded: Optional[bool] = None
138+
# Only works when nms_version='v2'.
139+
use_class_agnostic_nms: Optional[bool] = False
138140

139141

140142
@dataclasses.dataclass

official/vision/modeling/factory.py

+1
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ def build_retinanet(
323323
soft_nms_sigma=generator_config.soft_nms_sigma,
324324
tflite_post_processing_config=tflite_post_processing_config,
325325
return_decoded=generator_config.return_decoded,
326+
use_class_agnostic_nms=generator_config.use_class_agnostic_nms,
326327
)
327328

328329
model = retinanet_model.RetinaNetModel(

0 commit comments

Comments
 (0)