MCPcopy Create free account

hub / github.com/alejandro-lozano-dev/open_clip_with_biomedica / functions

Functions384 in github.com/alejandro-lozano-dev/open_clip_with_biomedica

↓ 118 callersFunction_pcfg
(url='', hf_hub='', **kwargs)
src/open_clip/pretrained.py:29
↓ 47 callersFunction_n2p
(w, t=True)
src/open_clip/convert.py:21
↓ 15 callersMethoddecode
(self, tokens)
src/open_clip/tokenizer.py:221
↓ 13 callersFunction_slpcfg
(url='', hf_hub='', **kwargs)
src/open_clip/pretrained.py:42
↓ 12 callersFunctionis_master
(args, local=False)
src/open_clip_train/distributed.py:20
↓ 11 callersMethodupdate
(self, val, n=1)
src/open_clip_train/train.py:35
↓ 10 callersMethod__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = True,
src/open_clip/transformer.py:90
↓ 8 callersFunctiondownload_pretrained_from_url
( url: str, cache_dir: Union[str, None] = None, )
src/open_clip/pretrained.py:562
↓ 7 callersFunction_apcfg
(url='', hf_hub='', **kwargs)
src/open_clip/pretrained.py:55
↓ 7 callersMethodencode_text
(self, text, normalize: bool = False)
src/open_clip/model.py:269
↓ 6 callersMethodcreate_response
(self, data, status_code=200, content_type='application/octet-stream')
tests/test_download_pretrained.py:20
↓ 6 callersFunctionmain
(args)
src/open_clip_train/main.py:71
↓ 5 callersFunction_ntuple
(n)
src/open_clip/utils.py:49
↓ 5 callersMethodencode_image
(self, image, normalize: bool = False)
src/open_clip/model.py:265
↓ 4 callersFunction_clean_tag
(tag: str)
src/open_clip/pretrained.py:514
↓ 4 callersMethod_encode_image
(self, images, normalize: bool = True)
src/open_clip/coca_model.py:149
↓ 4 callersMethod_loss
(self, image_features, text_features, logit_scale, logit_bias=None, negative_only=False)
src/open_clip/loss.py:349
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
src/open_clip/modified_resnet.py:132
↓ 4 callersFunction_mccfg
(url='', hf_hub='', **kwargs)
src/open_clip/pretrained.py:68
↓ 4 callersFunctionbasic_clean
(text)
src/open_clip/tokenizer.py:66
↓ 4 callersFunctionbuild_inputs
(test_name)
tests/test_wds.py:19
↓ 4 callersFunctiondownload_pretrained_from_hf
( model_id: str, filename: str = 'open_clip_pytorch_model.bin', revision=None,
src/open_clip/pretrained.py:616
↓ 4 callersFunctionget_autocast
(precision)
src/open_clip_train/precision.py:5
↓ 4 callersFunctionget_tokenizer
( model_name: str = '', context_length: Optional[int] = None, **kwargs, )
src/open_clip/factory.py:84
↓ 4 callersFunctionmerge_preprocess_dict
Merge overlay key-value pairs on top of base preprocess cfg or dict. Input dicts are filtered based on PreprocessCfg fields.
src/open_clip/transform.py:40
↓ 3 callersFunction_build_text_tower
( embed_dim: int, text_cfg: CLIPTextCfg, quick_gelu: bool = False, cast_dtype:
src/open_clip/model.py:173
↓ 3 callersFunction_build_vision_tower
( embed_dim: int, vision_cfg: CLIPVisionCfg, quick_gelu: bool = False, cast_dt
src/open_clip/model.py:104
↓ 3 callersMethod_global_pool
(self, x: torch.Tensor)
src/open_clip/transformer.py:598
↓ 3 callersFunction_sytem_assert
(string)
tests/util_test.py:196
↓ 3 callersFunction_warmup_lr
(base_lr, warmup_length, step)
src/open_clip_train/scheduler.py:9
↓ 3 callersFunctionassign_learning_rate
(optimizer, new_lr)
src/open_clip_train/scheduler.py:4
↓ 3 callersFunctionbuild_params
(input_shards, seed=0)
tests/test_wds.py:56
↓ 3 callersFunctioncount_params
(model)
src/open_clip_train/profiler.py:125
↓ 3 callersFunctionexpand_urls
(urls, weights=None)
src/open_clip_train/data.py:76
↓ 3 callersFunctionfreeze_batch_norm_2d
Converts all `BatchNorm2d` and `SyncBatchNorm` layers of provided module into `FrozenBatchNorm2d`. If `module` is itself an instance of eithe
src/open_clip/utils.py:9
↓ 3 callersFunctionget_input_dtype
(precision: str)
src/open_clip/model.py:95
↓ 3 callersMethodget_logits
(self, image_features, text_features, logit_scale)
src/open_clip/loss.py:102
↓ 3 callersFunctionget_model_config
(model_name)
src/open_clip/factory.py:70
↓ 3 callersFunctionget_wds_dataset
(args, preprocess_img, is_train, epoch=0, floor=False, tokenizer=None)
src/open_clip_train/data.py:330
↓ 3 callersFunctionimage_transform_v2
( cfg: PreprocessCfg, is_train: bool, aug_cfg: Optional[Union[Dict[str, Any], Augmenta
src/open_clip/transform.py:393
↓ 3 callersMethodlock
lock modules Args: unlocked_groups (int): leave last n layer groups unlocked (default: 0)
src/open_clip/timm_model.py:110
↓ 3 callersFunctionrandom_seed
(seed=42, rank=0)
src/open_clip_train/main.py:44
↓ 3 callersFunctionremote_sync
(local_dir, remote_dir, protocol)
src/open_clip_train/file_utils.py:44
↓ 3 callersMethodreset
(self)
src/open_clip_train/train.py:29
↓ 3 callersMethodset_grad_checkpointing
(self, enable=True)
src/open_clip/model.py:261
↓ 3 callersFunctiontext_global_pool
(x, text: Optional[torch.Tensor] = None, pool_type: str = 'argmax')
src/open_clip/transformer.py:653
↓ 2 callersMethod__init__
( self, local_loss=False, gather_with_grad=False, cache_labels
src/open_clip/loss.py:68
↓ 2 callersMethod__init__
(self, inplanes, planes, stride=1)
src/open_clip/modified_resnet.py:13
↓ 2 callersMethod__init__
(self, use_pooler_output=True)
src/open_clip/hf_model.py:67
↓ 2 callersFunction_convert_openclip_txt
(module: TextTransformer, prefix)
src/open_clip/convert.py:125
↓ 2 callersFunction_convert_timm_img
(module, prefix)
src/open_clip/convert.py:37
↓ 2 callersMethod_encode_text
(self, text, normalize: bool = True)
src/open_clip/coca_model.py:154
↓ 2 callersFunction_expand_token
(token, batch_size: int)
src/open_clip/transformer.py:315
↓ 2 callersFunction_get_hf_config
(model_id, cache_dir=None)
src/open_clip/factory.py:77
↓ 2 callersFunction_process_batch
(batch_classnames)
src/open_clip/zero_shot_classifier.py:52
↓ 2 callersFunction_rescan_model_configs
()
src/open_clip/factory.py:33
↓ 2 callersFunction_token_to_tensor
(token_id, device: str = "cpu")
src/open_clip/coca_model.py:81
↓ 2 callersFunctionadd_experiment_to_csv
Adds a new experiment configuration to a CSV file. If the CSV doesn't exist, it creates a new one. The configuration includes hyperparameter
scripts/create_job_dataframe.py:3
↓ 2 callersFunctionbackward
(total_loss, scaler)
src/open_clip_train/train.py:57
↓ 2 callersMethodbackward
(ctx, grad_output)
src/open_clip/loss.py:281
↓ 2 callersFunctionbroadcast_object
(args, obj, src=0)
src/open_clip_train/distributed.py:117
↓ 2 callersFunctionbuild_model_from_openai_state_dict
( state_dict: dict, quick_gelu=True, cast_dtype=torch.float16, )
src/open_clip/model.py:448
↓ 2 callersFunctionbytes_to_unicode
Returns list of utf-8 byte and a corresponding list of unicode strings. The reversible bpe codes work on unicode strings. This means you
src/open_clip/tokenizer.py:32
↓ 2 callersFunctioncanonicalize_text
Returns canonicalized `text` (lowercase and punctuation removed). From: https://github.com/google-research/big_vision/blob/53f18caf27a9419231bbf0
src/open_clip/tokenizer.py:104
↓ 2 callersFunctionconvert_mobile_clip_state_dict
(model: CustomTextCLIP, state_dict, fastvit = True)
src/open_clip/convert.py:142
↓ 2 callersFunctionconvert_weights_to_lp
Convert applicable model parameters to low-precision (bf16 or fp16)
src/open_clip/model.py:396
↓ 2 callersFunctioncreate_model
( model_name: str, pretrained: Optional[str] = None, precision: str = 'fp32',
src/open_clip/factory.py:180
↓ 2 callersFunctioncreate_model_and_transforms
( model_name: str, pretrained: Optional[str] = None, precision: str = 'fp32',
src/open_clip/factory.py:375
↓ 2 callersMethoddist_loss
(self, teacher_logits, student_logits)
src/open_clip/loss.py:182
↓ 2 callersMethodencode
(self, text)
src/open_clip/tokenizer.py:213
↓ 2 callersMethodencode_image
(self, image, normalize: bool = False)
src/open_clip/model.py:356
↓ 2 callersMethodencode_text
(self, text, normalize: bool = False)
src/open_clip/model.py:360
↓ 2 callersFunctionevaluate
(model, data, epoch, args, tb_writer=None, tokenizer=None)
src/open_clip_train/train.py:252
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
src/open_clip/pos_embed.py:49
↓ 2 callersFunctionget_cast_dtype
(precision: str)
src/open_clip/model.py:86
↓ 2 callersMethodget_cast_dtype
(self)
src/open_clip/transformer.py:350
↓ 2 callersFunctionget_clean_fn
(type: str)
src/open_clip/tokenizer.py:93
↓ 2 callersFunctionget_dataloader
(input_shards)
tests/test_wds.py:73
↓ 2 callersFunctionget_dataset_fn
(data_path, dataset_type)
src/open_clip_train/data.py:542
↓ 2 callersFunctionget_dataset_size
(shards)
src/open_clip_train/data.py:98
↓ 2 callersMethodget_ground_truth
(self, device, num_logits)
src/open_clip/loss.py:89
↓ 2 callersFunctionget_imagenet
(args, preprocess_fns, split)
src/open_clip_train/data.py:120
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
src/open_clip/tokenizer.py:54
↓ 2 callersFunctionget_pretrained_cfg
(model: str, tag: str)
src/open_clip/pretrained.py:550
↓ 2 callersFunctionget_pretrained_url
(model: str, tag: str)
src/open_clip/pretrained.py:557
↓ 2 callersFunctionget_size_time
(log_file_path)
scripts/submit_and_manage_jobs_dirs.py:21
↓ 2 callersFunctionget_size_time
(log_file_path)
scripts/submit_and_manage_jobs_wds.py:59
↓ 2 callersFunctionget_size_time
(log_file_path)
scripts/submit_and_manage_jobs.py:18
↓ 2 callersFunctionget_size_time
(log_file_path)
scripts/submit_and_manage_jobs_hai.py:59
↓ 2 callersMethodget_value
(self)
src/open_clip_train/data.py:59
↓ 2 callersFunctionhas_hf_hub
(necessary=False)
src/open_clip/pretrained.py:608
↓ 2 callersFunctionload_checkpoint
( model: Union[CLIP, CustomTextCLIP], checkpoint_path: str, strict: bool = True, )
src/open_clip/factory.py:143
↓ 2 callersFunctionmerge_preprocess_kwargs
(base: PreprocessCfg, **kwargs)
src/open_clip/transform.py:57
↓ 2 callersFunctionneighbour_exchange_with_grad
(from_rank, to_rank, tensor, group=None)
src/open_clip/loss.py:285
↓ 2 callersFunctionparse_args
(args)
src/open_clip_train/params.py:26
↓ 2 callersFunctionpytorch_worker_seed
get dataloader worker seed from pytorch
src/open_clip_train/data.py:224
↓ 2 callersFunctionrun
(model, classifier, dataloader, args)
src/open_clip_train/zero_shot.py:17
↓ 2 callersMethodrun
(self, src)
src/open_clip_train/data.py:257
↓ 2 callersMethodsave_pretrained
(self, dest)
src/open_clip/tokenizer.py:426
↓ 2 callersFunctionsave_tar
(idx, num_samples)
tests/test_wds.py:24
next →1–100 of 384, ranked by callers