MCPcopy Create free account

hub / github.com/ZhangYuanhan-AI/OmniBenchmark / functions

Functions269 in github.com/ZhangYuanhan-AI/OmniBenchmark

↓ 15 callersMethodupdate
(self, val, num=1)
linear_probe/utils.py:76
↓ 10 callersFunction_resnet
( arch: str, block: Type[Union[BasicBlock, Bottleneck]], layers: List[int], pretrained: bool,
ReCo/models/resnet.py:251
↓ 10 callersMethodupdate
(self, val, n=1)
ReCo/reco_imagenet.py:543
↓ 7 callersFunction_check_args_tf
(kwargs)
ReCo/randaugment.py:42
↓ 6 callersMethod__init__
(self, embed_dim: int, # vision image_resolution: int,
linear_probe/models/vit.py:300
↓ 6 callersFunctionconcat_all_gather
Performs all_gather operation on the provided tensors. *** Warning ***: torch.distributed.all_gather has no gradient.
ReCo/moco/builder.py:237
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
linear_probe/models/vit.py:184
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
linear_probe/models/modified_resnet.py:220
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
linear_probe/models/resnet.py:144
↓ 4 callersMethod_make_layer
(self, block: Type[Union[BasicBlock, Bottleneck]], planes: int, blocks: int, stride: int =
ReCo/models/resnet.py:204
↓ 4 callersFunction_randomly_negate
With 50% prob, negate the value
ReCo/randaugment.py:169
↓ 3 callersMethod__repr__
(self)
linear_probe/dataset.py:343
↓ 3 callersFunctionconv1x1
1x1 convolution
ReCo/models/resnet.py:31
↓ 3 callersFunctionconv3x3
3x3 convolution with padding
ReCo/models/resnet.py:25
↓ 3 callersFunctionextract
(model, loader)
linear_probe/main.py:25
↓ 3 callersFunctionparameters_string
(module)
linear_probe/utils.py:24
↓ 3 callersMethodread
(self, filename)
linear_probe/dataset.py:41
↓ 2 callersMethod__init__
(self, inplanes, planes, stride=1)
linear_probe/models/modified_resnet.py:77
↓ 2 callersMethod__init__
( self, positional_embedding_flag=True, transformer_width=512, context_lengt
linear_probe/models/text_transformer.py:79
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000, with_neck=False, pretrain_path=None, enable_fc=False)
linear_probe/models/resnet.py:98
↓ 2 callersMethod__init__
( self, block: Type[Union[BasicBlock, Bottleneck]], layers: List[int], num_cla
ReCo/models/resnet.py:145
↓ 2 callersMethod_find_layer
(self, module)
ReCo/moco/builder.py:72
↓ 2 callersFunctionaccuracy
Computes the accuracy over the k top predictions for the specified values of k
ReCo/reco_imagenet.py:585
↓ 2 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a corresponding list of unicode strings. The reversible bpe codes work on unicode strings. This means you
linear_probe/models/simple_tokenizer.py:16
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
linear_probe/models/resnet.py:20
↓ 2 callersMethoddisplay
(self, batch)
ReCo/reco_imagenet.py:560
↓ 2 callersMethodencode
(self, text)
linear_probe/models/simple_tokenizer.py:121
↓ 2 callersFunctionflatten
(t)
ReCo/moco/builder.py:19
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
linear_probe/models/simple_tokenizer.py:38
↓ 2 callersFunctionhas_file_allowed_extension
Checks if a file is an allowed extension. Args: filename (string): path to a file extensions (iterable of strings): extensions to
linear_probe/dataset.py:58
↓ 2 callersFunctionpil_loader
(img_str)
linear_probe/dataset.py:51
↓ 2 callersFunctionrand_augment_transform
Create a RandAugment transform :param config_str: String defining configuration of random augmentation. Consists of multiple sections separat
ReCo/randaugment.py:408
↓ 2 callersFunctiontest
(net, feats, labels)
linear_probe/main.py:41
↓ 2 callersFunctionvalidate
(val_loader, train_loader, model, criterion, args)
ReCo/reco_imagenet.py:480
↓ 1 callersMethod__init__
(self, root, meta, transform=None)
linear_probe/dataset.py:304
↓ 1 callersMethod__init__
(self, alpha=1.0, beta=1.0, gamma=0.0, supt=1.0, temperature=1.0, base_temperature=None, K=128, num_classes=10
ReCo/losses.py:8
↓ 1 callersMethod__init__
dim: feature dimension (default: 128) K: queue size; number of negative keys (default: 65536) m: moco momentum of updating ke
ReCo/moco/builder.py:27
↓ 1 callersMethod__len__
(self)
linear_probe/dataset.py:203
↓ 1 callersMethod__len__
(self)
linear_probe/dataset.py:290
↓ 1 callersMethod__len__
(self)
linear_probe/dataset.py:340
↓ 1 callersMethod_batch_shuffle_ddp
Batch shuffle, for making use of BatchNorm. *** Only support DistributedDataParallel (DDP) model. ***
ReCo/moco/builder.py:134
↓ 1 callersMethod_batch_unshuffle_ddp
Undo batch shuffle. *** Only support DistributedDataParallel (DDP) model. ***
ReCo/moco/builder.py:163
↓ 1 callersMethod_dequeue_and_enqueue
(self, keys, labels)
ReCo/moco/builder.py:113
↓ 1 callersMethod_find_classes
Finds the class folders in a dataset. Args: dir (string): Root directory path. Returns: tuple: (cla
linear_probe/dataset.py:150
↓ 1 callersMethod_forward_impl
(self, x: Tensor)
ReCo/models/resnet.py:229
↓ 1 callersMethod_get_batch_fmtstr
(self, num_batches)
ReCo/reco_imagenet.py:565
↓ 1 callersMethod_inference
(self, image)
ReCo/moco/builder.py:221
↓ 1 callersMethod_init_ceph
(self)
linear_probe/dataset.py:35
↓ 1 callersFunction_init_dist_slurm
Initialize slurm distributed training environment. If argument ``port`` is not specified, then the master port will be system environment vari
linear_probe/main.py:89
↓ 1 callersMethod_init_memcached
(self)
linear_probe/dataset.py:172
↓ 1 callersFunction_interpolation
(kwargs)
ReCo/randaugment.py:34
↓ 1 callersMethod_momentum_update_key_encoder
Momentum update of the key encoder
ReCo/moco/builder.py:105
↓ 1 callersMethod_register_hook
(self)
ReCo/moco/builder.py:94
↓ 1 callersFunction_select_rand_weights
(weight_idx=0, transforms=None)
ReCo/randaugment.py:368
↓ 1 callersMethod_train
Input: im_q: a batch of query images im_k: a batch of key images Output: logits, targets
ReCo/moco/builder.py:184
↓ 1 callersFunctionadjust_learning_rate
Decay the learning rate based on schedule
ReCo/reco_imagenet.py:571
↓ 1 callersMethodattention
(self, x: torch.Tensor)
linear_probe/models/vit.py:239
↓ 1 callersMethodattention
(self, x: torch.Tensor)
linear_probe/models/text_transformer.py:45
↓ 1 callersFunctionbasic_clean
(text)
linear_probe/models/simple_tokenizer.py:50
↓ 1 callersMethodbpe
(self, token)
linear_probe/models/simple_tokenizer.py:80
↓ 1 callersMethodbuild_attention_mask
(self)
linear_probe/models/vit.py:384
↓ 1 callersMethodbuild_attention_mask
(self)
linear_probe/models/text_transformer.py:136
↓ 1 callersMethodcheckpoint_fwd
checkpoint forward
linear_probe/models/text_transformer.py:63
↓ 1 callersFunctioncreate_logger
(name, log_file, rank, level=logging.INFO)
linear_probe/utils.py:93
↓ 1 callersMethoddecode
(self, tokens)
linear_probe/models/simple_tokenizer.py:129
↓ 1 callersFunctiondefault_bpe
()
linear_probe/models/simple_tokenizer.py:11
↓ 1 callersMethodencode_image
(self, image)
linear_probe/models/vit.py:396
↓ 1 callersMethodencode_text
(self, text)
linear_probe/models/vit.py:399
↓ 1 callersMethodencode_text
(self, texts)
linear_probe/models/text_transformer.py:165
↓ 1 callersMethodforward_features
(self, x)
linear_probe/models/timm_rn101.py:26
↓ 1 callersMethodforward_features
(self, x)
linear_probe/models/timm_mlp_mixer.py:25
↓ 1 callersMethodforward_features
(self, x)
linear_probe/models/timm_beit.py:25
↓ 1 callersMethodforward_features
(self, x)
linear_probe/models/timm_vit_modified.py:64
↓ 1 callersMethodforward_features
(self, x)
linear_probe/models/timm_effnet.py:25
↓ 1 callersMethodforward_features
(self, x)
linear_probe/models/timm_vit.py:27
↓ 1 callersMethodforward_features
(self, x)
linear_probe/models/timm_swinTransformer.py:16
↓ 1 callersMethodforward_features
(self, x)
linear_probe/models/timm_inceptionv4.py:25
↓ 1 callersFunctionget_bn
(config)
linear_probe/models/modified_resnet.py:13
↓ 1 callersFunctionget_pil_version
()
linear_probe/utils.py:14
↓ 1 callersMethodinitialize_parameters
(self)
linear_probe/models/vit.py:355
↓ 1 callersMethodinitialize_parameters
(self)
linear_probe/models/text_transformer.py:120
↓ 1 callersFunctionload_clip_state_text_model
(model, ckpt_path)
linear_probe/models/text_transformer.py:189
↓ 1 callersFunctionload_clip_state_vision_model
(model, ckpt_path)
linear_probe/models/vit.py:17
↓ 1 callersFunctionload_clip_state_vision_model
(model, ckpt_path)
linear_probe/models/modified_resnet.py:20
↓ 1 callersFunctionload_state_dict
(checkpoint_path, use_ema=False)
linear_probe/models/timm_vit_modified.py:27
↓ 1 callersFunctionload_state_vision_model
(model, ckpt_path)
linear_probe/models/resnet.py:185
↓ 1 callersFunctionmain
()
download_tool/download_image.py:51
↓ 1 callersFunctionmain
()
ReCo/reco_imagenet.py:131
↓ 1 callersFunctionmain
()
ReCo/losses.py:235
↓ 1 callersFunctionmain_worker
(gpu, ngpus_per_node, args)
ReCo/reco_imagenet.py:168
↓ 1 callersFunctionmake_dataset
(dir, class_to_idx, extensions)
linear_probe/dataset.py:84
↓ 1 callersFunctionrand_augment_ops
rand augment ops for RGB images
ReCo/randaugment.py:377
↓ 1 callersFunctionrand_augment_ops_cmc
rand augment ops for CMC images (removing color ops)
ReCo/randaugment.py:385
↓ 1 callersFunctionrandom_seed
(seed_value)
linear_probe/utils.py:49
↓ 1 callersMethodreset
(self)
linear_probe/utils.py:67
↓ 1 callersMethodreset
(self)
ReCo/reco_imagenet.py:537
↓ 1 callersFunctionsave_checkpoint
(state, is_best, filename='checkpoint.pth.tar')
ReCo/reco_imagenet.py:524
↓ 1 callersMethodstem
(x)
linear_probe/models/vit.py:194
↓ 1 callersFunctiontest_build
()
linear_probe/models/timm_rn101.py:51
↓ 1 callersFunctiontest_build
()
linear_probe/models/timm_mlp_mixer.py:45
next →1–100 of 269, ranked by callers