Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Thunderbeee/ZSCL
/ functions
Functions
631 in github.com/Thunderbeee/ZSCL
⨍
Functions
631
◇
Types & classes
167
↓ 62 callers
Method
load
(self, filename)
mtil/src/models/modeling.py:29
↓ 12 callers
Method
build_dataloader
(self)
mtil/src/datasets/collections.py:40
↓ 12 callers
Method
build_dataloader
(self)
cil/datasets_ref/collections.py:40
↓ 11 callers
Method
__init__
(self, *args, **kwargs)
mtil/src/datasets/collections.py:317
↓ 11 callers
Method
__init__
(self, *args, **kwargs)
cil/datasets_ref/collections.py:317
↓ 10 callers
Method
process_labels
(self)
mtil/src/datasets/collections.py:373
↓ 10 callers
Method
process_labels
(self)
cil/datasets_ref/collections.py:373
↓ 10 callers
Method
save
(self, filename)
mtil/src/models/modeling.py:25
↓ 9 callers
Function
maybe_dictionarize
(batch)
mtil/src/datasets/common.py:48
↓ 8 callers
Method
train
(self, task_id, cfg, train_dataset, train_classes_names)
cil/continual_clip/models.py:50
↓ 7 callers
Method
encode_image
(self, image)
mtil/clip/model.py:347
↓ 7 callers
Method
encode_text
(self, text)
mtil/clip/model.py:350
↓ 7 callers
Function
get_dataloader
(dataset, is_train, args, image_encoder=None)
mtil/src/datasets/common.py:131
↓ 6 callers
Method
__init__
(self, embed_dim: int, # vision image_resolution: int,
mtil/clip/model.py:248
↓ 6 callers
Method
__init__
(self, embed_dim: int, # vision image_resolution: int,
cil/clip/model.py:248
↓ 6 callers
Function
get_classnames
(source)
mtil/src/datasets/imagenet_classnames.py:200
↓ 6 callers
Function
get_classnames
(source)
cil/datasets_ref/imagenet_classnames.py:200
↓ 6 callers
Function
parse_arguments
()
mtil/src/args.py:6
↓ 5 callers
Method
__init__
(self, preprocess, location=os.path.expanduser('~/data'), r
mtil/src/datasets/iwildcam.py:42
↓ 5 callers
Method
__init__
(self, preprocess, location=os.path.expanduser('~/data'), r
cil/datasets_ref/iwildcam.py:42
↓ 5 callers
Function
create_image_classifier
(args, initialize=True, setnone=False, buffer=False)
mtil/src/models/modeling.py:178
↓ 5 callers
Function
create_zeroshot_classifier_head
(args, clip_model=None, dataset=None)
mtil/src/models/modeling.py:126
↓ 5 callers
Function
distillation
(t, s, T=2)
mtil/src/models/helpers.py:64
↓ 5 callers
Method
name
(self)
mtil/src/datasets/noise.py:105
↓ 5 callers
Method
name
(self)
cil/datasets_ref/noise.py:105
↓ 4 callers
Method
_make_layer
(self, planes, blocks, stride=1)
mtil/clip/model.py:128
↓ 4 callers
Method
_make_layer
(self, planes, blocks, stride=1)
cil/clip/model.py:128
↓ 4 callers
Function
_transform
(n_px: int, is_train: bool)
mtil/clip/clip.py:63
↓ 4 callers
Function
_transform
(n_px: int, is_train: bool)
cil/clip/clip.py:63
↓ 4 callers
Method
get
(self)
mtil/src/dynamic_dataset.py:101
↓ 4 callers
Method
get
(self)
cil/continual_clip/dynamic_dataset.py:101
↓ 4 callers
Method
get_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 callers
Method
get_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 callers
Function
path_to_key
(path)
mtil/src/datasets/ytbb_robust.py:233
↓ 4 callers
Function
path_to_key
(path)
cil/datasets_ref/ytbb_robust.py:233
↓ 4 callers
Function
split_pmk_key
(key)
mtil/src/datasets/ytbb_robust.py:246
↓ 4 callers
Function
split_pmk_key
(key)
cil/datasets_ref/ytbb_robust.py:246
↓ 4 callers
Method
update
(self, args, dataset, load=False)
mtil/src/dynamic_dataset.py:21
↓ 3 callers
Function
evaluate
(dictionary, agrs, fc, RECORD)
mtil/src/general_eval.py:162
↓ 3 callers
Function
evaluate
(image_classifier, args, val_preprocess)
mtil/src/models/evaluation.py:82
↓ 3 callers
Function
evaluate_fc
(image_classifier, args)
mtil/src/models/evaluation_fc.py:51
↓ 3 callers
Function
filter_labels
(labels, labels_list, file_logger=None, must_have=[],
mtil/src/datasets/ytbb_robust.py:47
↓ 3 callers
Function
filter_labels
(labels, labels_list, file_logger=None, must_have=[],
cil/datasets_ref/ytbb_robust.py:47
↓ 3 callers
Method
get
(self)
mtil/src/models/expand_dataset.py:47
↓ 3 callers
Function
get_class_names
(classes_names, class_ids_per_task)
cil/continual_clip/utils.py:32
↓ 3 callers
Function
get_dataset_class_names
(workdir, dataset_name, long=False)
cil/continual_clip/utils.py:36
↓ 3 callers
Method
get_test_path
(self)
mtil/src/datasets/joint.py:122
↓ 3 callers
Method
get_test_path
(self)
cil/datasets_ref/joint.py:122
↓ 3 callers
Method
name
(self)
mtil/src/datasets/imagenet_subclass.py:109
↓ 3 callers
Method
name
(self)
mtil/src/datasets/imagenet_small.py:128
↓ 3 callers
Method
name
(self)
mtil/src/datasets/imagenet.py:69
↓ 3 callers
Method
name
(self)
mtil/src/datasets/imagenet_sub.py:87
↓ 3 callers
Method
name
(self)
cil/datasets_ref/imagenet_subclass.py:109
↓ 3 callers
Method
name
(self)
cil/datasets_ref/imagenet_small.py:127
↓ 3 callers
Method
name
(self)
cil/datasets_ref/imagenet.py:69
↓ 3 callers
Method
name
(self)
cil/datasets_ref/imagenet_sub.py:87
↓ 3 callers
Method
split_dataset
(self, dataset, ratio=0.8)
mtil/src/datasets/collections.py:69
↓ 3 callers
Method
split_dataset
(self, dataset, ratio=0.8)
cil/datasets_ref/collections.py:69
↓ 3 callers
Method
update
(self, dataset, load)
cil/continual_clip/dynamic_dataset.py:23
↓ 3 callers
Function
validate_label
(label)
mtil/src/datasets/ytbb_robust.py:65
↓ 3 callers
Function
validate_label
(label)
cil/datasets_ref/ytbb_robust.py:65
↓ 2 callers
Method
__init__
(self, anchor_annotations, pmk_annotations)
mtil/src/datasets/ytbb_robust.py:265
↓ 2 callers
Method
__init__
(self, preprocess, location=os.path.expanduser('~/data'), b
mtil/src/datasets/fmow.py:11
↓ 2 callers
Method
__init__
(self, args, keep_lang=False)
mtil/src/models/modeling.py:9
↓ 2 callers
Method
__init__
(self, anchor_annotations, pmk_annotations)
cil/datasets_ref/ytbb_robust.py:265
↓ 2 callers
Method
__init__
(self, preprocess, location=os.path.expanduser('~/data'), b
cil/datasets_ref/fmow.py:11
↓ 2 callers
Function
append_proper_article
(name)
mtil/src/templates/template_utils.py:24
↓ 2 callers
Function
append_proper_article
(name)
cil/templates/template_utils.py:24
↓ 2 callers
Function
batch
(iterable, n=64)
mtil/src/models/helpers.py:11
↓ 2 callers
Function
batch
(iterable, n=64)
cil/continual_clip/utils.py:157
↓ 2 callers
Function
build_cl_scenarios
(cfg, is_train, transforms)
cil/continual_clip/datasets.py:92
↓ 2 callers
Function
build_model
(state_dict: dict)
mtil/clip/model.py:409
↓ 2 callers
Function
build_model
(state_dict: dict)
cil/clip/model.py:409
↓ 2 callers
Function
bytes_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 callers
Function
bytes_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 callers
Function
create_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 callers
Function
create_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 callers
Function
distillation
(t, s, T=2)
cil/continual_clip/utils.py:198
↓ 2 callers
Method
encode_image
(self, image)
cil/clip/model.py:347
↓ 2 callers
Method
encode_text
(self, text)
cil/clip/model.py:350
↓ 2 callers
Function
evaluate_fc
(image_classifier, dataset)
mtil/src/general_eval.py:53
↓ 2 callers
Function
finetune
(args, ref_images)
mtil/src/models/icarl.py:46
↓ 2 callers
Method
getNewDataset
(self, args)
mtil/src/dynamic_dataset.py:84
↓ 2 callers
Method
getNewDataset
(self)
cil/continual_clip/dynamic_dataset.py:91
↓ 2 callers
Method
get_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 callers
Method
get_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 callers
Function
get_nonempty_subset
(dataset, split, frac=1.0, transform=None)
mtil/src/datasets/iwildcam.py:23
↓ 2 callers
Function
get_nonempty_subset
(dataset, split, frac=1.0, transform=None)
cil/datasets_ref/iwildcam.py:23
↓ 2 callers
Function
get_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 callers
Function
get_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 callers
Function
load_labels
(input_paths)
mtil/src/datasets/ytbb_robust.py:20
↓ 2 callers
Function
load_labels
(input_paths)
cil/datasets_ref/ytbb_robust.py:20
↓ 2 callers
Function
moving_avg
(model_0, model_1, alpha=0.999)
mtil/src/models/helpers.py:43
↓ 2 callers
Function
parse_frame_key
Parse key into video, frame index, and anchor ms.
mtil/src/datasets/ytbb_robust.py:251
↓ 2 callers
Function
parse_frame_key
Parse key into video, frame index, and anchor ms.
cil/datasets_ref/ytbb_robust.py:251
↓ 2 callers
Function
patch_device
(module)
mtil/clip/clip.py:241
↓ 2 callers
Function
patch_device
(module)
cil/clip/clip.py:241
↓ 2 callers
Function
patch_float
(module)
mtil/clip/clip.py:261
↓ 2 callers
Function
patch_float
(module)
cil/clip/clip.py:261
↓ 2 callers
Function
project_logits
(logits, class_sublist_mask, device)
mtil/src/datasets/imagenet.py:95
next →
1–100 of 631, ranked by callers