Use pathlib in DOTA ops (#7552)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
f6309b8e70
commit
9d4ffa43bc
6 changed files with 19 additions and 55 deletions
|
|
@ -198,12 +198,7 @@ class PromptEncoder(nn.Module):
|
|||
"""
|
||||
return self.pe_layer(self.image_embedding_size).unsqueeze(0)
|
||||
|
||||
def _embed_points(
|
||||
self,
|
||||
points: torch.Tensor,
|
||||
labels: torch.Tensor,
|
||||
pad: bool,
|
||||
) -> torch.Tensor:
|
||||
def _embed_points(self, points: torch.Tensor, labels: torch.Tensor, pad: bool) -> torch.Tensor:
|
||||
"""Embeds point prompts."""
|
||||
points = points + 0.5 # Shift to center of pixel
|
||||
if pad:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue