MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / __init__

Method __init__

eval_code/recons/models/fastmodel.py:28–38  ·  view source on GitHub ↗
(
            self,
            pretrained_model_name_or_path: Optional[str] = None,
        )

Source from the content-addressed store, hash-verified

26
27class VGGT(nn.Module):
28 def __init__(
29 self,
30 pretrained_model_name_or_path: Optional[str] = None,
31 ):
32 super().__init__()
33
34 if pretrained_model_name_or_path is not None:
35 from models.vggt.models.vggt import VGGT as VGGTModel
36 self.model = VGGTModel.from_pretrained(pretrained_model_name_or_path)
37 else:
38 raise NotImplementedError
39
40 def forward(self, images: torch.Tensor, query_points: torch.Tensor = None):
41 return self.model(images, query_points)

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
from_pretrainedMethod · 0.45

Tested by

no test coverage detected