MCPcopy Create free account

hub / github.com/CHENGY12/PLOT / functions

Functions329 in github.com/CHENGY12/PLOT

Functionload
Load a CLIP model Parameters ---------- name : str A model name listed by `clip.available_models()`, or the path to a model check
plot-adapter/clip/clip.py:86
Functionload
Load a CLIP model Parameters ---------- name : str A model name listed by `clip.available_models()`, or the path to a model check
plot-coop/clip/clip.py:86
Functionload_clip_to_cpu
(name)
plot-adapter/clip/clip.py:185
Functionload_model
(directory, epoch=None)
plot-adapter/main_imagenet.py:20
Functionload_model
(directory, epoch=None)
plot-adapter/main.py:24
Methodload_model
(self, directory, epoch=None)
plot-pp/trainers/plotpp.py:365
Functionnormalize8
(I)
visualization.py:9
Methodnum_classes
(self)
plot-adapter/datasets/utils.py:147
Methodread_and_split_data
( image_dir, p_trn=0.5, p_val=0.2, ignored=[], new_cnames=None )
plot-adapter/datasets/dtd.py:28
Methodread_data
(self, split_file)
plot-adapter/datasets/oxford_pets.py:31
Methodread_data
(self)
plot-adapter/datasets/oxford_flowers.py:31
Methodread_data
(self, cname2lab, text_file)
plot-adapter/datasets/sun397.py:27
Methodread_data
(self, cname2lab, text_file)
plot-adapter/datasets/ucf101.py:27
Methodread_data
(self, image_dir, anno_file, meta_file)
plot-adapter/datasets/stanford_cars.py:26
Methodsave_split
(train, val, test, filepath, path_prefix)
plot-adapter/datasets/oxford_pets.py:79
Methodsplit_dataset_by_domain
Split a dataset, i.e. a list of Datum objects, into domain-specific groups stored in a dictionary. Args: data_source (lis
plot-adapter/datasets/utils.py:268
Methodsplit_trainval
(trainval, p_val=0.2)
plot-adapter/datasets/oxford_pets.py:56
Methodstem
(x)
plot-pp/clip/model.py:139
Methodstem
(x)
plot-adapter/clip/model.py:136
Methodstem
(x)
plot-coop/clip/model.py:187
Functiontokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]] An input s
plot-pp/clip/clip.py:185
Functiontokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]] An input s
plot-adapter/clip/clip.py:208
Functiontokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]] An input s
plot-coop/clip/clip.py:185
Methodtrain_u
(self)
plot-adapter/datasets/utils.py:127
Methodtrain_x
(self)
plot-adapter/datasets/utils.py:123
Methodupdate_classname
(self, dataset_old)
plot-pp/datasets/eurosat.py:66
Methodupdate_classname
(self, dataset_old)
plot-adapter/datasets/eurosat.py:40
Methodupdate_classname
(self, dataset_old)
plot-coop/datasets/eurosat.py:66
Methodval
(self)
plot-adapter/datasets/utils.py:131
← previous301–329 of 329, ranked by callers