Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 505244177
  • Loading branch information
tensorflower-gardener authored and fyangf committed Mar 21, 2023
1 parent b50c213 commit a3fc656
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions official/vision/configs/retinanet.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,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
Expand Down
1 change: 1 addition & 0 deletions official/vision/modeling/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,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(
Expand Down

0 comments on commit a3fc656

Please sign in to comment.