Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ant-research/DreamLIP
/ functions
Functions
432 in github.com/ant-research/DreamLIP
⨍
Functions
432
◇
Types & classes
72
↓ 1 callers
Function
rotate_level_to_args
(MAX_LEVEL, replace_value)
training/random_aug.py:352
↓ 1 callers
Function
save_config_for_hf
( model, config_path: str, model_config: Optional[dict] )
open_clip/push_to_hf_hub.py:40
↓ 1 callers
Function
save_for_hf
( model, tokenizer: HFTokenizer, model_config: dict, save_directory: str, safe_serializati
open_clip/push_to_hf_hub.py:63
↓ 1 callers
Method
set_epoch
(self, epoch)
training/data.py:531
↓ 1 callers
Function
set_model_preprocess_cfg
(model, preprocess_cfg: Dict[str, Any])
open_clip/model.py:716
↓ 1 callers
Method
set_value
(self, epoch)
training/data.py:518
↓ 1 callers
Function
setup_logging
(log_file, level, include_host=False)
training/logger.py:4
↓ 1 callers
Function
solarize_level_to_args
(MAX_LEVEL)
training/random_aug.py:334
↓ 1 callers
Function
start_sync_process
(sync_every, local_dir, remote_dir, protocol)
training/file_utils.py:59
↓ 1 callers
Method
stem
(self, x)
open_clip/modified_resnet.py:166
↓ 1 callers
Function
sync_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 callers
Function
trace_model
(model, batch_size=256, device=torch.device('cpu'))
open_clip/model.py:617
↓ 1 callers
Function
train_one_epoch
(model, data, loss, epoch, optimizer, scaler, scheduler, dist_model, args, tb_writer=None)
training/train.py:64
↓ 1 callers
Function
zero_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
← previous
next →
201–300 of 432, ranked by callers