MCPcopy Create free account

hub / github.com/microsoft/Cream / functions

Functions4,396 in github.com/microsoft/Cream

↓ 5 callersFunction_randomly_negate
With 50% prob, negate the value
TinyViT/data/augmentation/auto_augment.py:173
↓ 5 callersMethod_set_lr
(self, runner, lr_groups)
CDARTS/CDARTS_detection/mmcv/runner/hooks/lr_updater.py:35
↓ 5 callersMethodaccumulate
(self)
iRPE/DETR-with-iRPE/datasets/coco_eval.py:60
↓ 5 callersMethodadd_one_module
(self, z_loga, type_name, parameter_per_dim, size, shape)
TinyCLIP/src/open_clip/l0module.py:129
↓ 5 callersFunctionassign_learning_rate
(optimizer, new_lr)
TinyCLIP/src/training/scheduler.py:4
↓ 5 callersMethodbackward
(ctx, grad_output)
CDARTS/CDARTS_detection/mmdet/models/utils/quant_conv.py:80
↓ 5 callersMethodbuild_backbone
(self, arch, input_size)
CDARTS/CDARTS_detection/mmdet/models/backbones/fbnet.py:33
↓ 5 callersFunctionbuild_from_cfg
Build a module from config dict. Args: cfg (dict): Config dict. It should at least contain the key "type". registry (:obj:`Regist
CDARTS/CDARTS_detection/mmdet/utils/registry.py:48
↓ 5 callersFunctionbuild_loss_from_cfg
Builds loss function with specific configuration. Args: config: the configuration. Returns: A nn.Module loss.
CDARTS/CDARTS_segmentation/segmentation/model/build.py:113
↓ 5 callersMethodclear_output
(self)
CDARTS/CDARTS_detection/mmcv/runner/log_buffer.py:19
↓ 5 callersFunctioncreate_loader
( dataset, input_size, batch_size, is_training=False, use_prefetcher=T
TinyViT/data/augmentation/loader.py:147
↓ 5 callersFunctioncreate_model_and_transforms
( model_name: str, pretrained: str = '', precision: str = 'fp32', device: torc
TinyCLIP/src/open_clip/factory.py:183
↓ 5 callersFunctionfreeze_batch_norm_2d
Converts all `BatchNorm2d` and `SyncBatchNorm` layers of provided module into `FrozenBatchNorm2d`. If `module` is itself an instance of eithe
TinyCLIP/src/open_clip/utils.py:8
↓ 5 callersFunctionget_autocast
(precision)
TinyCLIP/src/training/precision.py:7
↓ 5 callersMethodget_complexity
(self, sequence_length)
AutoFormer/model/supernet_transformer.py:139
↓ 5 callersMethodinitialize_parameters
(self, size, num_layer=None, mean=None)
TinyCLIP/src/open_clip/l0module.py:72
↓ 5 callersMethodload_state_dict
(self, state_dict)
TinyViT/utils.py:326
↓ 5 callersFunctionload_url_dist
In distributed setting, this function only download checkpoint at local rank 0.
EfficientViT/downstream/mmcv_custom/checkpoint.py:109
↓ 5 callersFunctionmake_divisible
(v, divisor=8, min_value=None)
CDARTS/CDARTS_detection/mmdet/models/backbones/efficientnet_builder.py:216
↓ 5 callersFunctionmulticlass_nms
NMS for multi-class bboxes. Args: multi_bboxes (Tensor): shape (n, #class*4) or (n, 4) multi_scores (Tensor): shape (n, #class)
CDARTS/CDARTS_detection/mmdet/core/post_processing/bbox_nms.py:6
↓ 5 callersFunctionnms
Dispatch to either CPU or GPU NMS implementations. The input can be either a torch tensor or numpy array. GPU NMS will be used if the input i
CDARTS/CDARTS_detection/mmdet/ops/nms/nms_wrapper.py:8
↓ 5 callersFunctionpad
(image, target, padding)
iRPE/DETR-with-iRPE/datasets/transforms.py:135
↓ 5 callersMethodset_grad_checkpointing
(self, enable=True)
TinyCLIP/src/open_clip/model.py:1032
↓ 5 callersMethodset_sample_config
(self, sample_in_dim, sample_out_dim)
AutoFormer/model/module/qkv_super.py:39
↓ 5 callersMethodsize
(self, *args, **kwargs)
CDARTS/CDARTS_detection/mmcv/parallel/data_container.py:79
↓ 5 callersFunctionstr_to_interp_mode
(mode_str)
TinyViT/data/augmentation/transforms.py:68
↓ 5 callersMethodsummarize
(self)
iRPE/DETR-with-iRPE/datasets/coco_eval.py:64
↓ 5 callersMethodsync
(self)
TinyViT/my_meter.py:58
↓ 5 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
CDARTS/CDARTS_detection/mmdet/datasets/pipelines/formating.py:11
↓ 5 callersMethodtransformer
(self)
TinyCLIP/src/open_clip/model.py:933
↓ 5 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
CDARTS/CDARTS_detection/mmdet/models/losses/utils.py:26
↓ 5 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
MiniViT/Mini-Swin/models/swin_mlp.py:27
↓ 4 callersMethod__init__
(self, d_model=512, nhead=8, num_encoder_layers=6, num_decoder_layers=6, dim_feedforward=2048
iRPE/DETR-with-iRPE/models/transformer.py:43
↓ 4 callersMethod__init__
(self, detr, freeze_detr=False)
iRPE/DETR-with-iRPE/models/segmentation.py:25
↓ 4 callersMethod__init__
(self, depth, num_stages=4, strides=(1, 2, 2, 2),
CDARTS/CDARTS_detection/mmdet/models/backbones/resnet.py:553
↓ 4 callersMethod__init__
(self, ignore_label=-1, threshold=0.7, min_kept=100000, weight=None)
CDARTS/CDARTS_segmentation/tools/seg_opr/loss_opr.py:137
↓ 4 callersMethod__init__
(self, in_dim)
CDARTS/CDARTS_segmentation/train/att_sa.py:202
↓ 4 callersMethod__init__
(self, dim, num_heads, mlp_ratio=4., qkv_bias=False, qk_scale=None, drop=0., attn_drop=0., dr
MiniViT/Mini-DeiT/mini_vision_transformer.py:139
↓ 4 callersMethod__setattr__
(self, name, value)
CDARTS/CDARTS_detection/mmcv/utils/config.py:148
↓ 4 callersMethod_check_input
(self, value, name, center=1, bound=(0, float('inf')), clip_first_on_zero=True)
TinyViT/data/augmentation/aug_tv_transforms.py:775
↓ 4 callersFunction_expand
(tensor, length: int)
iRPE/DETR-with-iRPE/models/segmentation.py:65
↓ 4 callersFunction_gen_mnasnet_a1
Creates a mnasnet-a1 model. Ref impl: https://github.com/tensorflow/tpu/tree/master/models/official/mnasnet Paper: https://arxiv.org/pdf/1807
CDARTS/CDARTS_detection/mmdet/models/backbones/efficientnet.py:684
↓ 4 callersFunction_gen_mnasnet_b1
Creates a mnasnet-b1 model. Ref impl: https://github.com/tensorflow/tpu/tree/master/models/official/mnasnet Paper: https://arxiv.org/pdf/1807
CDARTS/CDARTS_detection/mmdet/models/backbones/efficientnet.py:720
↓ 4 callersFunction_gen_mobilenet_v2
Generate MobileNet-V2 network Ref impl: https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet/mobilenet_v2.py Paper:
CDARTS/CDARTS_detection/mmdet/models/backbones/efficientnet.py:785
↓ 4 callersFunction_load_pretrained
(model_name, model, progress)
CDARTS/CDARTS_segmentation/segmentation/model/backbone/mnasnet.py:206
↓ 4 callersMethod_make_block
( self, ba, choice_idx, block_idx, block_count,
Cream/lib/models/builders/build_supernet.py:64
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilate=False)
CDARTS/CDARTS_segmentation/segmentation/model/backbone/resnet.py:181
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
TinyCLIP/src/open_clip/resnet.py:138
↓ 4 callersFunction_ntuple
(n)
AutoFormer/model/utils.py:64
↓ 4 callersMethod_params_per_elem
(self, batch_size)
TinyViT/data/augmentation/mixup.py:125
↓ 4 callersFunction_pil_interp
(method)
TinyViT/data/build.py:34
↓ 4 callersMethod_set_real_position
(self, frame_id)
CDARTS/CDARTS_detection/mmcv/video/io.py:135
↓ 4 callersFunctionbias_init_with_prob
initialize conv/fc bias value according to giving probablity
CDARTS/CDARTS_detection/mmdet/models/utils/weight_init.py:43
↓ 4 callersFunctionbuild_dataset
(cfg, default_args=None)
CDARTS/CDARTS_detection/mmdet/datasets/builder.py:30
↓ 4 callersFunctionbuild_dataset
(is_train, args, folder_name=None)
AutoFormer/lib/datasets.py:152
↓ 4 callersFunctioncalc_region
Calculate a proportional bbox region. The bbox center are fixed and the new h' and w' is h * ratio and w * ratio. Args: bbox (Tensor
CDARTS/CDARTS_detection/mmdet/core/anchor/guided_anchor_target.py:7
↓ 4 callersFunctioncheck_file_exist
(filename, msg_tmpl='file "{}" does not exist')
CDARTS/CDARTS_detection/mmcv/utils/path.py:30
↓ 4 callersMethodclip_grads
(self, params)
CDARTS/CDARTS_detection/mmcv/runner/hooks/optimizer.py:10
↓ 4 callersFunctioncoco_eval
(result_files, result_types, coco, max_dets=(100, 300, 1000))
CDARTS/CDARTS_detection/mmdet/core/evaluation/coco_utils.py:9
↓ 4 callersFunctionconv_bn
(inp, oup, stride, groups=1, act_fn=nn.ReLU)
CDARTS/CDARTS_detection/mmdet/models/backbones/mobilenetv3.py:90
↓ 4 callersFunctionconv_bn
(inp, oup, stride, groups=1, act_fn=nn.ReLU)
CDARTS/CDARTS_detection/mmdet/models/backbones/efficientnet.py:162
↓ 4 callersMethodencode_image
(self, image, normalized=False)
TinyCLIP/src/open_clip/model.py:1003
↓ 4 callersMethodencode_text
(self, text, normalized=False)
TinyCLIP/src/open_clip/model.py:1007
↓ 4 callersFunctioneval_recalls
Calculate recalls. Args: gts (list[ndarray]): a list of arrays of shape (n, 4) proposals (list[ndarray]): a list of arrays of sha
CDARTS/CDARTS_detection/mmdet/core/evaluation/recall.py:65
↓ 4 callersFunctionevaluate
(data_loader, model, device, amp=True, choices=None, mode='super', retrain_config=None)
AutoFormer/supernet_engine.py:115
↓ 4 callersMethodextract_feats
(self, imgs)
CDARTS/CDARTS_detection/mmdet/models/detectors/base.py:41
↓ 4 callersFunctionflip_tensor
Flip Tensor along a dimension
CDARTS/CDARTS_segmentation/segmentation/utils/test_utils.py:16
↓ 4 callersMethodflops
(self)
AutoFormerV2/model/SSS.py:394
↓ 4 callersFunctionflow_compute_color
Applies the flow color wheel to (possibly clipped) flow components u and v. According to the C++ source code of Daniel Scharstein Accordi
CDARTS/CDARTS_segmentation/segmentation/utils/flow_vis.py:65
↓ 4 callersFunctionget_2dshape
(shape, *, zero=True)
CDARTS/CDARTS_segmentation/tools/utils/img_utils.py:8
↓ 4 callersFunctionget_condconv_initializer
(initializer, num_experts, expert_shape)
CDARTS/CDARTS_segmentation/train/builder.py:181
↓ 4 callersFunctionget_deit_rpe_config
()
MiniViT/Mini-DeiT/mini_deit_models.py:9
↓ 4 callersFunctionget_root_logger
Get the root logger. The logger will be initialized if it has not been initialized. By default a StreamHandler will be added. If `log_file` i
CDARTS/CDARTS_detection/mmdet/utils/logger.py:6
↓ 4 callersMethodget_scores
(self)
CDARTS/CDARTS_segmentation/train/seg_metrics.py:15
↓ 4 callersFunctionget_world_size
()
CDARTS/CDARTS_segmentation/segmentation/utils/comm.py:22
↓ 4 callersMethodget_zipfile
(path)
MiniViT/Mini-Swin/data/zipreader.py:24
↓ 4 callersMethodgrid_anchors
(self, featmap_size, stride=16, device='cuda')
CDARTS/CDARTS_detection/mmdet/core/anchor/anchor_generator.py:53
↓ 4 callersFunctionimages_to_levels
Convert targets by image to targets by feature level. [target_img0, target_img1] -> [target_level0, target_level1, ...]
CDARTS/CDARTS_detection/mmdet/core/anchor/anchor_target.py:79
↓ 4 callersFunctionimread
Read an image. Args: img_or_path (ndarray or str): Either a numpy array or image path. If it is a numpy array (loaded image),
CDARTS/CDARTS_detection/mmcv/image/io.py:23
↓ 4 callersMethodinit_weights
(self, pretrained=None)
CDARTS/CDARTS_detection/mmdet/models/detectors/rpn.py:28
↓ 4 callersFunctionis_dist_avail_and_initialized
()
iRPE/DETR-with-iRPE/util/misc.py:377
↓ 4 callersFunctionis_main_process
()
TinyViT/utils.py:330
↓ 4 callersFunctionload_checkpoint
(model, filename, strict=False, logger=None)
CDARTS/CDARTS_detection/mmdet/models/backbones/utils.py:6
↓ 4 callersMethodload_checkpoint
(self, filename, map_location='cpu', strict=False)
CDARTS/CDARTS_detection/mmcv/runner/runner.py:240
↓ 4 callersMethodload_checkpoint
(self)
AutoFormer/evolution.py:64
↓ 4 callersFunctionload_url_dist
In distributed setting, this function only download checkpoint at local rank 0
CDARTS/CDARTS_detection/mmcv/runner/checkpoint.py:88
↓ 4 callersFunctionmake_divisible
(v, divisor=8, min_value=None)
CDARTS/CDARTS_segmentation/train/builder.py:216
↓ 4 callersMethodmaybe_layer_norm
(self, layer_norm, x, before=False, after=False)
AutoFormer/model/supernet_transformer.py:289
↓ 4 callersFunctionnested_tensor_from_tensor_list
(tensor_list: List[Tensor])
iRPE/DETR-with-iRPE/util/misc.py:306
↓ 4 callersMethodparam_copy_plus
(self, target_model, model)
CDARTS/benchmark201/models/cdarts_controller.py:140
↓ 4 callersFunctionparse_ksize
(ss)
Cream/lib/utils/builder_util.py:9
↓ 4 callersMethodprocess_image
(self, img, crop_size=None)
CDARTS/CDARTS_segmentation/tools/engine/tester.py:293
↓ 4 callersMethodprocess_image
(self, img, crop_size=None)
CDARTS/CDARTS_segmentation/tools/engine/evaluator.py:320
↓ 4 callersFunctionquantize
(input, nbit, alpha=None, offset=None)
CDARTS/CDARTS_detection/mmdet/models/utils/quant_conv.py:46
↓ 4 callersMethodread
(path)
MiniViT/Mini-Swin/data/zipreader.py:79
↓ 4 callersFunctionremove_prefix
Old style model is stored with all names of parameters share common prefix 'module.'
CDARTS/CDARTS_segmentation/tools/utils/pyt_utils.py:185
↓ 4 callersFunctionremove_prefix_module
(state_dict)
TinyCLIP/src/training/main_for_test.py:336
↓ 4 callersFunctionremove_prefix_module
(state_dict)
TinyCLIP/src/training/main.py:408
↓ 4 callersFunctionsave_annotation
Saves the given label to image on disk. Args: label: The numpy array to be saved. The data will be converted to uint8 and save
CDARTS/CDARTS_segmentation/segmentation/utils/save_annotation.py:111
↓ 4 callersMethodsearch
(self)
AutoFormer/evolution.py:242
← previousnext →201–300 of 4,396, ranked by callers