MCPcopy Create free account
hub / github.com/NVlabs/RADIO / __init__

Method __init__

examples/common/model_loader.py:144–150  ·  view source on GitHub ↗
(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
143class 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

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected