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

Fix device

parent 2015a9ae
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,7 @@ class FeatureMasking(nn.Module):
im_size = self.resize.apply_image(images[0]).shape[-3:-1]
### Pre-process images for the image encoder (Resize and Pad)
images = torch.stack([self.preprocess(x) for x in images], device=self.mask_generator.device)
images = torch.stack([self.preprocess(x) for x in images]).to(self.mask_generator.device)
### Encode images
image_embeddings, embed_no_red = self.mask_generator.image_encoder(images, before_channel_reduc=True) # [B x N, C, H, W]
......
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