Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alinlab/SelfPatch
/ functions
Functions
386 in github.com/alinlab/SelfPatch
⨍
Functions
386
◇
Types & classes
81
Method
forward
(self, x)
segmentation/backbones/resnest.py:118
Method
forward
(self, x)
segmentation/backbones/resnest.py:227
Method
forward
(self, x, hw_shape, identity=None)
segmentation/backbones/mit.py:82
Method
forward
(self, x, hw_shape, identity=None)
segmentation/backbones/mit.py:149
Method
forward
(self, x, hw_shape)
segmentation/backbones/mit.py:239
Method
forward
(self, x)
segmentation/backbones/mit.py:393
Method
forward
Forward function.
segmentation/backbones/unet.py:79
Method
forward
Forward function.
segmentation/backbones/unet.py:140
Method
forward
Forward function.
segmentation/backbones/unet.py:214
Method
forward
(self, x)
segmentation/backbones/unet.py:404
Method
forward
(self, x)
segmentation/backbones/bisenetv2.py:96
Method
forward
(self, x)
segmentation/backbones/bisenetv2.py:171
Method
forward
(self, x)
segmentation/backbones/bisenetv2.py:288
Method
forward
(self, x)
segmentation/backbones/bisenetv2.py:355
Method
forward
(self, x)
segmentation/backbones/bisenetv2.py:424
Method
forward
(self, x_d, x_s)
segmentation/backbones/bisenetv2.py:523
Method
forward
(self, x)
segmentation/backbones/bisenetv2.py:615
Method
forward
(self, x)
segmentation/backbones/cgnet.py:38
Method
forward
(self, x)
segmentation/backbones/cgnet.py:143
Method
forward
(self, x)
segmentation/backbones/cgnet.py:180
Method
forward
(self, x)
segmentation/backbones/cgnet.py:335
Method
forward
(self, x)
segmentation/backbones/mobilenet_v3.py:245
Method
forward
(self, x)
segmentation/backbones/bisenetv1.py:77
Method
forward
(self, x)
segmentation/backbones/bisenetv1.py:122
Method
forward
(self, x)
segmentation/backbones/bisenetv1.py:196
Method
forward
(self, x_sp, x_cp)
segmentation/backbones/bisenetv1.py:254
Method
forward
(self, x)
segmentation/backbones/bisenetv1.py:324
Method
forward
Forward function.
segmentation/backbones/hrnet.py:191
Method
forward
Forward function.
segmentation/backbones/hrnet.py:596
Method
forward
(self, x)
segmentation/backbones/fast_scnn.py:76
Method
forward
(self, x)
segmentation/backbones/fast_scnn.py:186
Method
forward
(self, higher_res_feature, lower_res_feature)
segmentation/backbones/fast_scnn.py:257
Method
forward
(self, x)
segmentation/backbones/fast_scnn.py:401
Method
forward
Args: x (tensor): input features with shape of (num_windows*B, N, C) mask (tensor | None, Optional): mask with shape
segmentation/backbones/swin.py:78
Method
forward
(self, query, hw_shape)
segmentation/backbones/swin.py:177
Method
forward
(self, x, hw_shape)
segmentation/backbones/swin.py:354
Method
forward
(self, x, hw_shape)
segmentation/backbones/swin.py:451
Method
forward
(self, x)
segmentation/backbones/swin.py:736
Method
forward
(self, x)
segmentation/backbones/vit_SelfPatch.py:91
Method
forward
(self, inputs)
segmentation/backbones/vit_SelfPatch.py:366
Method
forward
(self, x)
segmentation/backbones/mobilenet_v2.py:166
Method
forward
Forward function.
segmentation/backbones/resnet.py:69
Method
forward
Forward function.
segmentation/backbones/resnet.py:267
Method
forward
Forward function.
segmentation/backbones/resnet.py:659
Method
forward_train
(self, imgs, img_metas, **kwargs)
segmentation/tools/deploy_test.py:66
Method
forward_train
(self, imgs, img_metas, **kwargs)
segmentation/tools/deploy_test.py:125
Function
generate_labels
(img_id, detail, out_dir)
segmentation/tools/convert_datasets/pascal_context.py:21
Function
get_params_groups
(model)
utils.py:612
Function
get_sha
()
utils.py:383
Method
global_avg
(self)
utils.py:246
Function
has_batchnorms
(model)
utils.py:626
Method
inference
(self, data, *args, **kwargs)
segmentation/tools/torchserve/mmseg_handler.py:45
Function
init_distributed_mode
(args)
utils.py:447
Method
init_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
detection/backbone/vit_SelfPatch.py:224
Method
init_weights
(self)
segmentation/backbones/mit.py:365
Method
init_weights
(self)
segmentation/backbones/swin.py:661
Method
init_weights
(self)
segmentation/backbones/vit_SelfPatch.py:262
Method
initialize
(self, context)
segmentation/tools/torchserve/mmseg_handler.py:16
Function
load_pretrained_weights
(model, pretrained_weights, checkpoint_key, model_name, patch_size)
utils.py:71
Method
make_res_layer
Pack all blocks in a stage into a ``ResLayer``.
segmentation/backbones/resnest.py:309
Method
make_res_layer
Pack all blocks in a stage into a ``ResLayer``
segmentation/backbones/resnext.py:144
Method
median
(self)
utils.py:236
Function
multi_scale
(samples, model)
utils.py:795
Method
no_weight_decay
(self)
detection/backbone/vit_SelfPatch.py:221
Method
norm1
(self)
segmentation/backbones/vit_SelfPatch.py:259
Method
postprocess
(self, data)
segmentation/tools/torchserve/mmseg_handler.py:49
Method
preprocess
(self, data)
segmentation/tools/torchserve/mmseg_handler.py:33
Function
reduce_dict
Args: input_dict (dict): all the values will be reduced average (bool): whether to do average or sum Reduce the values in the
utils.py:266
Function
restart_from_checkpoint
Re-start from checkpoint
utils.py:132
Function
save_on_master
(*args, **kwargs)
utils.py:427
Method
simple_test
(self, img: torch.Tensor, img_meta: Iterable, **kwargs)
segmentation/tools/deploy_test.py:69
Method
simple_test
(self, img: torch.Tensor, img_meta: Iterable, **kwargs)
segmentation/tools/deploy_test.py:128
Method
synchronize_between_processes
Warning: does not synchronize the deque!
utils.py:222
Method
train
Convert the model into training mode while keep normalization layer freezed.
segmentation/backbones/unet.py:417
Method
train
Convert the model into training mode will keeping the normalization layer freezed.
segmentation/backbones/cgnet.py:364
Method
train
(self, mode=True)
segmentation/backbones/mobilenet_v3.py:261
Method
train
Convert the model into training mode will keeping the normalization layer freezed.
segmentation/backbones/hrnet.py:633
Method
train
Convert the model into training mode while keep layers freezed.
segmentation/backbones/swin.py:634
Method
train
(self, mode=True)
segmentation/backbones/vit_SelfPatch.py:386
Method
train
(self, mode=True)
segmentation/backbones/mobilenet_v2.py:191
Method
train
Convert the model into training mode while keep normalization layer freezed.
segmentation/backbones/resnet.py:676
Method
train_pca
Takes a covariance matrix (np.ndarray) as input.
utils.py:643
Method
value
(self)
utils.py:254
Function
vit_base
(patch_size=16, **kwargs)
selfpatch_vision_transformer.py:356
Function
vit_small
(patch_size=16, **kwargs)
selfpatch_vision_transformer.py:350
Function
vit_tiny
(patch_size=16, **kwargs)
selfpatch_vision_transformer.py:344
← previous
301–386 of 386, ranked by callers