mirror of
https://github.com/ultralytics/ultralytics
synced 2026-04-21 14:07:18 +00:00
Fix SAM3 presence logits clamp being a no-op (#24213)
This commit is contained in:
parent
117accf360
commit
1bf46217d6
1 changed files with 1 additions and 1 deletions
|
|
@ -522,7 +522,7 @@ class TransformerDecoder(nn.Module):
|
|||
|
||||
# clamp to mitigate numerical issues
|
||||
if self.clamp_presence_logits:
|
||||
intermediate_layer_presence_logits.clamp(
|
||||
intermediate_layer_presence_logits.clamp_(
|
||||
min=-self.clamp_presence_logit_max_val,
|
||||
max=self.clamp_presence_logit_max_val,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue