(
self,
pretrained_model_name_or_path: Optional[str] = None,
)
| 61 | |
| 62 | class 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): |
nothing calls this directly
no test coverage detected