Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene123tw committed Dec 19, 2024
1 parent edf22a0 commit 53c635d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/otx/algo/detection/detectors/dfine/hybrid_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def build_2d_sincos_position_embedding(

return torch.concat([out_w.sin(), out_w.cos(), out_h.sin(), out_h.cos()], dim=1)[None, :, :]

def forward(self, feats: torch.Tensor) -> list[torch.Tensor]:
def forward(self, feats: Tensor) -> list[Tensor]:
"""Forward pass."""
if len(feats) != len(self.in_channels):
msg = f"Input feature size {len(feats)} does not match the number of input channels {len(self.in_channels)}"
Expand Down

0 comments on commit 53c635d

Please sign in to comment.