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

Method __init__

examples/common/model_loader.py:286–299  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

284
285class OpenAI_CLIP_VisionAdapter(nn.Module):
286 def __init__(self, model):
287 super().__init__()
288 self.input_resolution = model.input_resolution
289 self.output_dim = model.output_dim
290 self.conv1 = model.conv1
291
292 self.class_embedding = model.class_embedding
293 self.positional_embedding = model.positional_embedding
294 self.ln_pre = model.ln_pre
295
296 self.transformer = model.transformer
297
298 self.ln_post = model.ln_post
299 self.proj = model.proj
300
301 @property
302 def patch_size(self):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected