↓ 6 callersMethod__init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
medclip/vision_model.py:15
↓ 3 callersMethod_soft_clip_losstake labels of images and sentences as a softlabel e.g., image_label = [1, 0, 1, -1], sentence_label = [0, 0, 1, -1] this pair has sim
medclip/losses.py:67
↓ 2 callersFunctionwindow_partition Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
medclip/vision_model.py:33
Method__init__(self, dim, window_size, num_heads, qkv_bias=True, qk_scale=None, attn_drop=0., proj_drop=0.)
medclip/vision_model.py:76
Method__init__(self, dim, input_resolution, num_heads, window_size=7, shift_size=0,
mlp_ratio=4., qkv_bias=
medclip/vision_model.py:178
Method__init__(self, dim, input_resolution, depth, num_heads, window_size,
mlp_ratio=4., qkv_bias=True, qk_
medclip/vision_model.py:354
Method__init__(self, img_size=256, patch_size=4, in_chans=1, embed_dim=128, norm_layer=None)
medclip/vision_model.py:415
Method__init__(self, img_size=256, patch_size=4, in_chans=1, proj_dim=512,
embed_dim=128, depths=[2, 2, 6,
medclip/vision_model.py:476
Method__init__(self, medclip_model, n_context, class_specific_context, num_class, mode, ensemble=True,
join
medclip/modeling_medclip.py:363