Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Hao840/OFAKD
/ functions
Functions
201 in github.com/Hao840/OFAKD
⨍
Functions
201
◇
Types & classes
48
Method
_init_weights
(self, m)
custom_model/vip.py:183
Function
beitv2_base_patch16_224
(pretrained=False, **kwargs)
custom_model/beitv2.py:8
Function
beitv2_large_patch16_224
(pretrained=False, **kwargs)
custom_model/beitv2.py:17
Method
cls_init_weights
(self, m)
custom_model/cycle_mlp.py:298
Method
cls_init_weights
(self, m)
custom_model/hire_mlp.py:265
Method
conv_bn
(inp, oup, stride)
custom_model/mobilenetv1.py:13
Method
conv_dw
(inp, oup, stride)
custom_model/mobilenetv1.py:20
Method
cuda
(self, *args, **kwargs)
distillers/crd.py:126
Method
extra_repr
(self)
custom_model/cycle_mlp.py:133
Function
forward
(self, x, requires_feat=False)
custom_forward/vip.py:8
Function
forward
(self, x, requires_feat=False)
custom_forward/cycle_mlp.py:8
Function
forward
(self, x, requires_feat=False)
custom_forward/hire_mlp.py:8
Function
forward
(self, x, requires_feat=False)
custom_forward/beit.py:27
Function
forward
(self, x, requires_feat=False)
custom_forward/convnext.py:8
Function
forward
(self, x, requires_feat=False)
custom_forward/swin_transformer.py:8
Function
forward
(self, x, requires_feat=False)
custom_forward/mobilenetv1.py:10
Function
forward
(self, x, requires_feat=False)
custom_forward/mlp_mixer.py:8
Function
forward
(self, x, requires_feat=False)
custom_forward/efficientnet.py:8
Function
forward
(self, x, requires_feat=False)
custom_forward/resnet.py:29
Function
forward
(self, x, requires_feat=False)
custom_forward/vision_transformer.py:10
Method
forward
(self, image, label, *args, **kwargs)
distillers/fitnet.py:33
Method
forward
(self, image, label, *args, **kwargs)
distillers/crd.py:27
Method
forward
(self, x)
distillers/crd.py:58
Method
forward
(self, x)
distillers/crd.py:72
Method
forward
(self, x)
distillers/crd.py:86
Method
forward
(self, v1, v2, y, idx=None)
distillers/crd.py:130
Method
forward
(self, image, label, *args, **kwargs)
distillers/_base.py:14
Method
forward
(self, image, label, *args, **kwargs)
distillers/_base.py:39
Method
forward
(self, image, label, *args, **kwargs)
distillers/ofa.py:108
Method
forward
(self, image, label, *args, **kwargs)
distillers/rkd.py:15
Method
forward
x: B, H*W, C
distillers/utils.py:20
Method
forward
(self, x)
distillers/utils.py:49
Method
forward
(self, x)
distillers/utils.py:62
Method
forward
(self, x)
distillers/utils.py:84
Method
forward
(self, x)
distillers/utils.py:104
Method
forward
(self, x)
distillers/utils.py:113
Method
forward
(self, x)
distillers/utils.py:144
Method
forward
(self, x)
distillers/utils.py:214
Method
forward
(self, image, label, *args, **kwargs)
distillers/correlation.py:19
Method
forward
(self, x)
distillers/correlation.py:44
Method
forward
(self, image, label, *args, **kwargs)
distillers/dist.py:14
Method
forward
(self, image, label, *args, **kwargs)
distillers/kd.py:16
Method
forward
(self, image, label, *args, **kwargs)
distillers/kd.py:39
Method
forward
(self, image, label, *args, **kwargs)
distillers/dkd.py:15
Method
forward
(self, x)
custom_model/vip.py:37
Method
forward
(self, x)
custom_model/vip.py:60
Method
forward
(self, x)
custom_model/vip.py:99
Method
forward
(self, x)
custom_model/vip.py:113
Method
forward
(self, x)
custom_model/vip.py:126
Method
forward
(self, x)
custom_model/vip.py:212
Method
forward
(self, x)
custom_model/cycle_mlp.py:45
Method
forward
Args: input (Tensor[batch_size, in_channels, in_height, in_width]): input tensor
custom_model/cycle_mlp.py:124
Method
forward
(self, x)
custom_model/cycle_mlp.py:160
Method
forward
(self, x)
custom_model/cycle_mlp.py:193
Method
forward
(self, x)
custom_model/cycle_mlp.py:215
Method
forward
(self, x)
custom_model/cycle_mlp.py:229
Method
forward
(self, x)
custom_model/cycle_mlp.py:338
Method
forward
(self, x)
custom_model/hire_mlp.py:35
Method
forward
h: H x W x C -> H/pixel x W x C*pixel w: H x W x C -> H x W/pixel x C*pixel Setting of F.pad: (left, right, top, bottom)
custom_model/hire_mlp.py:74
Method
forward
(self, x)
custom_model/hire_mlp.py:172
Method
forward
(self, x)
custom_model/hire_mlp.py:194
Method
forward
(self, x)
custom_model/hire_mlp.py:212
Method
forward
(self, x)
custom_model/hire_mlp.py:291
Method
forward
(self, x)
custom_model/mobilenetv1.py:49
Function
forward_features
(self, x, requires_feat)
custom_forward/beit.py:10
Function
forward_features
(self, x, requires_feat)
custom_forward/convnext.py:22
Function
forward_features
(self, x, requires_feat)
custom_forward/swin_transformer.py:22
Function
forward_features
(self, x, requires_feat)
custom_forward/mlp_mixer.py:25
Function
forward_features
(self, x, requires_feat)
custom_forward/efficientnet.py:22
Function
forward_features
(self, x, requires_feat)
custom_forward/resnet.py:9
Function
forward_features
(self, x, requires_feat)
custom_forward/vision_transformer.py:24
Method
get_classifier
(self)
custom_model/vip.py:192
Method
get_classifier
(self)
custom_model/cycle_mlp.py:310
Function
hire_mlp_base
(pretrained=False, pretrained_cfg=None, **kwargs)
custom_model/hire_mlp.py:338
Function
hire_mlp_large
(pretrained=False, pretrained_cfg=None, **kwargs)
custom_model/hire_mlp.py:357
Function
hire_mlp_small
(pretrained=False, pretrained_cfg=None, **kwargs)
custom_model/hire_mlp.py:319
Function
hire_mlp_tiny
(pretrained=False, pretrained_cfg=None, **kwargs)
custom_model/hire_mlp.py:300
Function
init_weights
(module)
distillers/utils.py:148
Function
mobilenetv1
(pretrained=False, **kwargs)
custom_model/mobilenetv1.py:61
Function
patchify
imgs: (N, C, H, W) x: (N, L, patch_size**2, C)
distillers/utils.py:194
Function
register_distiller
(fn)
distillers/registry.py:7
Function
register_method
(fn)
custom_forward/registry.py:8
Method
reset_classifier
(self, num_classes, global_pool='')
custom_model/vip.py:195
Method
reset_classifier
(self, num_classes, global_pool='')
custom_model/cycle_mlp.py:313
Function
stage_info
(self, stage)
custom_forward/vip.py:30
Function
stage_info
(self, stage)
custom_forward/cycle_mlp.py:30
Function
stage_info
(self, stage)
custom_forward/hire_mlp.py:26
Function
stage_info
(self, stage)
custom_forward/beit.py:41
Function
stage_info
(self, stage)
custom_forward/convnext.py:36
Function
stage_info
(self, stage)
custom_forward/swin_transformer.py:40
Function
stage_info
(self, stage)
custom_forward/mobilenetv1.py:28
Function
stage_info
(self, stage)
custom_forward/mlp_mixer.py:39
Function
stage_info
(self, stage)
custom_forward/efficientnet.py:40
Function
stage_info
(self, stage)
custom_forward/resnet.py:43
Function
stage_info
(self, stage)
custom_forward/vision_transformer.py:40
Function
swin_nano_patch4_window7_224
Swin-M @ 224x224, trained ImageNet-1k
custom_model/swin_transformer.py:8
Function
swin_pico_patch4_window7_224
Swin-M @ 224x224, trained ImageNet-1k
custom_model/swin_transformer.py:17
Function
vip_l7
(pretrained=False, pretrained_cfg=None, **kwargs)
custom_model/vip.py:263
Function
vip_m7
(pretrained=False, pretrained_cfg=None, **kwargs)
custom_model/vip.py:249
Function
vip_s14
(pretrained=False, pretrained_cfg=None, **kwargs)
custom_model/vip.py:221
← previous
next →
101–200 of 201, ranked by callers