Skip to content

Commit 5cf5f74

Browse files
committed
revert anchor generator
1 parent 546524b commit 5cf5f74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datumaro/plugins/anchor_generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def get_anchors(
183183
x_center + 0.5 * ws,
184184
y_center + 0.5 * hs,
185185
]
186-
base_anchors = torch.stack(base_anchors, dim=-1).to(self.device)
186+
base_anchors = torch.stack(base_anchors, dim=-1)
187187

188188
anchors = base_anchors[None, :, :] + shifts[:, None, :]
189189
anchors = anchors.view(-1, 4)

0 commit comments

Comments
 (0)