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

Method __init__

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

Source from the content-addressed store, hash-verified

61
62class G2VLM(nn.Module):
63 def __init__(
64 self,
65 pretrained_model_name_or_path: Optional[str] = None,
66 ):
67 super().__init__()
68 from g2vlm_utils import load_model_and_tokenizer_from_path
69 self.model, self.tokenizer, self.new_token_ids,self.vit_image_transform, self.dino_transform = load_model_and_tokenizer_from_path(pretrained_model_name_or_path)
70
71
72 def forward(self, images: torch.Tensor):

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected