MCPcopy Create free account
hub / github.com/Ropedia/SpatialBench / get_patch_embed

Function get_patch_embed

benchmark/models/stream3r/dust3r/patch_embed.py:18–21  ·  view source on GitHub ↗
(patch_embed_cls, img_size, patch_size, enc_embed_dim)

Source from the content-addressed store, hash-verified

16
17
18def get_patch_embed(patch_embed_cls, img_size, patch_size, enc_embed_dim):
19 assert patch_embed_cls in ["PatchEmbedDust3R", "ManyAR_PatchEmbed"]
20 patch_embed = eval(patch_embed_cls)(img_size, patch_size, 3, enc_embed_dim)
21 return patch_embed
22
23
24class PatchEmbedDust3R(PatchEmbed):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected