MCPcopy Create free account

hub / github.com/amazon-science/mm-cot / functions

Functions1,823 in github.com/amazon-science/mm-cot

↓ 1 callersMethodforward_features
(self, x)
timm/models/cspnet.py:398
↓ 1 callersMethodforward_features
(self, x)
timm/models/inception_v4.py:294
↓ 1 callersMethodforward_features
(self, x)
timm/models/selecsls.py:184
↓ 1 callersMethodforward_features
(self, x)
timm/models/nasnet.py:514
↓ 1 callersMethodforward_features
(self, x)
timm/models/nfnet.py:575
↓ 1 callersMethodforward_features
(self, x)
timm/models/tnt.py:212
↓ 1 callersMethodforward_features
(self, x)
timm/models/convit.py:291
↓ 1 callersMethodforward_features
(self, x)
timm/models/swin_transformer.py:524
↓ 1 callersMethodforward_features
(self, x)
timm/models/inception_resnet_v2.py:310
↓ 1 callersMethodforward_features
(self, x: torch.Tensor)
timm/models/vgg.py:138
↓ 1 callersMethodforward_features
(self, x)
timm/models/mlp_mixer.py:286
↓ 1 callersMethodforward_features
(self, x)
timm/models/efficientnet.py:466
↓ 1 callersMethodforward_features
(self, x)
timm/models/twins.py:345
↓ 1 callersMethodforward_features
(self, x)
timm/models/resnet.py:662
↓ 1 callersMethodforward_features
(self, x)
timm/models/vision_transformer.py:331
↓ 1 callersMethodfrom_other
(self, out_indices: Tuple[int])
timm/models/features.py:33
↓ 1 callersFunctiongenerate_regnet
Generates per block widths from RegNet parameters.
timm/models/regnet.py:116
↓ 1 callersFunctionget_bn_args_tf
()
timm/models/efficientnet_builder.py:38
↓ 1 callersMethodget_epoch_values
(self, epoch: int)
timm/scheduler/scheduler.py:61
↓ 1 callersFunctionget_layer_fns
(cfg: ByoModelCfg)
timm/models/byobnet.py:1059
↓ 1 callersMethodget_num_inchannels
(self)
timm/models/hrnet.py:478
↓ 1 callersMethodget_params
Get parameters for ``crop`` for a random sized crop. Args: img (PIL Image): Image to be cropped. scale (tuple): range
timm/data/transforms.py:90
↓ 1 callersMethodget_rel_indices
(self, num_patches: int)
timm/models/convit.py:129
↓ 1 callersFunctionget_scores
(result_data, rationale_data, results_reference, data_file)
utils_evaluate.py:25
↓ 1 callersMethodget_update_values
(self, num_updates: int)
timm/scheduler/scheduler.py:64
↓ 1 callersFunctionhf_split
(hf_id)
timm/models/hub.py:63
↓ 1 callersMethodinit_weights
(self, zero_init_last=True)
timm/models/resnetv2.py:387
↓ 1 callersMethodinit_weights
(self)
timm/models/hrnet.py:674
↓ 1 callersMethodinit_weights
(self, zero_init_last_bn: bool = False)
timm/models/byobnet.py:673
↓ 1 callersMethodinit_weights
(self, zero_init_last_bn=True)
timm/models/resnet.py:643
↓ 1 callersMethodinit_weights
(self, mode='')
timm/models/vision_transformer.py:294
↓ 1 callersFunctionis_model
Check if a model name exists
timm/models/registry.py:94
↓ 1 callersFunctionis_model_in_modules
Check if a model exists within a subset of modules Args: model_name (str) - name of model to check module_names (tuple, list, set)
timm/models/registry.py:113
↓ 1 callersFunctionload_cfg_from_json
(json_file: Union[str, os.PathLike])
timm/models/hub.py:71
↓ 1 callersFunctionload_checkpoint
(model, checkpoint_path, use_ema=False, strict=True)
timm/models/helpers.py:47
↓ 1 callersFunctionload_custom_pretrained
r"""Loads a custom (read non .pth) weight file Downloads checkpoint file into cache-dir like torch.hub based loaders, but calls a passed in c
timm/models/helpers.py:99
↓ 1 callersFunctionload_data_img
(args)
utils_data.py:34
↓ 1 callersFunctionload_data_std
(args)
utils_data.py:16
↓ 1 callersFunctionload_model_config_from_hf
(model_id: str)
timm/models/hub.py:83
↓ 1 callersFunctionload_pretrained
Load pretrained checkpoint Args: model (nn.Module) : PyTorch model module default_cfg (Optional[Dict]): default configuration fo
timm/models/helpers.py:160
↓ 1 callersFunctionload_state_dict
(checkpoint_path, use_ema=False)
timm/models/helpers.py:24
↓ 1 callersFunctionload_state_dict_from_hf
(model_id: str)
timm/models/hub.py:92
↓ 1 callersMethodlocal_init
(self)
timm/models/convit.py:115
↓ 1 callersMethodlogits
(self, x)
timm/models/senet.py:386
↓ 1 callersFunctionmake_blocks
( block_fn, channels, block_repeats, inplanes, reduce_first=1, output_stride=32, down_kernel_s
timm/models/resnet.py:464
↓ 1 callersFunctionmake_safe
(name)
timm/models/factory.py:18
↓ 1 callersFunctionmnasnet_100
MNASNet B1, depth multiplier of 1.0.
timm/models/efficientnet.py:1116
↓ 1 callersFunctionmodel_entrypoint
Fetch a model entrypoint for specified model name
timm/models/registry.py:100
↓ 1 callersMethodmodule_name
feature module name accessor
timm/models/features.py:72
↓ 1 callersMethodno_weight_decay
(self)
timm/models/tnt.py:202
↓ 1 callersFunctionoptimizer_kwargs
cfg/argparse to kwargs helper Convert optimizer args in argparse args or cfg like object to keyword args for updated create fn.
timm/optim/optim_factory.py:44
↓ 1 callersFunctionparse_args
()
extract_features.py:12
↓ 1 callersFunctionparse_args
()
main.py:21
↓ 1 callersFunctionpostprocess_text
(preds, labels)
main.py:188
↓ 1 callersFunctionpreprocess_for_eval
Preprocesses the given image for evaluation. Args: image_bytes: `Tensor` representing an image binary of arbitrary size. use_bfloat16
timm/data/tf_preprocessing.py:161
↓ 1 callersFunctionpreprocess_for_train
Preprocesses the given image for evaluation. Args: image_bytes: `Tensor` representing an image binary of arbitrary size. use_bfloat16
timm/data/tf_preprocessing.py:140
↓ 1 callersFunctionpreprocess_image
Preprocesses the given image. Args: image_bytes: `Tensor` representing an image binary of arbitrary size. is_training: `bool` for whe
timm/data/tf_preprocessing.py:181
↓ 1 callersFunctionquantize_float
Converts a float to closest non-zero int divisible by q.
timm/models/regnet.py:102
↓ 1 callersFunctionrand_augment_ops
(magnitude=10, hparams=None, transforms=None)
timm/data/auto_augment.py:613
↓ 1 callersFunctionrand_augment_transform
Create a RandAugment transform :param config_str: String defining configuration of random augmentation. Consists of multiple sections separa
timm/data/auto_augment.py:635
↓ 1 callersFunctionrand_bbox
Standard CutMix bounding-box Generates a random square bbox based on lambda value. This impl includes support for enforcing a border margin a
timm/data/mixup.py:30
↓ 1 callersFunctionrand_bbox_minmax
Min-Max CutMix bounding-box Inspired by Darknet cutmix impl, generates a random rectangular bbox based on min/max percent values applied to e
timm/data/mixup.py:54
↓ 1 callersMethodreduction
feature reduction (output stride) accessor
timm/models/features.py:67
↓ 1 callersMethodregister_hook
(self, hook_fn_loc, hook_fn)
timm/utils/model.py:70
↓ 1 callersMethodreset
(self)
timm/utils/metrics.py:12
↓ 1 callersMethodreset_classifier
(self, num_classes, global_pool='avg')
timm/models/dla.py:315
↓ 1 callersFunctionresolve_data_config
(args, default_cfg={}, model=None, use_test_size=False, verbose=False)
timm/data/config.py:8
↓ 1 callersFunctionscore_rouge
(str1, str2)
evaluations.py:54
↓ 1 callersFunctionsemnasnet_100
MNASNet A1 (w/ SE), depth multiplier of 1.0.
timm/models/efficientnet.py:1150
↓ 1 callersFunctionseresnext26t_32x4d
Constructs a SE-ResNet-26-T model. This is technically a 28 layer ResNet, like a 'D' bag-of-tricks model but with tiered 24, 32, 64 channels i
timm/models/resnet.py:1406
↓ 1 callersFunctionset_default_kwargs
(kwargs, names, default_cfg)
timm/models/helpers.py:347
↓ 1 callersMethodset_hessian
Computes the Hutchinson approximation of the hessian trace and accumulates it for each trainable parameter.
timm/optim/adahessian.py:75
↓ 1 callersFunctionsimilariry_score
(str1, str2, model)
evaluations.py:81
↓ 1 callersFunctionstem_b16
(in_chs, out_chs, activation, resolution=224)
timm/models/levit.py:191
↓ 1 callersFunctiontransforms_imagenet_eval
( img_size=224, crop_pct=None, interpolation='bilinear', use_prefetcher=False,
timm/data/transforms_factory.py:130
↓ 1 callersFunctiontransforms_imagenet_train
If separate==True, the transforms are returned as a tuple of 3 separate transforms for use in a mixing dataset that passes * all data th
timm/data/transforms_factory.py:44
↓ 1 callersFunctiontransforms_noaug_train
( img_size=224, interpolation='bilinear', use_prefetcher=False, mean=IMAGENET_
timm/data/transforms_factory.py:17
↓ 1 callersFunctionunwrap_model
(model)
timm/utils/model.py:9
↓ 1 callersFunctionupdate_default_cfg_and_kwargs
Update the default_cfg and kwargs before passing to model FIXME this sequence of overlay default_cfg, set default kwargs, filter kwargs coul
timm/models/helpers.py:374
↓ 1 callersFunctionvit_base_r50_s16_224_in21k
R50+ViT-B/16 hybrid model from original paper (https://arxiv.org/abs/2010.11929). ImageNet-21k weights @ 224x224, source https://github.com/googl
timm/models/vision_transformer_hybrid.py:294
↓ 1 callersFunctionvit_base_r50_s16_384
R50+ViT-B/16 hybrid from original paper (https://arxiv.org/abs/2010.11929). ImageNet-1k weights fine-tuned from in21k @ 384x384, source https://g
timm/models/vision_transformer_hybrid.py:232
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
timm/models/swin_transformer.py:103
↓ 1 callersMethodzero_hessian
Zeros out the accumalated hessian traces.
timm/optim/adahessian.py:65
↓ 1 callersMethodzero_init_last
(self)
timm/models/resnetv2.py:215
↓ 1 callersMethodzero_init_last_bn
(self)
timm/models/cspnet.py:210
↓ 1 callersMethodzero_init_last_bn
(self)
timm/models/resnet.py:317
↓ 1 callersMethodzero_init_last_bn
(self)
timm/models/regnet.py:158
FunctionIABN2Float
If `module` is IABN don't use half precision.
timm/models/tresnet.py:51
Method__call__
(self, loss, optimizer, clip_grad=None, clip_mode='norm', parameters=None, create_graph=False)
timm/utils/cuda.py:20
Method__call__
(self, loss, optimizer, clip_grad=None, clip_mode='norm', parameters=None, create_graph=False)
timm/utils/cuda.py:42
Method__call__
(self, img)
timm/data/auto_augment.py:338
Method__call__
(self, img)
timm/data/auto_augment.py:504
Method__call__
(self, img)
timm/data/auto_augment.py:626
Method__call__
(self, img)
timm/data/auto_augment.py:765
Method__call__
(self, pil_img)
timm/data/transforms.py:12
Method__call__
(self, pil_img)
timm/data/transforms.py:25
Method__call__
Args: img (PIL Image): Image to be cropped and resized. Returns: PIL Image: Randomly cropped and resized ima
timm/data/transforms.py:132
Method__call__
(self, image_bytes)
timm/data/tf_preprocessing.py:224
Method__call__
(self, x, target)
timm/data/mixup.py:209
Method__call__
(self, batch, _=None)
timm/data/mixup.py:299
← previousnext →401–500 of 1,823, ranked by callers