MCPcopy Create free account

hub / github.com/Thunderbeee/ZSCL / functions

Functions631 in github.com/Thunderbeee/ZSCL

↓ 62 callersMethodload
(self, filename)
mtil/src/models/modeling.py:29
↓ 12 callersMethodbuild_dataloader
(self)
mtil/src/datasets/collections.py:40
↓ 12 callersMethodbuild_dataloader
(self)
cil/datasets_ref/collections.py:40
↓ 11 callersMethod__init__
(self, *args, **kwargs)
mtil/src/datasets/collections.py:317
↓ 11 callersMethod__init__
(self, *args, **kwargs)
cil/datasets_ref/collections.py:317
↓ 10 callersMethodprocess_labels
(self)
mtil/src/datasets/collections.py:373
↓ 10 callersMethodprocess_labels
(self)
cil/datasets_ref/collections.py:373
↓ 10 callersMethodsave
(self, filename)
mtil/src/models/modeling.py:25
↓ 9 callersFunctionmaybe_dictionarize
(batch)
mtil/src/datasets/common.py:48
↓ 8 callersMethodtrain
(self, task_id, cfg, train_dataset, train_classes_names)
cil/continual_clip/models.py:50
↓ 7 callersMethodencode_image
(self, image)
mtil/clip/model.py:347
↓ 7 callersMethodencode_text
(self, text)
mtil/clip/model.py:350
↓ 7 callersFunctionget_dataloader
(dataset, is_train, args, image_encoder=None)
mtil/src/datasets/common.py:131
↓ 6 callersMethod__init__
(self, embed_dim: int, # vision image_resolution: int,
mtil/clip/model.py:248
↓ 6 callersMethod__init__
(self, embed_dim: int, # vision image_resolution: int,
cil/clip/model.py:248
↓ 6 callersFunctionget_classnames
(source)
mtil/src/datasets/imagenet_classnames.py:200
↓ 6 callersFunctionget_classnames
(source)
cil/datasets_ref/imagenet_classnames.py:200
↓ 6 callersFunctionparse_arguments
()
mtil/src/args.py:6
↓ 5 callersMethod__init__
(self, preprocess, location=os.path.expanduser('~/data'), r
mtil/src/datasets/iwildcam.py:42
↓ 5 callersMethod__init__
(self, preprocess, location=os.path.expanduser('~/data'), r
cil/datasets_ref/iwildcam.py:42
↓ 5 callersFunctioncreate_image_classifier
(args, initialize=True, setnone=False, buffer=False)
mtil/src/models/modeling.py:178
↓ 5 callersFunctioncreate_zeroshot_classifier_head
(args, clip_model=None, dataset=None)
mtil/src/models/modeling.py:126
↓ 5 callersFunctiondistillation
(t, s, T=2)
mtil/src/models/helpers.py:64
↓ 5 callersMethodname
(self)
mtil/src/datasets/noise.py:105
↓ 5 callersMethodname
(self)
cil/datasets_ref/noise.py:105
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
mtil/clip/model.py:128
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
cil/clip/model.py:128
↓ 4 callersFunction_transform
(n_px: int, is_train: bool)
mtil/clip/clip.py:63
↓ 4 callersFunction_transform
(n_px: int, is_train: bool)
cil/clip/clip.py:63
↓ 4 callersMethodget
(self)
mtil/src/dynamic_dataset.py:101
↓ 4 callersMethodget
(self)
cil/continual_clip/dynamic_dataset.py:101
↓ 4 callersMethodget_pmk
Returns: pmk_sets (Dict[str, Dict[int, str]]): Map anchor keys to dict mapping offset to pmk frame key. If review
mtil/src/datasets/ytbb_robust.py:336
↓ 4 callersMethodget_pmk
Returns: pmk_sets (Dict[str, Dict[int, str]]): Map anchor keys to dict mapping offset to pmk frame key. If review
cil/datasets_ref/ytbb_robust.py:336
↓ 4 callersFunctionpath_to_key
(path)
mtil/src/datasets/ytbb_robust.py:233
↓ 4 callersFunctionpath_to_key
(path)
cil/datasets_ref/ytbb_robust.py:233
↓ 4 callersFunctionsplit_pmk_key
(key)
mtil/src/datasets/ytbb_robust.py:246
↓ 4 callersFunctionsplit_pmk_key
(key)
cil/datasets_ref/ytbb_robust.py:246
↓ 4 callersMethodupdate
(self, args, dataset, load=False)
mtil/src/dynamic_dataset.py:21
↓ 3 callersFunctionevaluate
(dictionary, agrs, fc, RECORD)
mtil/src/general_eval.py:162
↓ 3 callersFunctionevaluate
(image_classifier, args, val_preprocess)
mtil/src/models/evaluation.py:82
↓ 3 callersFunctionevaluate_fc
(image_classifier, args)
mtil/src/models/evaluation_fc.py:51
↓ 3 callersFunctionfilter_labels
(labels, labels_list, file_logger=None, must_have=[],
mtil/src/datasets/ytbb_robust.py:47
↓ 3 callersFunctionfilter_labels
(labels, labels_list, file_logger=None, must_have=[],
cil/datasets_ref/ytbb_robust.py:47
↓ 3 callersMethodget
(self)
mtil/src/models/expand_dataset.py:47
↓ 3 callersFunctionget_class_names
(classes_names, class_ids_per_task)
cil/continual_clip/utils.py:32
↓ 3 callersFunctionget_dataset_class_names
(workdir, dataset_name, long=False)
cil/continual_clip/utils.py:36
↓ 3 callersMethodget_test_path
(self)
mtil/src/datasets/joint.py:122
↓ 3 callersMethodget_test_path
(self)
cil/datasets_ref/joint.py:122
↓ 3 callersMethodname
(self)
mtil/src/datasets/imagenet_subclass.py:109
↓ 3 callersMethodname
(self)
mtil/src/datasets/imagenet_small.py:128
↓ 3 callersMethodname
(self)
mtil/src/datasets/imagenet.py:69
↓ 3 callersMethodname
(self)
mtil/src/datasets/imagenet_sub.py:87
↓ 3 callersMethodname
(self)
cil/datasets_ref/imagenet_subclass.py:109
↓ 3 callersMethodname
(self)
cil/datasets_ref/imagenet_small.py:127
↓ 3 callersMethodname
(self)
cil/datasets_ref/imagenet.py:69
↓ 3 callersMethodname
(self)
cil/datasets_ref/imagenet_sub.py:87
↓ 3 callersMethodsplit_dataset
(self, dataset, ratio=0.8)
mtil/src/datasets/collections.py:69
↓ 3 callersMethodsplit_dataset
(self, dataset, ratio=0.8)
cil/datasets_ref/collections.py:69
↓ 3 callersMethodupdate
(self, dataset, load)
cil/continual_clip/dynamic_dataset.py:23
↓ 3 callersFunctionvalidate_label
(label)
mtil/src/datasets/ytbb_robust.py:65
↓ 3 callersFunctionvalidate_label
(label)
cil/datasets_ref/ytbb_robust.py:65
↓ 2 callersMethod__init__
(self, anchor_annotations, pmk_annotations)
mtil/src/datasets/ytbb_robust.py:265
↓ 2 callersMethod__init__
(self, preprocess, location=os.path.expanduser('~/data'), b
mtil/src/datasets/fmow.py:11
↓ 2 callersMethod__init__
(self, args, keep_lang=False)
mtil/src/models/modeling.py:9
↓ 2 callersMethod__init__
(self, anchor_annotations, pmk_annotations)
cil/datasets_ref/ytbb_robust.py:265
↓ 2 callersMethod__init__
(self, preprocess, location=os.path.expanduser('~/data'), b
cil/datasets_ref/fmow.py:11
↓ 2 callersFunctionappend_proper_article
(name)
mtil/src/templates/template_utils.py:24
↓ 2 callersFunctionappend_proper_article
(name)
cil/templates/template_utils.py:24
↓ 2 callersFunctionbatch
(iterable, n=64)
mtil/src/models/helpers.py:11
↓ 2 callersFunctionbatch
(iterable, n=64)
cil/continual_clip/utils.py:157
↓ 2 callersFunctionbuild_cl_scenarios
(cfg, is_train, transforms)
cil/continual_clip/datasets.py:92
↓ 2 callersFunctionbuild_model
(state_dict: dict)
mtil/clip/model.py:409
↓ 2 callersFunctionbuild_model
(state_dict: dict)
cil/clip/model.py:409
↓ 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
mtil/clip/tokenizer.py:16
↓ 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
cil/clip/tokenizer.py:16
↓ 2 callersFunctioncreate_pmk_score
Args: predictions_by_key (Dict[str, np.array]) anchor_labels (Dict[str, List[int]]): Labels for anchor frames. pmk_frames
mtil/src/datasets/ytbb_robust.py:160
↓ 2 callersFunctioncreate_pmk_score
Args: predictions_by_key (Dict[str, np.array]) anchor_labels (Dict[str, List[int]]): Labels for anchor frames. pmk_frames
cil/datasets_ref/ytbb_robust.py:160
↓ 2 callersFunctiondistillation
(t, s, T=2)
cil/continual_clip/utils.py:198
↓ 2 callersMethodencode_image
(self, image)
cil/clip/model.py:347
↓ 2 callersMethodencode_text
(self, text)
cil/clip/model.py:350
↓ 2 callersFunctionevaluate_fc
(image_classifier, dataset)
mtil/src/general_eval.py:53
↓ 2 callersFunctionfinetune
(args, ref_images)
mtil/src/models/icarl.py:46
↓ 2 callersMethodgetNewDataset
(self, args)
mtil/src/dynamic_dataset.py:84
↓ 2 callersMethodgetNewDataset
(self)
cil/continual_clip/dynamic_dataset.py:91
↓ 2 callersMethodget_anchor_labels
Args: initial_labels (Dict[str, Set[int]]): Initial YTBB labels. We require these because the loaded annotations
mtil/src/datasets/ytbb_robust.py:298
↓ 2 callersMethodget_anchor_labels
Args: initial_labels (Dict[str, Set[int]]): Initial YTBB labels. We require these because the loaded annotations
cil/datasets_ref/ytbb_robust.py:298
↓ 2 callersFunctionget_nonempty_subset
(dataset, split, frac=1.0, transform=None)
mtil/src/datasets/iwildcam.py:23
↓ 2 callersFunctionget_nonempty_subset
(dataset, split, frac=1.0, transform=None)
cil/datasets_ref/iwildcam.py:23
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
mtil/clip/tokenizer.py:38
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
cil/clip/tokenizer.py:38
↓ 2 callersFunctionload_labels
(input_paths)
mtil/src/datasets/ytbb_robust.py:20
↓ 2 callersFunctionload_labels
(input_paths)
cil/datasets_ref/ytbb_robust.py:20
↓ 2 callersFunctionmoving_avg
(model_0, model_1, alpha=0.999)
mtil/src/models/helpers.py:43
↓ 2 callersFunctionparse_frame_key
Parse key into video, frame index, and anchor ms.
mtil/src/datasets/ytbb_robust.py:251
↓ 2 callersFunctionparse_frame_key
Parse key into video, frame index, and anchor ms.
cil/datasets_ref/ytbb_robust.py:251
↓ 2 callersFunctionpatch_device
(module)
mtil/clip/clip.py:241
↓ 2 callersFunctionpatch_device
(module)
cil/clip/clip.py:241
↓ 2 callersFunctionpatch_float
(module)
mtil/clip/clip.py:261
↓ 2 callersFunctionpatch_float
(module)
cil/clip/clip.py:261
↓ 2 callersFunctionproject_logits
(logits, class_sublist_mask, device)
mtil/src/datasets/imagenet.py:95
next →1–100 of 631, ranked by callers