Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amazon-science/mm-cot
/ functions
Functions
1,823 in github.com/amazon-science/mm-cot
⨍
Functions
1,823
◇
Types & classes
268
↓ 1 callers
Method
forward_features
(self, x)
timm/models/cspnet.py:398
↓ 1 callers
Method
forward_features
(self, x)
timm/models/inception_v4.py:294
↓ 1 callers
Method
forward_features
(self, x)
timm/models/selecsls.py:184
↓ 1 callers
Method
forward_features
(self, x)
timm/models/nasnet.py:514
↓ 1 callers
Method
forward_features
(self, x)
timm/models/nfnet.py:575
↓ 1 callers
Method
forward_features
(self, x)
timm/models/tnt.py:212
↓ 1 callers
Method
forward_features
(self, x)
timm/models/convit.py:291
↓ 1 callers
Method
forward_features
(self, x)
timm/models/swin_transformer.py:524
↓ 1 callers
Method
forward_features
(self, x)
timm/models/inception_resnet_v2.py:310
↓ 1 callers
Method
forward_features
(self, x: torch.Tensor)
timm/models/vgg.py:138
↓ 1 callers
Method
forward_features
(self, x)
timm/models/mlp_mixer.py:286
↓ 1 callers
Method
forward_features
(self, x)
timm/models/efficientnet.py:466
↓ 1 callers
Method
forward_features
(self, x)
timm/models/twins.py:345
↓ 1 callers
Method
forward_features
(self, x)
timm/models/resnet.py:662
↓ 1 callers
Method
forward_features
(self, x)
timm/models/vision_transformer.py:331
↓ 1 callers
Method
from_other
(self, out_indices: Tuple[int])
timm/models/features.py:33
↓ 1 callers
Function
generate_regnet
Generates per block widths from RegNet parameters.
timm/models/regnet.py:116
↓ 1 callers
Function
get_bn_args_tf
()
timm/models/efficientnet_builder.py:38
↓ 1 callers
Method
get_epoch_values
(self, epoch: int)
timm/scheduler/scheduler.py:61
↓ 1 callers
Function
get_layer_fns
(cfg: ByoModelCfg)
timm/models/byobnet.py:1059
↓ 1 callers
Method
get_num_inchannels
(self)
timm/models/hrnet.py:478
↓ 1 callers
Method
get_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 callers
Method
get_rel_indices
(self, num_patches: int)
timm/models/convit.py:129
↓ 1 callers
Function
get_scores
(result_data, rationale_data, results_reference, data_file)
utils_evaluate.py:25
↓ 1 callers
Method
get_update_values
(self, num_updates: int)
timm/scheduler/scheduler.py:64
↓ 1 callers
Function
hf_split
(hf_id)
timm/models/hub.py:63
↓ 1 callers
Method
init_weights
(self, zero_init_last=True)
timm/models/resnetv2.py:387
↓ 1 callers
Method
init_weights
(self)
timm/models/hrnet.py:674
↓ 1 callers
Method
init_weights
(self, zero_init_last_bn: bool = False)
timm/models/byobnet.py:673
↓ 1 callers
Method
init_weights
(self, zero_init_last_bn=True)
timm/models/resnet.py:643
↓ 1 callers
Method
init_weights
(self, mode='')
timm/models/vision_transformer.py:294
↓ 1 callers
Function
is_model
Check if a model name exists
timm/models/registry.py:94
↓ 1 callers
Function
is_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 callers
Function
load_cfg_from_json
(json_file: Union[str, os.PathLike])
timm/models/hub.py:71
↓ 1 callers
Function
load_checkpoint
(model, checkpoint_path, use_ema=False, strict=True)
timm/models/helpers.py:47
↓ 1 callers
Function
load_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 callers
Function
load_data_img
(args)
utils_data.py:34
↓ 1 callers
Function
load_data_std
(args)
utils_data.py:16
↓ 1 callers
Function
load_model_config_from_hf
(model_id: str)
timm/models/hub.py:83
↓ 1 callers
Function
load_pretrained
Load pretrained checkpoint Args: model (nn.Module) : PyTorch model module default_cfg (Optional[Dict]): default configuration fo
timm/models/helpers.py:160
↓ 1 callers
Function
load_state_dict
(checkpoint_path, use_ema=False)
timm/models/helpers.py:24
↓ 1 callers
Function
load_state_dict_from_hf
(model_id: str)
timm/models/hub.py:92
↓ 1 callers
Method
local_init
(self)
timm/models/convit.py:115
↓ 1 callers
Method
logits
(self, x)
timm/models/senet.py:386
↓ 1 callers
Function
make_blocks
( block_fn, channels, block_repeats, inplanes, reduce_first=1, output_stride=32, down_kernel_s
timm/models/resnet.py:464
↓ 1 callers
Function
make_safe
(name)
timm/models/factory.py:18
↓ 1 callers
Function
mnasnet_100
MNASNet B1, depth multiplier of 1.0.
timm/models/efficientnet.py:1116
↓ 1 callers
Function
model_entrypoint
Fetch a model entrypoint for specified model name
timm/models/registry.py:100
↓ 1 callers
Method
module_name
feature module name accessor
timm/models/features.py:72
↓ 1 callers
Method
no_weight_decay
(self)
timm/models/tnt.py:202
↓ 1 callers
Function
optimizer_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 callers
Function
parse_args
()
extract_features.py:12
↓ 1 callers
Function
parse_args
()
main.py:21
↓ 1 callers
Function
postprocess_text
(preds, labels)
main.py:188
↓ 1 callers
Function
preprocess_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 callers
Function
preprocess_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 callers
Function
preprocess_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 callers
Function
quantize_float
Converts a float to closest non-zero int divisible by q.
timm/models/regnet.py:102
↓ 1 callers
Function
rand_augment_ops
(magnitude=10, hparams=None, transforms=None)
timm/data/auto_augment.py:613
↓ 1 callers
Function
rand_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 callers
Function
rand_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 callers
Function
rand_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 callers
Method
reduction
feature reduction (output stride) accessor
timm/models/features.py:67
↓ 1 callers
Method
register_hook
(self, hook_fn_loc, hook_fn)
timm/utils/model.py:70
↓ 1 callers
Method
reset
(self)
timm/utils/metrics.py:12
↓ 1 callers
Method
reset_classifier
(self, num_classes, global_pool='avg')
timm/models/dla.py:315
↓ 1 callers
Function
resolve_data_config
(args, default_cfg={}, model=None, use_test_size=False, verbose=False)
timm/data/config.py:8
↓ 1 callers
Function
score_rouge
(str1, str2)
evaluations.py:54
↓ 1 callers
Function
semnasnet_100
MNASNet A1 (w/ SE), depth multiplier of 1.0.
timm/models/efficientnet.py:1150
↓ 1 callers
Function
seresnext26t_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 callers
Function
set_default_kwargs
(kwargs, names, default_cfg)
timm/models/helpers.py:347
↓ 1 callers
Method
set_hessian
Computes the Hutchinson approximation of the hessian trace and accumulates it for each trainable parameter.
timm/optim/adahessian.py:75
↓ 1 callers
Function
similariry_score
(str1, str2, model)
evaluations.py:81
↓ 1 callers
Function
stem_b16
(in_chs, out_chs, activation, resolution=224)
timm/models/levit.py:191
↓ 1 callers
Function
transforms_imagenet_eval
( img_size=224, crop_pct=None, interpolation='bilinear', use_prefetcher=False,
timm/data/transforms_factory.py:130
↓ 1 callers
Function
transforms_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 callers
Function
transforms_noaug_train
( img_size=224, interpolation='bilinear', use_prefetcher=False, mean=IMAGENET_
timm/data/transforms_factory.py:17
↓ 1 callers
Function
unwrap_model
(model)
timm/utils/model.py:9
↓ 1 callers
Function
update_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 callers
Function
vit_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 callers
Function
vit_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 callers
Function
window_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 callers
Method
zero_hessian
Zeros out the accumalated hessian traces.
timm/optim/adahessian.py:65
↓ 1 callers
Method
zero_init_last
(self)
timm/models/resnetv2.py:215
↓ 1 callers
Method
zero_init_last_bn
(self)
timm/models/cspnet.py:210
↓ 1 callers
Method
zero_init_last_bn
(self)
timm/models/resnet.py:317
↓ 1 callers
Method
zero_init_last_bn
(self)
timm/models/regnet.py:158
Function
IABN2Float
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
← previous
next →
401–500 of 1,823, ranked by callers