MCPcopy Create free account

hub / github.com/CHENGY12/PLOT / functions

Functions329 in github.com/CHENGY12/PLOT

↓ 1 callersFunctionconvert_weights
Convert applicable model parameters to fp16
plot-coop/clip/model.py:422
↓ 1 callersMethoddecode
(self, tokens)
plot-pp/clip/simple_tokenizer.py:129
↓ 1 callersMethoddecode
(self, tokens)
plot-adapter/clip/simple_tokenizer.py:129
↓ 1 callersMethoddecode
(self, tokens)
plot-coop/clip/simple_tokenizer.py:129
↓ 1 callersFunctiondefault_bpe
()
plot-pp/clip/simple_tokenizer.py:11
↓ 1 callersFunctiondefault_bpe
()
plot-adapter/clip/simple_tokenizer.py:11
↓ 1 callersFunctiondefault_bpe
()
plot-coop/clip/simple_tokenizer.py:11
↓ 1 callersMethodencode_image
(self, image)
plot-pp/clip/model.py:398
↓ 1 callersMethodencode_image
(self, image)
plot-adapter/clip/model.py:336
↓ 1 callersMethodencode_image
(self, image)
plot-coop/clip/model.py:387
↓ 1 callersMethodencode_text
(self, text)
plot-pp/clip/model.py:401
↓ 1 callersMethodencode_text
(self, text)
plot-coop/clip/model.py:390
↓ 1 callersFunctionextend_cfg
Add new config variables. E.g. from yacs.config import CfgNode as CN cfg.TRAINER.MY_MODEL = CN() cfg.TRAINER.MY_MODE
plot-pp/train.py:77
↓ 1 callersFunctionextend_cfg
Add new config variables. E.g. from yacs.config import CfgNode as CN cfg.TRAINER.MY_MODEL = CN() cfg.TRAINER.MY_MODE
plot-coop/train.py:75
↓ 1 callersMethodforward
(self, image, text)
plot-pp/clip/model.py:416
↓ 1 callersMethodforward
(self, image, text)
plot-adapter/clip/model.py:354
↓ 1 callersMethodforward
(self, image, text)
plot-coop/clip/model.py:405
↓ 1 callersFunctionget_arguments
()
plot-adapter/main_imagenet.py:296
↓ 1 callersFunctionget_arguments
()
plot-adapter/main.py:298
↓ 1 callersMethodget_lab2cname
Get a label-to-classname mapping (dict). Args: data_source (list): a list of Datum objects.
plot-adapter/datasets/utils.py:161
↓ 1 callersMethodget_num_classes
Count number of classes. Args: data_source (list): a list of Datum objects.
plot-adapter/datasets/utils.py:150
↓ 1 callersMethodinitialize_parameters
(self)
plot-pp/clip/model.py:357
↓ 1 callersMethodinitialize_parameters
(self)
plot-adapter/clip/model.py:295
↓ 1 callersMethodinitialize_parameters
(self)
plot-coop/clip/model.py:346
↓ 1 callersFunctionload_clip_to_cpu
(cfg)
plot-pp/trainers/plotpp.py:19
↓ 1 callersFunctionload_clip_to_cpu
(cfg)
plot-coop/trainers/plot.py:19
↓ 1 callersMethodload_model
(self, directory, epoch=None)
plot-coop/trainers/plot.py:374
↓ 1 callersFunctionmain
(args)
plot-pp/train.py:143
↓ 1 callersFunctionmain
()
plot-adapter/main_imagenet.py:393
↓ 1 callersFunctionmain
()
plot-adapter/main.py:426
↓ 1 callersFunctionmain
(args)
plot-coop/train.py:137
↓ 1 callersMethodparse_batch_train
(self, batch)
plot-pp/trainers/plotpp.py:357
↓ 1 callersMethodparse_batch_train
(self, batch)
plot-coop/trainers/plot.py:367
↓ 1 callersFunctionprint_args
(args, cfg)
plot-pp/train.py:29
↓ 1 callersFunctionprint_args
(args, cfg)
plot-coop/train.py:29
↓ 1 callersMethodread_data
(self)
plot-pp/datasets/oxford_flowers.py:57
↓ 1 callersMethodread_data
(self, classnames)
plot-pp/datasets/imagenetv2.py:31
↓ 1 callersMethodread_data
(self, classnames)
plot-pp/datasets/imagenet_sketch.py:30
↓ 1 callersMethodread_data
(self, classnames)
plot-pp/datasets/imagenet_r.py:32
↓ 1 callersMethodread_data
(self, classnames)
plot-pp/datasets/imagenet_a.py:32
↓ 1 callersMethodread_data
(self)
plot-coop/datasets/oxford_flowers.py:57
↓ 1 callersMethodread_data
(self, classnames)
plot-coop/datasets/imagenetv2.py:31
↓ 1 callersMethodread_data
(self, classnames)
plot-coop/datasets/imagenet_sketch.py:30
↓ 1 callersMethodread_data
(self, classnames)
plot-coop/datasets/imagenet_r.py:32
↓ 1 callersMethodread_data
(self, classnames)
plot-coop/datasets/imagenet_a.py:32
↓ 1 callersFunctionread_image
Read image from path using ``PIL.Image``. Args: path (str): path to an image. Returns: PIL image
plot-adapter/datasets/utils.py:30
↓ 1 callersFunctionreset_cfg
(cfg, args)
plot-pp/train.py:43
↓ 1 callersFunctionreset_cfg
(cfg, args)
plot-coop/train.py:43
↓ 1 callersFunctionrun_tip_adapter_F
(cfg, clip_model, train_loader_F,test_loader)
plot-adapter/main_imagenet.py:304
↓ 1 callersFunctionrun_tip_adapter_F
(cfg, clip_model, train_loader_F,val_loader,test_loader)
plot-adapter/main.py:308
↓ 1 callersFunctionsearch_hp
(cfg, clip_model, adapter=None)
plot-adapter/utils.py:174
↓ 1 callersFunctionsearch_hp_imagenet
(cfg, clip_model, adapter=None)
plot-adapter/utils.py:236
↓ 1 callersFunctionsetup_cfg
(args)
plot-pp/train.py:105
↓ 1 callersFunctionsetup_cfg
(args)
plot-coop/train.py:99
↓ 1 callersMethodsplit_dataset_by_label
Split a dataset, i.e. a list of Datum objects, into class-specific groups stored in a dictionary. Args: data_source (list
plot-adapter/datasets/utils.py:254
↓ 1 callersFunctionwhitespace_clean
(text)
plot-pp/clip/simple_tokenizer.py:56
↓ 1 callersFunctionwhitespace_clean
(text)
plot-adapter/clip/simple_tokenizer.py:56
↓ 1 callersFunctionwhitespace_clean
(text)
plot-coop/clip/simple_tokenizer.py:56
Method__getitem__
(self, idx)
plot-adapter/datasets/utils.py:313
Method__init__
(self, bpe_path: str = default_bpe())
plot-pp/clip/simple_tokenizer.py:63
Method__init__
(self, inplanes, planes, stride=1)
plot-pp/clip/model.py:14
Method__init__
(self, spacial_dim: int, embed_dim: int, num_heads: int, output_dim: int = None)
plot-pp/clip/model.py:58
Method__init__
(self, layers, output_dim, heads, input_resolution=224, width=64)
plot-pp/clip/model.py:104
Method__init__
(self, d_model: int, n_head: int, attn_mask: torch.Tensor = None)
plot-pp/clip/model.py:171
Method__init__
(self, width: int, layers: int, heads: int, attn_mask: torch.Tensor = None)
plot-pp/clip/model.py:194
Method__init__
(self, input_resolution: int, patch_size: int, width: int, layers: int, heads: int, output_dim: int)
plot-pp/clip/model.py:242
Method__init__
(self, clip_model)
plot-pp/trainers/plotpp.py:38
Method__init__
(self, cfg, classnames, clip_model)
plot-pp/trainers/plotpp.py:57
Method__init__
(self, cfg)
plot-pp/datasets/imagenet.py:16
Method__init__
(self, cfg)
plot-pp/datasets/oxford_pets.py:16
Method__init__
(self, cfg)
plot-pp/datasets/oxford_flowers.py:18
Method__init__
(self, cfg)
plot-pp/datasets/imagenetv2.py:18
Method__init__
(self, cfg)
plot-pp/datasets/sun397.py:15
Method__init__
(self, cfg)
plot-pp/datasets/food101.py:16
Method__init__
(self, cfg)
plot-pp/datasets/imagenet_sketch.py:18
Method__init__
(self, cfg)
plot-pp/datasets/ucf101.py:16
Method__init__
(self, cfg)
plot-pp/datasets/fgvc_aircraft.py:15
Method__init__
(self, cfg)
plot-pp/datasets/imagenet_r.py:20
Method__init__
(self, cfg)
plot-pp/datasets/imagenet_a.py:20
Method__init__
(self, cfg)
plot-pp/datasets/dtd.py:16
Method__init__
(self, cfg)
plot-pp/datasets/eurosat.py:29
Method__init__
(self, cfg)
plot-pp/datasets/stanford_cars.py:16
Method__init__
(self, cfg)
plot-pp/datasets/caltech101.py:24
Method__init__
(self, clip_model)
plot-adapter/main_imagenet.py:55
Method__init__
(self, classnames, clip_model)
plot-adapter/main_imagenet.py:78
Method__init__
(self, clip_model)
plot-adapter/main.py:59
Method__init__
(self, classnames, clip_model)
plot-adapter/main.py:82
Method__init__
(self, bpe_path: str = default_bpe())
plot-adapter/clip/simple_tokenizer.py:63
Method__init__
(self, inplanes, planes, stride=1)
plot-adapter/clip/model.py:13
Method__init__
(self, spacial_dim: int, embed_dim: int, num_heads: int, output_dim: int = None)
plot-adapter/clip/model.py:57
Method__init__
(self, layers, output_dim, heads, input_resolution=224, width=64)
plot-adapter/clip/model.py:101
Method__init__
(self, d_model: int, n_head: int, attn_mask: torch.Tensor = None)
plot-adapter/clip/model.py:168
Method__init__
(self, width: int, layers: int, heads: int, attn_mask: torch.Tensor = None)
plot-adapter/clip/model.py:192
Method__init__
(self, input_resolution: int, patch_size: int, width: int, layers: int, heads: int, output_dim: int)
plot-adapter/clip/model.py:203
Method__init__
(self, root, num_shots)
plot-adapter/datasets/fgvc.py:13
Method__init__
(self, root, num_shots, preprocess)
plot-adapter/datasets/imagenet.py:191
Method__init__
(self, impath='', label=0, domain=-1, classname='')
plot-adapter/datasets/utils.py:76
Method__init__
(self, train_x=None, train_u=None, val=None, test=None)
plot-adapter/datasets/utils.py:113
Method__init__
(self, data_source, input_size, transform=None, is_train=False, return_img0=False, k_tfm=1)
plot-adapter/datasets/utils.py:284
Method__init__
(self, root, num_shots)
plot-adapter/datasets/oxford_pets.py:18
← previousnext →101–200 of 329, ranked by callers