MCPcopy Create free account

hub / github.com/ant-research/DreamLIP / functions

Functions432 in github.com/ant-research/DreamLIP

↓ 1 callersFunctionrotate_level_to_args
(MAX_LEVEL, replace_value)
training/random_aug.py:352
↓ 1 callersFunctionsave_config_for_hf
( model, config_path: str, model_config: Optional[dict] )
open_clip/push_to_hf_hub.py:40
↓ 1 callersFunctionsave_for_hf
( model, tokenizer: HFTokenizer, model_config: dict, save_directory: str, safe_serializati
open_clip/push_to_hf_hub.py:63
↓ 1 callersMethodset_epoch
(self, epoch)
training/data.py:531
↓ 1 callersFunctionset_model_preprocess_cfg
(model, preprocess_cfg: Dict[str, Any])
open_clip/model.py:716
↓ 1 callersMethodset_value
(self, epoch)
training/data.py:518
↓ 1 callersFunctionsetup_logging
(log_file, level, include_host=False)
training/logger.py:4
↓ 1 callersFunctionsolarize_level_to_args
(MAX_LEVEL)
training/random_aug.py:334
↓ 1 callersFunctionstart_sync_process
(sync_every, local_dir, remote_dir, protocol)
training/file_utils.py:59
↓ 1 callersMethodstem
(self, x)
open_clip/modified_resnet.py:166
↓ 1 callersFunctionsync_random_seed
Make sure different ranks share the same seed. All workers must call this function, otherwise it will deadlock. This method is generally used
dataloaders/utils.py:37
↓ 1 callersFunctiontrace_model
(model, batch_size=256, device=torch.device('cpu'))
open_clip/model.py:617
↓ 1 callersFunctiontrain_one_epoch
(model, data, loss, epoch, optimizer, scaler, scheduler, dist_model, args, tb_writer=None)
training/train.py:64
↓ 1 callersFunctionzero_shot_eval
(model, data, epoch, args, tokenizer=None)
training/zero_shot.py:44
Method__call__
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]]
open_clip/tokenizer.py:220
Method__call__
(self, texts: Union[str, List[str]], context_length: Optional[int] = None)
open_clip/tokenizer.py:418
Method__call__
(self, texts: Union[str, List[str]], context_length: Optional[int] = None)
open_clip/tokenizer.py:482
Method__call__
(self, x)
open_clip/transform.py:44
Method__call__
Args: img (PIL Image): Image to be cropped and resized. Returns: PIL Image: Resized, padded to at least targ
open_clip/transform.py:154
Method__call__
(self, img)
open_clip/transform.py:261
Method__call__
(self, img)
open_clip/transform.py:277
Method__call__
(self, img)
training/random_aug.py:419
Method__call__
(self, parser, namespace, values, option_string=None)
training/params.py:15
Method__getitem__
(self, idx)
training/data.py:72
Method__getitem__
(self, idx)
training/data.py:225
Method__getitem__
(self, idx)
training/data.py:371
Method__getitem__
(self, idx)
training/data.py:476
Method__getitem__
(self, idx)
training/data.py:1086
Method__getitem__
(self, index)
dataloaders/flowers102.py:22
Method__getitem__
(self, index: int)
dataloaders/coco.py:48
Method__getitem__
(self, index)
dataloaders/dtd.py:21
Method__getitem__
Args: index (int): Index Returns: tuple: Tuple (image, target). target is a list of captions for the image.
dataloaders/flickr30k.py:88
Method__getitem__
Args: index (int): Index Returns: tuple: Tuple (image, target). target is a list of captions for the image.
dataloaders/flickr30k.py:145
Method__init__
( self, caption_loss_weight, clip_loss_weight, pad_id=0, # pa
open_clip/loss.py:444
Method__init__
( self, cache_labels=False, rank=0, world_size=1,
open_clip/loss.py:626
Method__init__
(self, gamma_neg=4, gamma_pos=1, clip=0.05, eps=1e-8, disable_torch_grad_focal_loss=True)
open_clip/loss.py:729
Method__init__
(self, scale=16, margin=0.1)
open_clip/loss.py:780
Method__init__
( self, embed_dim, multimodal_cfg: MultimodalCfg, text_cfg: CL
open_clip/coca_model.py:80
Method__init__
(self, spacial_dim: int, embed_dim: int, num_heads: int, output_dim: int = None)
open_clip/modified_resnet.py:59
Method__init__
(self, layers, output_dim, heads, image_size=224, width=64)
open_clip/modified_resnet.py:103
Method__init__
( self, bpe_path: str = default_bpe(), additional_special_tokens: Optional
open_clip/tokenizer.py:127
Method__init__
( self, tokenizer_name: str, context_length: Optional[int] = DEFAULT_CONTE
open_clip/tokenizer.py:400
Method__init__
( self, tokenizer_name: str, context_length: Optional[int] = 64, )
open_clip/tokenizer.py:456
Method__init__
(self, sigma=[.1, 2.])
open_clip/transform.py:41
Method__init__
( self, size, longest=0., interpolation=InterpolationMode.BICU
open_clip/transform.py:104
Method__init__
(self, size, fill=0)
open_clip/transform.py:229
Method__init__
(self, brightness=0., contrast=0., saturation=0., hue=0., p=0.8)
open_clip/transform.py:256
Method__init__
( self, model_name, embed_dim, image_size=224, poo
open_clip/timm_model.py:32
Method__init__
(self)
open_clip/hf_model.py:88
Method__init__
( self, model_name_or_path: str, output_dim: int, config: Pret
open_clip/hf_model.py:100
Method__init__
(self, dim, init_values=1e-5, inplace=False)
open_clip/transformer.py:40
Method__init__
(self, prob, exclude_first_token=True)
open_clip/transformer.py:54
Method__init__
( self, d_model: int, context_dim: int, n_head: int = 8,
open_clip/transformer.py:166
Method__init__
( self, d_model: int, n_head: int, mlp_ratio: float = 4.0,
open_clip/transformer.py:189
Method__init__
( self, d_model: int, n_head: int, mlp_ratio: float = 4.0,
open_clip/transformer.py:247
Method__init__
( self, width: int, layers: int, heads: int, mlp_r
open_clip/transformer.py:292
Method__init__
( self, image_size: int, patch_size: int, width: int,
open_clip/transformer.py:331
Method__init__
( self, context_length: int = 77, vocab_size: int = 49408, wid
open_clip/transformer.py:569
Method__init__
( self, width: int, layers: int, heads: int, conte
open_clip/transformer.py:713
Method__init__
(self, num_class, hidden_dim, bias=True)
open_clip/model.py:225
Method__init__
( self, embed_dim: int, vision_cfg: CLIPVisionCfg, text_cfg: C
open_clip/model.py:396
Method__init__
(self, N=2, M=10, isPIL=False, augs=[])
training/random_aug.py:406
Method__init__
(self)
training/train.py:26
Method__init__
(self, txt_file)
training/data.py:56
Method__init__
(self, input_filename, transforms, img_key,
training/data.py:306
Method__init__
(self, input_filename, transforms, img_key,
training/data.py:419
Method__init__
(self, epoch: int = 0)
training/data.py:515
Method__init__
( self, bufsize=1000, initial=100, seed=0, epoch=-
training/data.py:754
Method__init__
Sample shards from the shard list with replacement. :param urls: a list of URLs as a Python list or brace notation string
training/data.py:788
Method__init__
( self, transform=None, image_size=(224, 224), caption="Dummy
training/data.py:1067
Method__init__
( self, dataset, num_replicas=None, # world_size rank=None, # local_rank
dataloaders/utils.py:75
Method__init__
(self, dataset)
dataloaders/flowers102.py:15
Method__init__
( self, root: str, annFile: str, transform: Optional[Callable] = None,
dataloaders/coco.py:27
Method__init__
(self, dataset)
dataloaders/dtd.py:14
Method__init__
(self, root: str)
dataloaders/flickr30k.py:18
Method__init__
( self, root: str, ann_file: str, transform: Optional[Callable] = None,
dataloaders/flickr30k.py:126
Method__iter__
Return an iterator over the shards.
training/data.py:815
Method__iter__
(self)
dataloaders/utils.py:94
Method__len__
(self)
training/data.py:69
Method__len__
(self)
training/data.py:199
Method__len__
(self)
training/data.py:345
Method__len__
(self)
training/data.py:450
Method__len__
(self)
training/data.py:1083
Method__len__
(self)
dataloaders/flowers102.py:19
Method__len__
(self)
dataloaders/coco.py:58
Method__len__
(self)
dataloaders/dtd.py:18
Method__len__
(self)
dataloaders/flickr30k.py:110
Method__len__
(self)
dataloaders/flickr30k.py:168
Method__post_init__
(self)
open_clip/transform.py:27
Method__repr__
(self)
open_clip/transform.py:170
Method__repr__
(self)
open_clip/transform.py:244
Function_clean_canonicalize
(x)
open_clip/tokenizer.py:77
Function_clean_lower
(x)
open_clip/tokenizer.py:82
Function_clean_whitespace
(x)
open_clip/tokenizer.py:87
Function_convert_ln
(m)
open_clip/factory.py:269
Function_convert_to_rgb
(image)
open_clip/transform.py:248
Function_convert_weights
(l)
open_clip/model.py:509
Method_load_target
(self, id: int)
dataloaders/coco.py:105
Function_lr_adjuster
(step)
training/scheduler.py:14
Method_serialize
(data)
training/data.py:58
← previousnext →201–300 of 432, ranked by callers