MCPcopy Create free account

hub / github.com/Thunderbeee/ZSCL / functions

Functions631 in github.com/Thunderbeee/ZSCL

↓ 1 callersFunctionzeroshot_classifier
(classnames, templates, model)
mtil/src/search.py:54
↓ 1 callersFunctionzeroshot_eval
(model, loader, zeroshot_weights)
mtil/src/general_eval.py:105
↓ 1 callersFunctionzeroshot_eval
(model, loader, zeroshot_weights)
mtil/src/search.py:71
↓ 1 callersFunctionzeroshot_eval
(model, loader, zeroshot_weights)
mtil/src/models/evaluation.py:37
Method__call__
(self, alpha)
mtil/src/models/wiseft.py:60
Method__getitem__
(self, index)
mtil/src/datasets/imagenet_vid_robust.py:18
Method__getitem__
(self, index)
mtil/src/datasets/ytbb_robust.py:465
Method__getitem__
(self, index)
mtil/src/datasets/objectnet.py:66
Method__getitem__
(self, i)
mtil/src/datasets/imagenetv2.py:8
Method__getitem__
(self, index)
mtil/src/datasets/cifar10.py:101
Method__getitem__
(self, index)
mtil/src/datasets/common.py:39
Method__getitem__
(self, idx)
mtil/src/datasets/cc.py:27
Method__getitem__
(self, index)
cil/datasets_ref/imagenet_vid_robust.py:18
Method__getitem__
(self, index)
cil/datasets_ref/ytbb_robust.py:465
Method__getitem__
(self, index)
cil/datasets_ref/objectnet.py:66
Method__getitem__
(self, i)
cil/datasets_ref/imagenetv2.py:8
Method__getitem__
(self, index)
cil/datasets_ref/cifar10.py:101
Method__getitem__
(self, index)
cil/datasets_ref/common.py:39
Method__getitem__
(self, idx)
cil/datasets_ref/cc.py:27
Method__getitem__
(self, idx)
cil/continual_clip/cc.py:27
Method__init__
(self, bpe_path: str = default_bpe(), special_tokens=None)
mtil/clip/tokenizer.py:63
Method__init__
(self, inplanes, planes, stride=1)
mtil/clip/model.py:15
Method__init__
(self, spacial_dim: int, embed_dim: int, num_heads: int, output_dim: int = None)
mtil/clip/model.py:59
Method__init__
(self, layers, output_dim, heads, input_resolution=224, width=64)
mtil/clip/model.py:103
Method__init__
(self, d_model: int, n_head: int, attn_mask: torch.Tensor = None)
mtil/clip/model.py:170
Method__init__
(self, width: int, layers: int, heads: int, attn_mask: torch.Tensor = None)
mtil/clip/model.py:194
Method__init__
(self, input_resolution: int, patch_size: int, width: int, layers: int, heads: int, output_dim: int)
mtil/clip/model.py:205
Method__init__
(self, args)
mtil/src/dynamic_dataset.py:14
Method__init__
(self, smoothing=0.0)
mtil/src/utils.py:87
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/imagenet_vid_robust.py:25
Method__init__
(self, preprocess, location=os.path.expanduser('~/data'), b
mtil/src/datasets/imagenet_subclass.py:33
Method__init__
(self, preprocess, location=os.path.expanduser('~/data'), b
mtil/src/datasets/imagenet_small.py:33
Method__init__
(self, pmk_dataset, rev_ytbb_class_index, path, transform)
mtil/src/datasets/ytbb_robust.py:429
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/ytbb_robust.py:479
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/imagenet.py:104
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/imagenet_sub.py:122
Method__init__
(self, label_map, path, transform)
mtil/src/datasets/objectnet.py:54
Method__init__
(self, preprocess, location=os.path.expanduser('~/data'), b
mtil/src/datasets/joint.py:17
Method__init__
(self, preprocess, location=os.path.expanduser('~/data'), b
mtil/src/datasets/noise.py:16
Method__init__
(self, images, targets, transform=None, target_transform=None)
mtil/src/datasets/cifar10.py:90
Method__init__
( self, preprocess, location=os.path.expanduser("~/data"), batch_size=128,
mtil/src/datasets/cifar10.py:109
Method__init__
( self, preprocess, location=os.path.expanduser("~/data"), batch_size=32,
mtil/src/datasets/cifar10.py:149
Method__init__
( self, preprocess, location="./data", batch_size=128, num_workers=16,
mtil/src/datasets/cifar10.py:202
Method__init__
(self, path, transform, flip_label_prob=0.0)
mtil/src/datasets/common.py:25
Method__init__
(self, is_train, image_encoder, dataset, device)
mtil/src/datasets/common.py:119
Method__init__
( self, preprocess, location=os.path.expanduser("./data"), batch_size=128,
mtil/src/datasets/collections.py:15
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/collections.py:85
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/collections.py:114
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/collections.py:271
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/collections.py:289
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/collections.py:303
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/collections.py:342
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/collections.py:379
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/collections.py:500
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/collections.py:518
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/collections.py:536
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/collections.py:562
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/fmow.py:50
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/fmow.py:55
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/iwildcam.py:82
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/iwildcam.py:88
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/iwildcam.py:94
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/iwildcam.py:100
Method__init__
(self, *args, **kwargs)
mtil/src/datasets/iwildcam.py:106
Method__init__
(self, input_filename, transforms, img_key, caption_key, sep="\t")
mtil/src/datasets/cc.py:16
Method__init__
( self, transforms, location, batch_size, *args, num_workers=16, **kwargs )
mtil/src/datasets/cc.py:35
Method__init__
(self, args, dataset, imagenet)
mtil/src/models/expand_dataset.py:12
Method__init__
(self, normalize, weights, biases=None)
mtil/src/models/modeling.py:35
Method__init__
(self, image_encoder, classification_head, process_images=True)
mtil/src/models/modeling.py:61
Method__init__
(self, args, zeroshot, finetuned)
mtil/src/models/wiseft.py:37
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/imagenet_vid_robust.py:25
Method__init__
(self, preprocess, location=os.path.expanduser('~/data'), b
cil/datasets_ref/imagenet_subclass.py:33
Method__init__
(self, preprocess, location=os.path.expanduser('~/data'), b
cil/datasets_ref/imagenet_small.py:33
Method__init__
(self, pmk_dataset, rev_ytbb_class_index, path, transform)
cil/datasets_ref/ytbb_robust.py:429
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/ytbb_robust.py:479
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/imagenet.py:104
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/imagenet_sub.py:122
Method__init__
(self, label_map, path, transform)
cil/datasets_ref/objectnet.py:54
Method__init__
(self, preprocess, location=os.path.expanduser('~/data'), b
cil/datasets_ref/joint.py:17
Method__init__
(self, preprocess, location=os.path.expanduser('~/data'), b
cil/datasets_ref/noise.py:16
Method__init__
(self, images, targets, transform=None, target_transform=None)
cil/datasets_ref/cifar10.py:90
Method__init__
( self, preprocess, location=os.path.expanduser("~/data"), batch_size=128,
cil/datasets_ref/cifar10.py:109
Method__init__
( self, preprocess, location=os.path.expanduser("~/data"), batch_size=32,
cil/datasets_ref/cifar10.py:149
Method__init__
( self, preprocess, location="./data", batch_size=128, num_workers=16,
cil/datasets_ref/cifar10.py:202
Method__init__
(self, path, transform, flip_label_prob=0.0)
cil/datasets_ref/common.py:25
Method__init__
(self, is_train, image_encoder, dataset, device)
cil/datasets_ref/common.py:119
Method__init__
( self, preprocess, location=os.path.expanduser("./data"), batch_size=128,
cil/datasets_ref/collections.py:15
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/collections.py:85
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/collections.py:114
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/collections.py:271
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/collections.py:289
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/collections.py:303
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/collections.py:342
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/collections.py:379
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/collections.py:500
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/collections.py:518
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/collections.py:536
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/collections.py:562
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/fmow.py:50
Method__init__
(self, *args, **kwargs)
cil/datasets_ref/fmow.py:55
← previousnext →301–400 of 631, ranked by callers