MCPcopy Create free account
hub / github.com/catalys1/mae-pytorch / embed

Method embed

mae.py:212–213  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

210 return self.tokens_as_image(x)
211
212 def embed(self, x: torch.Tensor):
213 return self.embed_conv(x).flatten(2).transpose(1, 2)
214
215 def mask_input(self, x: torch.Tensor):
216 '''Mask the image patches uniformly at random, as described in the paper: the patch tokens are

Callers 2

forward_featuresMethod · 0.95
forwardMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected