MCPcopy Create free account
hub / github.com/NVlabs/InstantSplat / __init__

Method __init__

dust3r/patch_embed.py:38–40  ·  view source on GitHub ↗
(self, img_size=224, patch_size=16, in_chans=3, embed_dim=768, norm_layer=None, flatten=True)

Source from the content-addressed store, hash-verified

36 """
37
38 def __init__(self, img_size=224, patch_size=16, in_chans=3, embed_dim=768, norm_layer=None, flatten=True):
39 self.embed_dim = embed_dim
40 super().__init__(img_size, patch_size, in_chans, embed_dim, norm_layer, flatten)
41
42 def forward(self, img, true_shape):
43 B, C, H, W = img.shape

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected