Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 723962946
  • Loading branch information
tensorflower-gardener committed Feb 6, 2025
1 parent 17bf360 commit d31fac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions official/projects/detr/tasks/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ def _compute_cost(self, cls_outputs, box_outputs, cls_targets, box_targets):
total_cost = cls_cost + box_cost + giou_cost

max_cost = (
self._task_config.losses.lambda_cls * 0.0
self._task_config.losses.lambda_cls * 1.0
+ self._task_config.losses.lambda_box * 4.0
+ self._task_config.losses.lambda_giou * 0.0
+ self._task_config.losses.lambda_giou * 1.0
)

# Set pads to large constant
Expand Down

0 comments on commit d31fac8

Please sign in to comment.