提交 cf54fee3 编写于 作者: A A. Unique TensorFlower

Internal change

PiperOrigin-RevId: 505244177
上级 9946ad52
......@@ -139,6 +139,8 @@ class DetectionGenerator(hyperparams.Config):
)
# Return decoded boxes/scores even if apply_nms is set `True`.
return_decoded: Optional[bool] = None
# Only works when nms_version='v2'.
use_class_agnostic_nms: Optional[bool] = False
@dataclasses.dataclass
......
......@@ -324,6 +324,7 @@ def build_retinanet(
soft_nms_sigma=generator_config.soft_nms_sigma,
tflite_post_processing_config=tflite_post_processing_config,
return_decoded=generator_config.return_decoded,
use_class_agnostic_nms=generator_config.use_class_agnostic_nms,
)
model = retinanet_model.RetinaNetModel(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册