MCPcopy Create free account

hub / github.com/alinlab/SelfPatch / functions

Functions386 in github.com/alinlab/SelfPatch

Methodforward
(self, x)
segmentation/backbones/resnest.py:118
Methodforward
(self, x)
segmentation/backbones/resnest.py:227
Methodforward
(self, x, hw_shape, identity=None)
segmentation/backbones/mit.py:82
Methodforward
(self, x, hw_shape, identity=None)
segmentation/backbones/mit.py:149
Methodforward
(self, x, hw_shape)
segmentation/backbones/mit.py:239
Methodforward
(self, x)
segmentation/backbones/mit.py:393
Methodforward
Forward function.
segmentation/backbones/unet.py:79
Methodforward
Forward function.
segmentation/backbones/unet.py:140
Methodforward
Forward function.
segmentation/backbones/unet.py:214
Methodforward
(self, x)
segmentation/backbones/unet.py:404
Methodforward
(self, x)
segmentation/backbones/bisenetv2.py:96
Methodforward
(self, x)
segmentation/backbones/bisenetv2.py:171
Methodforward
(self, x)
segmentation/backbones/bisenetv2.py:288
Methodforward
(self, x)
segmentation/backbones/bisenetv2.py:355
Methodforward
(self, x)
segmentation/backbones/bisenetv2.py:424
Methodforward
(self, x_d, x_s)
segmentation/backbones/bisenetv2.py:523
Methodforward
(self, x)
segmentation/backbones/bisenetv2.py:615
Methodforward
(self, x)
segmentation/backbones/cgnet.py:38
Methodforward
(self, x)
segmentation/backbones/cgnet.py:143
Methodforward
(self, x)
segmentation/backbones/cgnet.py:180
Methodforward
(self, x)
segmentation/backbones/cgnet.py:335
Methodforward
(self, x)
segmentation/backbones/mobilenet_v3.py:245
Methodforward
(self, x)
segmentation/backbones/bisenetv1.py:77
Methodforward
(self, x)
segmentation/backbones/bisenetv1.py:122
Methodforward
(self, x)
segmentation/backbones/bisenetv1.py:196
Methodforward
(self, x_sp, x_cp)
segmentation/backbones/bisenetv1.py:254
Methodforward
(self, x)
segmentation/backbones/bisenetv1.py:324
Methodforward
Forward function.
segmentation/backbones/hrnet.py:191
Methodforward
Forward function.
segmentation/backbones/hrnet.py:596
Methodforward
(self, x)
segmentation/backbones/fast_scnn.py:76
Methodforward
(self, x)
segmentation/backbones/fast_scnn.py:186
Methodforward
(self, higher_res_feature, lower_res_feature)
segmentation/backbones/fast_scnn.py:257
Methodforward
(self, x)
segmentation/backbones/fast_scnn.py:401
Methodforward
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
Methodforward
(self, query, hw_shape)
segmentation/backbones/swin.py:177
Methodforward
(self, x, hw_shape)
segmentation/backbones/swin.py:354
Methodforward
(self, x, hw_shape)
segmentation/backbones/swin.py:451
Methodforward
(self, x)
segmentation/backbones/swin.py:736
Methodforward
(self, x)
segmentation/backbones/vit_SelfPatch.py:91
Methodforward
(self, inputs)
segmentation/backbones/vit_SelfPatch.py:366
Methodforward
(self, x)
segmentation/backbones/mobilenet_v2.py:166
Methodforward
Forward function.
segmentation/backbones/resnet.py:69
Methodforward
Forward function.
segmentation/backbones/resnet.py:267
Methodforward
Forward function.
segmentation/backbones/resnet.py:659
Methodforward_train
(self, imgs, img_metas, **kwargs)
segmentation/tools/deploy_test.py:66
Methodforward_train
(self, imgs, img_metas, **kwargs)
segmentation/tools/deploy_test.py:125
Functiongenerate_labels
(img_id, detail, out_dir)
segmentation/tools/convert_datasets/pascal_context.py:21
Functionget_params_groups
(model)
utils.py:612
Functionget_sha
()
utils.py:383
Methodglobal_avg
(self)
utils.py:246
Functionhas_batchnorms
(model)
utils.py:626
Methodinference
(self, data, *args, **kwargs)
segmentation/tools/torchserve/mmseg_handler.py:45
Functioninit_distributed_mode
(args)
utils.py:447
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
detection/backbone/vit_SelfPatch.py:224
Methodinit_weights
(self)
segmentation/backbones/mit.py:365
Methodinit_weights
(self)
segmentation/backbones/swin.py:661
Methodinit_weights
(self)
segmentation/backbones/vit_SelfPatch.py:262
Methodinitialize
(self, context)
segmentation/tools/torchserve/mmseg_handler.py:16
Functionload_pretrained_weights
(model, pretrained_weights, checkpoint_key, model_name, patch_size)
utils.py:71
Methodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``.
segmentation/backbones/resnest.py:309
Methodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``
segmentation/backbones/resnext.py:144
Methodmedian
(self)
utils.py:236
Functionmulti_scale
(samples, model)
utils.py:795
Methodno_weight_decay
(self)
detection/backbone/vit_SelfPatch.py:221
Methodnorm1
(self)
segmentation/backbones/vit_SelfPatch.py:259
Methodpostprocess
(self, data)
segmentation/tools/torchserve/mmseg_handler.py:49
Methodpreprocess
(self, data)
segmentation/tools/torchserve/mmseg_handler.py:33
Functionreduce_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
Functionrestart_from_checkpoint
Re-start from checkpoint
utils.py:132
Functionsave_on_master
(*args, **kwargs)
utils.py:427
Methodsimple_test
(self, img: torch.Tensor, img_meta: Iterable, **kwargs)
segmentation/tools/deploy_test.py:69
Methodsimple_test
(self, img: torch.Tensor, img_meta: Iterable, **kwargs)
segmentation/tools/deploy_test.py:128
Methodsynchronize_between_processes
Warning: does not synchronize the deque!
utils.py:222
Methodtrain
Convert the model into training mode while keep normalization layer freezed.
segmentation/backbones/unet.py:417
Methodtrain
Convert the model into training mode will keeping the normalization layer freezed.
segmentation/backbones/cgnet.py:364
Methodtrain
(self, mode=True)
segmentation/backbones/mobilenet_v3.py:261
Methodtrain
Convert the model into training mode will keeping the normalization layer freezed.
segmentation/backbones/hrnet.py:633
Methodtrain
Convert the model into training mode while keep layers freezed.
segmentation/backbones/swin.py:634
Methodtrain
(self, mode=True)
segmentation/backbones/vit_SelfPatch.py:386
Methodtrain
(self, mode=True)
segmentation/backbones/mobilenet_v2.py:191
Methodtrain
Convert the model into training mode while keep normalization layer freezed.
segmentation/backbones/resnet.py:676
Methodtrain_pca
Takes a covariance matrix (np.ndarray) as input.
utils.py:643
Methodvalue
(self)
utils.py:254
Functionvit_base
(patch_size=16, **kwargs)
selfpatch_vision_transformer.py:356
Functionvit_small
(patch_size=16, **kwargs)
selfpatch_vision_transformer.py:350
Functionvit_tiny
(patch_size=16, **kwargs)
selfpatch_vision_transformer.py:344
← previous301–386 of 386, ranked by callers