Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MediaBrain-SJTU/MVFA-AD
/ functions
Functions
142 in github.com/MediaBrain-SJTU/MVFA-AD
⨍
Functions
142
◇
Types & classes
28
Method
__len__
(self)
dataset/medical_few.py:70
Method
__len__
(self)
dataset/medical_zero.py:70
Method
__len__
(self)
dataset/medical_zero.py:217
Function
_convert_weights
(l)
CLIP/model.py:268
Method
_unlock
(x)
CLIP/transformer.py:442
Method
forward
(self, logit, target)
loss.py:34
Method
forward
(self, input, targets)
loss.py:93
Method
forward
(self, x)
CLIP/adapter.py:26
Method
forward
(self, x)
CLIP/adapter.py:42
Method
forward
(self, x: torch.Tensor)
CLIP/modified_resnet.py:79
Method
forward
(self, x)
CLIP/modified_resnet.py:105
Method
forward
(self, x)
CLIP/modified_resnet.py:210
Method
forward
(self, x: torch.Tensor)
CLIP/transformer.py:24
Method
forward
(self, x: torch.Tensor)
CLIP/transformer.py:33
Method
forward
(self, x: torch.Tensor)
CLIP/transformer.py:41
Method
forward
(self, x)
CLIP/transformer.py:51
Method
forward
(self, x)
CLIP/transformer.py:66
Method
forward
(self, x, attn_mask: Optional[torch.Tensor] = None)
CLIP/transformer.py:135
Method
forward
(self, x: torch.Tensor)
CLIP/transformer.py:186
Method
forward
( self, q_x: torch.Tensor, k_x: Optional[torch.Tensor] = None,
CLIP/transformer.py:243
Method
forward
(self, x: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)
CLIP/transformer.py:294
Method
forward
(self, x: torch.Tensor, out_layers: list = [3, 6, 9], attn_mask: Optional[torch.Tensor] = None
CLIP/transformer.py:326
Method
forward
(self, x: torch.Tensor, out_layers: list)
CLIP/transformer.py:485
Method
forward
(self, text)
CLIP/transformer.py:633
Method
forward
(self, image_embs, text_embs)
CLIP/transformer.py:736
Method
forward
(self, image, text)
CLIP/model.py:203
Method
forward
(self, image, text)
CLIP/model.py:253
Method
init_parameters
(self)
CLIP/transformer.py:710
Function
list_models
enumerate available model architectures based on config files
CLIP/clip.py:47
Method
lock
(self, unlocked_groups=0, freeze_bn_stats=False)
CLIP/modified_resnet.py:191
Method
lock_image_tower
(self, unlocked_groups=0, freeze_bn_stats=False)
CLIP/model.py:176
Method
lock_image_tower
(self, unlocked_groups=0, freeze_bn_stats=False)
CLIP/model.py:233
Method
lock_text_tower
(self, unlocked_layers: int = 0, freeze_layer_norm: bool = True)
CLIP/model.py:237
Function
parse
(x)
CLIP/transformer.py:13
Function
parse
(x)
CLIP/model.py:388
Function
rot90_img
(x,k)
utils.py:71
Method
set_grad_checkpointing
(self, enable=True)
CLIP/modified_resnet.py:199
Method
set_grad_checkpointing
(self, enable=True)
CLIP/transformer.py:476
Method
set_grad_checkpointing
(self, enable=True)
CLIP/transformer.py:610
Method
set_grad_checkpointing
(self, enable=True)
CLIP/transformer.py:759
Method
set_grad_checkpointing
(self, enable=True)
CLIP/model.py:241
Function
trace_model
(model, batch_size=256, device=torch.device('cpu'))
CLIP/model.py:371
← previous
101–142 of 142, ranked by callers