Skip to content
Snippets Groups Projects
Commit d1a1be78 authored by Alexandre Chapin's avatar Alexandre Chapin :race_car:
Browse files

Add device to transformer

parent 5bfbc749
No related branches found
No related tags found
No related merge requests found
...@@ -134,6 +134,7 @@ class MaskDecoder(nn.Module): ...@@ -134,6 +134,7 @@ class MaskDecoder(nn.Module):
b, c, h, w = src.shape b, c, h, w = src.shape
self.transformer.to(src.device)
# Run the transformer # Run the transformer
hs, src = self.transformer(src, pos_src, tokens) hs, src = self.transformer(src, pos_src, tokens)
iou_token_out = hs[:, 0, :] iou_token_out = hs[:, 0, :]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment