Method
__init__
(self, clip_model, tokenizer, proc, adaptor_name, clip_mode = False, patch_size: int = 16, is_dynamic: bool = True)
Source from the content-addressed store, hash-verified
| 142 | |
| 143 | class SigLIP2Wrapper(CLIPWrapper): |
| 144 | def __init__(self, clip_model, tokenizer, proc, adaptor_name, clip_mode = False, patch_size: int = 16, is_dynamic: bool = True): |
| 145 | super().__init__(clip_model, tokenizer, adaptor_name, clip_mode) |
| 146 | self._patch_size = patch_size |
| 147 | self._proc = proc |
| 148 | self._is_dynamic = is_dynamic |
| 149 | |
| 150 | self.register_buffer('mask', torch.ones(1, 1, dtype=torch.int32)) |
| 151 | |
| 152 | @property |
| 153 | def patch_size(self): |
Callers
nothing calls this directly
Tested by
no test coverage detected