Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CHENGY12/PLOT
/ functions
Functions
329 in github.com/CHENGY12/PLOT
⨍
Functions
329
◇
Types & classes
88
Method
__init__
(self, root, num_shots)
plot-adapter/datasets/oxford_flowers.py:17
Method
__init__
(self, root, num_shots)
plot-adapter/datasets/sun397.py:15
Method
__init__
(self, root, num_shots)
plot-adapter/datasets/food101.py:14
Method
__init__
(self, root, num_shots)
plot-adapter/datasets/ucf101.py:15
Method
__init__
(self, root, num_shots)
plot-adapter/datasets/dtd.py:15
Method
__init__
(self, root, num_shots)
plot-adapter/datasets/eurosat.py:28
Method
__init__
(self, root, num_shots)
plot-adapter/datasets/stanford_cars.py:15
Method
__init__
(self, root, num_shots)
plot-adapter/datasets/caltech101.py:14
Method
__init__
(self, bpe_path: str = default_bpe())
plot-coop/clip/simple_tokenizer.py:63
Method
__init__
(self, inplanes, planes, stride=1)
plot-coop/clip/model.py:14
Method
__init__
(self, spacial_dim: int, embed_dim: int, num_heads: int, output_dim: int = None)
plot-coop/clip/model.py:58
Method
__init__
(self, layers, output_dim, heads, input_resolution=224, width=64)
plot-coop/clip/model.py:152
Method
__init__
(self, d_model: int, n_head: int, attn_mask: torch.Tensor = None)
plot-coop/clip/model.py:219
Method
__init__
(self, width: int, layers: int, heads: int, attn_mask: torch.Tensor = None)
plot-coop/clip/model.py:243
Method
__init__
(self, input_resolution: int, patch_size: int, width: int, layers: int, heads: int, output_dim: int)
plot-coop/clip/model.py:254
Method
__init__
(self, clip_model)
plot-coop/trainers/plot.py:38
Method
__init__
(self, cfg, classnames, clip_model)
plot-coop/trainers/plot.py:61
Method
__init__
(self, cfg)
plot-coop/datasets/imagenet.py:16
Method
__init__
(self, cfg)
plot-coop/datasets/oxford_pets.py:16
Method
__init__
(self, cfg)
plot-coop/datasets/oxford_flowers.py:18
Method
__init__
(self, cfg)
plot-coop/datasets/imagenetv2.py:18
Method
__init__
(self, cfg)
plot-coop/datasets/sun397.py:15
Method
__init__
(self, cfg)
plot-coop/datasets/food101.py:16
Method
__init__
(self, cfg)
plot-coop/datasets/imagenet_sketch.py:18
Method
__init__
(self, cfg)
plot-coop/datasets/ucf101.py:16
Method
__init__
(self, cfg)
plot-coop/datasets/fgvc_aircraft.py:15
Method
__init__
(self, cfg)
plot-coop/datasets/imagenet_r.py:20
Method
__init__
(self, cfg)
plot-coop/datasets/imagenet_a.py:20
Method
__init__
(self, cfg)
plot-coop/datasets/dtd.py:16
Method
__init__
(self, cfg)
plot-coop/datasets/eurosat.py:29
Method
__init__
(self, cfg)
plot-coop/datasets/stanford_cars.py:16
Method
__init__
(self, cfg)
plot-coop/datasets/caltech101.py:24
Method
__len__
(self)
plot-adapter/datasets/utils.py:310
Method
_collate
(ims, y, c)
plot-pp/datasets/oxford_flowers.py:68
Method
_collate
(ims, y, c)
plot-pp/datasets/dtd.py:69
Method
_collate
(ims, y, c)
plot-adapter/datasets/oxford_flowers.py:42
Method
_collate
(ims, y, c)
plot-adapter/datasets/dtd.py:49
Method
_collate
(ims, y, c)
plot-coop/datasets/oxford_flowers.py:68
Method
_collate
(ims, y, c)
plot-coop/datasets/dtd.py:69
Method
_convert
(items)
plot-pp/datasets/oxford_pets.py:124
Method
_convert
(items)
plot-adapter/datasets/oxford_pets.py:107
Method
_convert
(items)
plot-coop/datasets/oxford_pets.py:124
Function
_convert_weights_to_fp16
(l)
plot-pp/clip/model.py:436
Function
_convert_weights_to_fp16
(l)
plot-adapter/clip/model.py:374
Function
_convert_weights_to_fp16
(l)
plot-coop/clip/model.py:425
Method
_extract
(items)
plot-pp/datasets/oxford_pets.py:101
Method
_extract
(items)
plot-adapter/datasets/oxford_pets.py:80
Method
_extract
(items)
plot-coop/datasets/oxford_pets.py:101
Method
check_cfg
(self, cfg)
plot-pp/trainers/plotpp.py:271
Method
check_cfg
(self, cfg)
plot-coop/trainers/plot.py:291
Method
check_input_domains
(self, source_domains, target_domains)
plot-adapter/datasets/utils.py:176
Method
classname
(self)
plot-adapter/datasets/utils.py:100
Method
classnames
(self)
plot-adapter/datasets/utils.py:143
Method
domain
(self)
plot-adapter/datasets/utils.py:96
Method
download_data
(self, url, dst, from_gdrive=True)
plot-adapter/datasets/utils.py:188
Method
dtype
(self)
plot-pp/clip/model.py:395
Method
dtype
(self)
plot-adapter/clip/model.py:333
Method
dtype
(self)
plot-coop/clip/model.py:384
Method
forward
(self, x: torch.Tensor)
plot-pp/clip/model.py:41
Method
forward
(self, x)
plot-pp/clip/model.py:69
Method
forward
(self, x)
plot-pp/clip/model.py:138
Method
forward
(self, x: torch.Tensor)
plot-pp/clip/model.py:159
Method
forward
(self, x: torch.Tensor)
plot-pp/clip/model.py:166
Method
forward
(self, x: torch.Tensor)
plot-pp/clip/model.py:188
Method
forward
(self, x: torch.Tensor)
plot-pp/clip/model.py:200
Method
forward
(self, x: torch.Tensor, prompt)
plot-pp/clip/model.py:258
Method
forward
(self, prompts, tokenized_prompts)
plot-pp/trainers/plotpp.py:46
Method
forward
(self)
plot-pp/trainers/plotpp.py:163
Method
forward
(self, image)
plot-pp/trainers/plotpp.py:216
Method
forward
(self, prompts, tokenized_prompts)
plot-adapter/main_imagenet.py:63
Method
forward
(self)
plot-adapter/main_imagenet.py:137
Method
forward
(self, image)
plot-adapter/main_imagenet.py:242
Method
forward
(self, prompts, tokenized_prompts)
plot-adapter/main.py:67
Method
forward
(self)
plot-adapter/main.py:141
Method
forward
(self, image)
plot-adapter/main.py:245
Method
forward
(self, x: torch.Tensor)
plot-adapter/clip/model.py:40
Method
forward
(self, x)
plot-adapter/clip/model.py:66
Method
forward
(self, x)
plot-adapter/clip/model.py:135
Method
forward
(self, x: torch.Tensor)
plot-adapter/clip/model.py:156
Method
forward
(self, x: torch.Tensor)
plot-adapter/clip/model.py:163
Method
forward
(self, x: torch.Tensor)
plot-adapter/clip/model.py:185
Method
forward
(self, x: torch.Tensor)
plot-adapter/clip/model.py:198
Method
forward
(self, x: torch.Tensor)
plot-adapter/clip/model.py:219
Method
forward
(self, x: torch.Tensor)
plot-coop/clip/model.py:41
Method
forward
(self, x)
plot-coop/clip/model.py:69
Method
forward
(self, x)
plot-coop/clip/model.py:186
Method
forward
(self, x: torch.Tensor)
plot-coop/clip/model.py:207
Method
forward
(self, x: torch.Tensor)
plot-coop/clip/model.py:214
Method
forward
(self, x: torch.Tensor)
plot-coop/clip/model.py:236
Method
forward
(self, x: torch.Tensor)
plot-coop/clip/model.py:249
Method
forward
(self, x: torch.Tensor)
plot-coop/clip/model.py:270
Method
forward
(self, prompts, tokenized_prompts)
plot-coop/trainers/plot.py:46
Method
forward
(self)
plot-coop/trainers/plot.py:125
Method
forward
(self, image)
plot-coop/trainers/plot.py:230
Method
forward_backward
(self, batch)
plot-pp/trainers/plotpp.py:333
Method
forward_backward
(self, batch)
plot-coop/trainers/plot.py:340
Method
impath
(self)
plot-adapter/datasets/utils.py:88
Method
lab2cname
(self)
plot-adapter/datasets/utils.py:139
Method
label
(self)
plot-adapter/datasets/utils.py:92
Function
load
Load a CLIP model Parameters ---------- name : str A model name listed by `clip.available_models()`, or the path to a model check
plot-pp/clip/clip.py:86
← previous
next →
201–300 of 329, ranked by callers