Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/caoql98/DCPL
/ functions
Functions
184 in github.com/caoql98/DCPL
⨍
Functions
184
◇
Types & classes
54
Method
__init__
(self, cfg, classnames, clip_model)
trainers/DCPL.py:70
Method
__init__
(self, clip_model)
trainers/independentVL.py:43
Method
__init__
(self, cfg, classnames, clip_model)
trainers/independentVL.py:66
Method
__init__
(self, clip_model)
trainers/vpt.py:45
Method
__init__
(self, cfg, classnames, clip_model)
trainers/vpt.py:68
Method
__init__
(self, clip_model)
trainers/coop.py:41
Method
__init__
(self, cfg, classnames, clip_model)
trainers/coop.py:64
Method
__init__
(self, clip_model)
trainers/maple.py:44
Method
__init__
(self, cfg, classnames, clip_model)
trainers/maple.py:70
Method
__init__
(self, clip_model)
trainers/cocoop.py:43
Method
__init__
(self, cfg, classnames, clip_model)
trainers/cocoop.py:66
Method
__init__
(self, cfg)
datasets/imagenet.py:16
Method
__init__
(self, cfg)
datasets/oxford_pets.py:16
Method
__init__
(self, cfg)
datasets/oxford_flowers.py:18
Method
__init__
(self, cfg)
datasets/imagenetv2.py:18
Method
__init__
(self, cfg)
datasets/sun397.py:15
Method
__init__
(self, cfg)
datasets/food101.py:16
Method
__init__
(self, cfg)
datasets/imagenet_sketch.py:18
Method
__init__
(self, cfg)
datasets/ucf101.py:16
Method
__init__
(self, cfg)
datasets/fgvc_aircraft.py:15
Method
__init__
(self, cfg)
datasets/imagenet_r.py:20
Method
__init__
(self, cfg)
datasets/imagenet_a.py:20
Method
__init__
(self, cfg)
datasets/dtd.py:16
Method
__init__
(self, cfg)
datasets/eurosat.py:29
Method
__init__
(self, cfg)
datasets/stanford_cars.py:16
Method
__init__
(self, cfg)
datasets/caltech101.py:24
Method
_collate
(ims, y, c)
datasets/oxford_flowers.py:68
Method
_collate
(ims, y, c)
datasets/dtd.py:69
Method
_convert
(items)
datasets/oxford_pets.py:124
Function
_convert_weights_to_fp16
(l)
clip/model.py:633
Method
_extract
(items)
datasets/oxford_pets.py:101
Method
build_model
(self)
trainers/zsclip.py:34
Method
build_model
(self)
trainers/zsclip.py:70
Method
check_cfg
(self, cfg)
trainers/DCPL.py:274
Method
check_cfg
(self, cfg)
trainers/independentVL.py:184
Method
check_cfg
(self, cfg)
trainers/vpt.py:119
Method
check_cfg
(self, cfg)
trainers/coop.py:222
Method
check_cfg
(self, cfg)
trainers/maple.py:213
Method
check_cfg
(self, cfg)
trainers/cocoop.py:202
Method
dtype
(self)
clip/model.py:592
Method
forward
(self, x: torch.Tensor)
clip/model.py:40
Method
forward
(self, x)
clip/model.py:66
Method
forward
(self, x)
clip/model.py:135
Method
forward
(self, x: torch.Tensor)
clip/model.py:156
Method
forward
(self, x: torch.Tensor)
clip/model.py:163
Method
forward
(self, x: torch.Tensor)
clip/model.py:185
Method
forward
(self, x: torch.Tensor)
clip/model.py:229
Method
forward
(self, inputs)
clip/model.py:287
Method
forward
(self, x: torch.Tensor)
clip/model.py:358
Method
forward
(self, x: torch.Tensor)
clip/model.py:393
Method
forward
(self, x: torch.Tensor, shared_ctx, compound_deeper_prompts)
clip/model.py:445
Method
forward
(self, prompts, tokenized_prompts, compound_prompts_deeper_text)
trainers/DCPL.py:52
Method
forward
(self,maefeatures)
trainers/DCPL.py:165
Method
forward
(self, image, label=None)
trainers/DCPL.py:226
Method
forward
(self, prompts, tokenized_prompts)
trainers/independentVL.py:51
Method
forward
(self)
trainers/independentVL.py:142
Method
forward
(self, image, label=None)
trainers/independentVL.py:164
Method
forward
(self, prompts, tokenized_prompts)
trainers/vpt.py:53
Method
forward
(self, image, label=None, training=False)
trainers/vpt.py:101
Method
forward
(self, prompts, tokenized_prompts)
trainers/coop.py:49
Method
forward
(self)
trainers/coop.py:121
Method
forward
(self, image)
trainers/coop.py:198
Method
forward
(self, prompts, tokenized_prompts, compound_prompts_deeper_text)
trainers/maple.py:52
Method
forward
(self)
trainers/maple.py:159
Method
forward
(self, image, label=None)
trainers/maple.py:189
Method
forward
(self, prompts, tokenized_prompts)
trainers/cocoop.py:51
Method
forward
(self, im_features)
trainers/cocoop.py:147
Method
forward
(self, image, label=None)
trainers/cocoop.py:177
Method
forward_backward
(self, batch)
trainers/DCPL.py:330
Method
forward_backward
(self, batch)
trainers/independentVL.py:237
Method
forward_backward
(self, batch)
trainers/vpt.py:172
Method
forward_backward
(self, batch)
trainers/coop.py:262
Method
forward_backward
(self, batch)
trainers/maple.py:266
Method
forward_backward
(self, batch)
trainers/cocoop.py:251
Function
load
Load a CLIP model Parameters ---------- name : str A model name listed by `clip.available_models()`, or the path to a model check
clip/clip.py:86
Method
load_model
(self, directory, epoch=None)
trainers/DCPL.py:365
Method
load_model
(self, directory, epoch=None)
trainers/independentVL.py:272
Method
load_model
(self, directory, epoch=None)
trainers/coop.py:296
Method
load_model
(self, directory, epoch=None)
trainers/maple.py:301
Method
load_model
(self, directory, epoch=None)
trainers/cocoop.py:286
Method
model_inference
(self, image)
trainers/zsclip.py:55
Method
stem
(x)
clip/model.py:136
Function
tokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]] An input s
clip/clip.py:185
Method
update_classname
(self, dataset_old)
datasets/eurosat.py:66
← previous
101–184 of 184, ranked by callers