MCPcopy Create free account

hub / github.com/microsoft/Cream / functions

Functions4,396 in github.com/microsoft/Cream

↓ 768 callersMethodformat
(self, record)
CDARTS/CDARTS_segmentation/tools/engine/logger.py:15
↓ 458 callersMethodsize
(self)
CDARTS/CDARTS_detection/mmcv/video/io.py:37
↓ 220 callersFunctionprint
(*args, **kwargs)
AutoFormer/lib/utils.py:172
↓ 193 callersMethodto
(self, device)
iRPE/DETR-with-iRPE/util/misc.py:288
↓ 102 callersMethodload_state_dict
(self, state_dict, strict=True)
TinyCLIP/src/open_clip/model.py:1049
↓ 97 callersMethodget
(self, key, default=None)
CDARTS/CDARTS_detection/mmcv/video/io.py:47
↓ 93 callersMethodstate_dict
(self)
TinyViT/tinyvit_utils.py:72
↓ 88 callersFunction_cfg
(url='', **kwargs)
CDARTS/CDARTS_detection/mmdet/models/backbones/efficientnet.py:181
↓ 87 callersMethodget
(self, key)
CDARTS/CDARTS_detection/mmdet/utils/registry.py:25
↓ 87 callersMethodrandint
(a, b)
TinyViT/data/augmentation/aug_random.py:32
↓ 71 callersMethodtolist
(self, remove_str)
CDARTS/benchmark201/utils/genotypes.py:195
↓ 59 callersMethodstack
(self)
CDARTS/CDARTS_detection/mmcv/parallel/data_container.py:67
↓ 56 callersMethodwrite
(self, key: str, value: bytes)
TinyViT/data/augmentation/manager.py:15
↓ 52 callersMethodchoice
(a, size, *args, **kwargs)
TinyViT/data/augmentation/aug_random.py:44
↓ 51 callersMethodlog
(self, runner)
CDARTS/CDARTS_detection/mmcv/runner/hooks/logger/base.py:24
↓ 49 callersMethodupdate
Update statistics
CDARTS/lib/utils/utils.py:25
↓ 45 callersFunction_gen_efficientnet
Creates an EfficientNet model. Ref impl: https://github.com/tensorflow/tpu/blob/master/models/official/efficientnet/efficientnet_model.py Pap
CDARTS/CDARTS_detection/mmdet/models/backbones/efficientnet.py:879
↓ 45 callersMethodzero_grad
(self)
TinyCLIP/src/training/optimizer.py:18
↓ 42 callersMethodmax
(self)
AutoFormer/lib/utils.py:57
↓ 42 callersFunctiontrunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the normal distributi
AutoFormer/model/utils.py:44
↓ 40 callersFunction_pcfg
(url='', hf_hub='', mean=None, std=None)
TinyCLIP/src/open_clip/pretrained.py:23
↓ 39 callersFunctionprint
(*args, **kwargs)
EfficientViT/classification/utils.py:175
↓ 37 callersFunctionprint
(*args, **kwargs)
MiniViT/Mini-DeiT/utils.py:177
↓ 36 callersMethodnorm
(self)
CDARTS/CDARTS_detection/mmdet/models/utils/conv_module.py:142
↓ 36 callersMethodupdate
(self, val, n=1)
TinyViT/my_meter.py:35
↓ 35 callersMethodrandom
()
TinyViT/data/augmentation/aug_random.py:24
↓ 34 callersMethoddim
(self)
CDARTS/CDARTS_detection/mmcv/parallel/data_container.py:83
↓ 34 callersMethoduniform
(a, b)
TinyViT/data/augmentation/aug_random.py:28
↓ 33 callersFunctionnormal_init
(module, mean=0, std=1, bias=0)
CDARTS/CDARTS_detection/mmcv/cnn/weight_init.py:20
↓ 33 callersMethodstep
(self)
CDARTS/CDARTS_detection/mmdet/models/backbones/dropblock.py:146
↓ 30 callersFunctionprint
(*args, **kwargs)
iRPE/DETR-with-iRPE/util/misc.py:369
↓ 30 callersMethodupdate
(self, val, n=1)
TinyCLIP/src/training/my_meter.py:35
↓ 29 callersFunctionprint
(*args, **kwargs)
iRPE/DeiT-with-iRPE/utils.py:179
↓ 28 callersMethodbackward
(ctx, grad_output)
CDARTS/CDARTS_segmentation/train/layers.py:42
↓ 28 callersFunctionbbox2roi
Convert a list of bboxes to roi format. Args: bbox_list (list[Tensor]): a list of bboxes corresponding to a batch of images.
CDARTS/CDARTS_detection/mmdet/core/bbox/transforms.py:106
↓ 27 callersFunction_cfg
(url='', **kwargs)
CDARTS/CDARTS_segmentation/train/cydas.py:87
↓ 27 callersMethodset_ratio
(self, ratio)
CDARTS/CDARTS_segmentation/train/operations.py:902
↓ 27 callersMethodupdate
Update statistics
CDARTS/benchmark201/utils/utils.py:42
↓ 24 callersFunctionbuild_conv_layer
Build convolution layer Args: cfg (None or dict): cfg should contain: type (str): identify conv layer type. laye
CDARTS/CDARTS_detection/mmdet/models/utils/conv_module.py:18
↓ 23 callersFunctionget_dist_info
()
CDARTS/CDARTS_detection/mmcv/runner/utils.py:17
↓ 23 callersMethodloss
(self, grid_pred, grid_targets)
CDARTS/CDARTS_detection/mmdet/models/mask_heads/grid_head.py:288
↓ 23 callersMethodread
Read the next frame. If the next frame have been decoded before and in the cache, then return it directly, otherwise decode, cache an
CDARTS/CDARTS_detection/mmcv/video/io.py:142
↓ 23 callersMethodupdate
(self, vars, count=1)
CDARTS/CDARTS_detection/mmcv/runner/log_buffer.py:23
↓ 22 callersFunctionis_master
(args, local=False)
TinyCLIP/src/training/distributed.py:19
↓ 21 callersFunctionbuild_norm_layer
Build normalization layer Args: cfg (dict): cfg should contain: type (str): identify norm layer type. layer args
CDARTS/CDARTS_detection/mmdet/models/utils/norm.py:12
↓ 20 callersFunctionaccuracy
Computes the precision@k for the specified values of k
CDARTS/lib/utils/utils.py:66
↓ 20 callersFunctionconstant_init
(module, val, bias=0)
CDARTS/CDARTS_detection/mmcv/cnn/weight_init.py:4
↓ 20 callersMethodstate_dict
(self)
TinyCLIP/src/training/optimizer.py:12
↓ 20 callersMethodupdate
(self, val, n=1)
MiniViT/Mini-Swin/my_meter.py:16
↓ 19 callersMethoddecode
(self, tokens)
TinyCLIP/src/open_clip/tokenizer.py:149
↓ 17 callersFunctionkaiming_init
(module, a=0, mode='fan_out', nonlinearity='relu',
CDARTS/CDARTS_detection/mmcv/cnn/weight_init.py:32
↓ 17 callersMethodprune
(self)
TinyCLIP/src/open_clip/model.py:139
↓ 16 callersMethodrand
(*shape)
TinyViT/data/augmentation/aug_random.py:56
↓ 16 callersMethodread
(self, key: str)
TinyViT/data/augmentation/manager.py:75
↓ 15 callersMethodnorm1
(self)
CDARTS/CDARTS_detection/mmdet/models/backbones/hrnet.py:305
↓ 15 callersMethodtrain
(self, mode=True)
TinyViT/models/tiny_vit.py:255
↓ 15 callersMethodupdate
(self, **kwargs)
EfficientViT/classification/utils.py:83
↓ 14 callersFunctionbuild_loss
(cfg)
CDARTS/CDARTS_detection/mmdet/models/builder.py:38
↓ 14 callersMethodtrain
(self, mode=True)
CDARTS/CDARTS_detection/mmcv/cnn/vgg.py:158
↓ 13 callersMethod__init__
(self, in_planes, out_planes=19, Fch=16, scale=4, branch=2, is_aux=False, norm_layer=nn.BatchNorm2d, fmap_size
CDARTS/CDARTS_segmentation/train/seg_oprs.py:237
↓ 13 callersFunctiondecode_arch_def
(arch_def, depth_multiplier=1.0, depth_trunc='ceil', experts_multiplier=1)
CDARTS/CDARTS_detection/mmdet/models/backbones/builder.py:636
↓ 13 callersMethodget_target
(self, sampling_results, rcnn_train_cfg)
CDARTS/CDARTS_detection/mmdet/models/mask_heads/grid_head.py:220
↓ 13 callersFunctionprint
(*args, **kwargs)
AutoFormerV2/lib/utils.py:172
↓ 13 callersFunctionresolve_bn_args
(kwargs)
CDARTS/CDARTS_detection/mmdet/models/backbones/builder.py:193
↓ 13 callersFunctionsetup
Create configs and perform basic setups.
CDARTS/CDARTS_segmentation/train/train_cydas.py:175
↓ 13 callersMethodstep
(self, epoch)
TinyViT/tinyvit_utils.py:35
↓ 13 callersMethodtransform
(self)
TinyViT/data/augmentation/dataset.py:133
↓ 12 callersMethod__init__
(self, d_model, mlp_width, act_layer=nn.GELU, scale_fc=False)
TinyCLIP/src/open_clip/model.py:109
↓ 12 callersFunction_create_model
(model_kwargs, default_cfg, pretrained=False)
CDARTS/CDARTS_detection/mmdet/models/backbones/efficientnet.py:661
↓ 12 callersMethodfromfile
(filename)
CDARTS/CDARTS_detection/mmcv/utils/config.py:76
↓ 12 callersFunctionload_checkpoint
Load checkpoint from a file or URI. Args: model (Module): Module to load checkpoint. filename (str): Either a filepath or URL or
CDARTS/CDARTS_detection/mmcv/runner/checkpoint.py:114
↓ 12 callersFunctionreduce_tensor
(tensor, world_size)
CDARTS/lib/utils/utils.py:94
↓ 12 callersMethodregister_hook
Register a hook into the hook list. Args: hook (:obj:`Hook`): The hook to be registered. priority (int or str or :obj
CDARTS/CDARTS_detection/mmcv/runner/runner.py:203
↓ 12 callersMethodtransform
(self, sample)
CDARTS/CDARTS_segmentation/dataloaders/datasets/sbd.py:78
↓ 11 callersMethod__init__
(self, in_dim, slimmable=True, width_mult_list=[1.])
CDARTS/CDARTS_segmentation/train/operations.py:882
↓ 11 callersFunction_cfg
(url='', **kwargs)
CDARTS/CDARTS_detection/mmdet/models/backbones/mobilenetv3.py:81
↓ 11 callersMethodbeta
(a, b, size=None)
TinyViT/data/augmentation/aug_random.py:60
↓ 11 callersFunctionis_str
Whether the input is an string instance.
CDARTS/CDARTS_detection/mmcv/utils/misc.py:17
↓ 11 callersMethodnode
(self, index)
CDARTS/benchmark201/utils/genotypes.py:208
↓ 11 callersMethodnorm2
(self)
CDARTS/CDARTS_detection/mmdet/models/backbones/hrnet.py:309
↓ 10 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
TinyViT/models/tiny_vit.py:194
↓ 10 callersMethod__init__
Args: pool_type: 'max' or 'avg'
CDARTS/lib/models/ops.py:107
↓ 10 callersMethod__init__
(self, inplace: bool = False)
CDARTS/CDARTS_detection/mmdet/models/backbones/efficientnet_builder.py:23
↓ 10 callersFunction_gen_efficientnet_lite
Creates an EfficientNet-Lite model. Ref impl: https://github.com/tensorflow/tpu/tree/master/models/official/efficientnet/lite Paper: https://
CDARTS/CDARTS_detection/mmdet/models/backbones/efficientnet.py:985
↓ 10 callersMethodassign
(self, bboxes, gt_bboxes, gt_bboxes_ignore=None, gt_labels=None)
CDARTS/CDARTS_detection/mmdet/core/bbox/assigners/base_assigner.py:7
↓ 10 callersMethodbackward
- Inputs grad_output: float32 (B, H, L_query, L_key) - Outputs grad_input: float32 (B, H, L_query, nu
MiniViT/Mini-DeiT/rpe_ops/rpe_index.py:42
↓ 10 callersFunctionbbox_overlaps
Calculate the ious between each bbox of bboxes1 and bboxes2. Args: bboxes1(ndarray): shape (n, 4) bboxes2(ndarray): shape (k, 4)
CDARTS/CDARTS_detection/mmdet/core/evaluation/bbox_overlaps.py:4
↓ 10 callersFunctionbuild_sampler
(cfg, **kwargs)
CDARTS/CDARTS_detection/mmdet/core/bbox/assign_sampling.py:16
↓ 10 callersMethodcall_hook
(self, fn_name)
CDARTS/CDARTS_detection/mmcv/runner/runner.py:236
↓ 10 callersMethodcheckpoint
(self)
iRPE/DeiT-with-iRPE/run_with_submitit.py:58
↓ 10 callersFunctionget_rpe_config
Get the config of relative position encoding on queries, keys and values Parameters ---------- ratio: float The ratio to control
iRPE/DeiT-with-iRPE/irpe.py:823
↓ 10 callersFunctionmulti_apply
(func, *args, **kwargs)
CDARTS/CDARTS_detection/mmdet/core/utils/misc.py:21
↓ 10 callersMethodnum_filters
(self, scale, width=1.0)
CDARTS/CDARTS_segmentation/train/cydas.py:415
↓ 10 callersMethodrand_parameters
(self, architecture, meta=False)
Cream/lib/models/structures/supernet.py:130
↓ 10 callersMethodrandom_choice
Random select some elements from the gallery. It seems that Pytorch's implementation is slower than numpy so we use numpy to randperm
CDARTS/CDARTS_detection/mmdet/core/bbox/samplers/random_sampler.py:19
↓ 10 callersMethodset_epoch
(self, epoch)
CDARTS/CDARTS_detection/mmdet/datasets/loader/sampler.py:200
↓ 9 callersFunction_resnet
(arch, block, layers, pretrained, progress, **kwargs)
CDARTS/CDARTS_segmentation/segmentation/model/backbone/resnet.py:232
↓ 9 callersFunctionbuild_assigner
(cfg, **kwargs)
CDARTS/CDARTS_detection/mmdet/core/bbox/assign_sampling.py:6
↓ 9 callersFunctioncast_tensor_type
(inputs, src_type, dst_type)
CDARTS/CDARTS_detection/mmdet/core/fp16/utils.py:7
↓ 9 callersFunctionconv_1x1_bn
(inp, oup, groups=1, act_fn=nn.ReLU)
CDARTS/CDARTS_detection/mmdet/models/backbones/mobilenetv3.py:98
next →1–100 of 4,396, ranked by callers