MCPcopy Create free account

hub / github.com/KuofengGao/Verbose_Images / functions

Functions3,633 in github.com/KuofengGao/Verbose_Images

Functioninit_bert_params
Initialize the weights specific to the BERT Model. This overrides the default initializations depending on the specified arguments. 1
lavis/models/beats/backbone.py:751
Functioninit_dist
(launcher, backend='nccl', **kwargs)
lavis/common/annotator/uniformer/mmcv/runner/dist_utils.py:14
Functioninit_distributed_mode
(args)
lavis/common/dist_utils.py:57
Functioninit_distributed_mode
(args)
lavis/models/ulip_models/utils/utils.py:98
Methodinit_lr
(self)
lavis/runners/runner_base.py:292
Methodinit_pc_encoder
( self, model_name, precision, **kwargs )
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:821
Methodinit_video_encoder
( self, model_name, precision, **kwargs )
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:856
Methodinit_weights
Initialize the weights in segmentor. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to N
lavis/common/annotator/uniformer/mmseg/models/segmentors/base.py:65
Methodinit_weights
Initialize the weights in backbone and heads. Args: pretrained (str, optional): Path to pre-trained weights. Defa
lavis/common/annotator/uniformer/mmseg/models/segmentors/cascade_encoder_decoder.py:48
Methodinit_weights
(self)
lavis/common/annotator/uniformer/mmseg/models/necks/fpn.py:157
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
lavis/common/annotator/uniformer/mmseg/models/backbones/unet.py:412
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
lavis/common/annotator/uniformer/mmseg/models/backbones/cgnet.py:338
Methodinit_weights
(self, pretrained=None)
lavis/common/annotator/uniformer/mmseg/models/backbones/vit.py:314
Methodinit_weights
(self, pretrained=None)
lavis/common/annotator/uniformer/mmseg/models/backbones/mobilenet_v3.py:220
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
lavis/common/annotator/uniformer/mmseg/models/backbones/hrnet.py:484
Methodinit_weights
(self, pretrained=None)
lavis/common/annotator/uniformer/mmseg/models/backbones/fast_scnn.py:360
Methodinit_weights
(self, pretrained=None)
lavis/common/annotator/uniformer/mmseg/models/backbones/mobilenet_v2.py:136
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:600
Methodinit_weights
Initialize weights of classification layer.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/decode_head.py:133
Methodinit_weights
Initialize weights of classification layer.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/point_head.py:104
Methodinit_weights
Initialize the weights.
lavis/common/annotator/uniformer/mmcv/runner/base_module.py:56
Methodinit_weights
(self, pretrained=None)
lavis/common/annotator/uniformer/mmcv/cnn/alexnet.py:43
Methodinit_weights
(self, pretrained=None)
lavis/common/annotator/uniformer/mmcv/cnn/resnet.py:265
Methodinner_iter
int: Iteration in an epoch.
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:170
Methodis_empty_audio
(self, ann)
lavis/datasets/datasets/audio_captioning_datasets.py:50
Methodis_empty_audio
(self, ann)
lavis/datasets/datasets/audio_classification_datasets.py:52
Methodis_init
(self)
lavis/common/annotator/uniformer/mmcv/runner/base_module.py:53
Functionis_jit_tracing
()
lavis/common/annotator/uniformer/mmcv/utils/trace.py:8
Functionis_norm
Check if a layer is a normalization layer. Args: layer (nn.Module): The layer to be checked. exclude (type | tuple[type]): Types
lavis/common/annotator/uniformer/mmcv/cnn/bricks/norm.py:122
Methodis_running
bool: indicate whether the timer is running
lavis/common/annotator/uniformer/mmcv/utils/timer.py:45
Functionis_seq_of
Check whether it is a sequence of some type. Args: seq (Sequence): The sequence to be checked. expected_type (type): Expected type
lavis/models/ulip_models/pointbert/misc.py:108
Methodisdir
Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a direct
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:240
Methodisdir
Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a direct
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:592
Methodisfile
Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns:
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:605
Methoditer
int: Current iteration.
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:165
Methoditm_rank
(self, image_embeds, image_atts, encoder_input_ids, match_head='itm')
lavis/models/blip_models/blip_image_text_matching.py:101
Functionjit
(func=None, check_input=None, full_shape=True, derivate=False,
lavis/common/annotator/uniformer/mmcv/utils/parrots_jit.py:12
Functionjitter_point_cloud
Randomly jitter points. jittering is per point. Input: BxNx3 array, original batch of point clouds Return: BxNx3
lavis/processors/ulip_processors.py:127
Methodjoin_path
Concatenate all file paths. Join one or more filepath components intelligently. The return value is the concatenation of filepath and
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:617
Methodlen_without_repeat
(self)
lavis/datasets/datasets/subject_driven_t2i_dataset.py:49
Functionlevel_to_args
(level)
lavis/processors/randaugment.py:224
Functionlinear_flops_counter_hook
(module, input, output)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:418
Functionlist_cast
Cast elements of an iterable object into a list of some type. A partial method of :func:`iter_cast`.
lavis/common/annotator/uniformer/mmcv/utils/misc.py:112
Methodlist_datasets
(cls)
lavis/common/registry.py:276
Methodlist_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: Petrel has no concept of directori
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:331
Methodlist_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: :meth:`list_dir_or_file` returns t
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:638
Methodlist_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: :meth:`list_dir_or_file` returns t
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:1123
Functionlist_from_file
Load a text file and parse the content as a list of strings. Note: In v1.3.16 and later, ``list_from_file`` supports loading a text file
lavis/common/annotator/uniformer/mmcv/fileio/parse.py:8
Methodlist_models
(cls)
lavis/common/registry.py:260
Functionlist_pretrained
returns list of pretrained models Returns a tuple (model_name, pretrain_tag) by default or 'name:tag' if as_str == True
lavis/models/clip_models/pretrained.py:92
Functionlist_pretrained_model_tags
return all pretrain tags for the specified model architecture
lavis/models/clip_models/pretrained.py:112
Methodlist_processors
(cls)
lavis/common/registry.py:268
Methodlist_runners
(cls)
lavis/common/registry.py:256
Functionload
Load data from json/yaml/pickle files. This method provides a unified api for loading data from serialized files. Note: In v1.3.16 a
lavis/common/annotator/uniformer/mmcv/fileio/io.py:18
MethodloadQA
Load questions and answers with the specified question ids. :param ids (int array) : integer ids specifying question ids
lavis/common/vqa_tools/vqa.py:148
Functionload_checkpoint
(model, checkpoint_path, use_ema=False, strict=True)
lavis/models/timesformer/helpers.py:57
Methodload_checkpoint
Used to load finetuned models.
lavis/models/blip_diffusion_models/blip_diffusion.py:989
Methodload_checkpoint
Load from a finetuned checkpoint. This should expect no mismatch in the model keys and the checkpoint keys.
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:2527
Functionload_ext
(name, funcs)
lavis/common/annotator/uniformer/mmcv/utils/ext_loader.py:12
Functionload_from_ceph
load checkpoint through the file path prefixed with s3. In distributed setting, this function download ckpt at all ranks to different temporary
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:327
Methodload_from_fileobj
(self, file, **kwargs)
lavis/common/annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:11
Methodload_from_fileobj
(self, file, **kwargs)
lavis/common/annotator/uniformer/mmcv/fileio/handlers/yaml_handler.py:14
Methodload_from_fileobj
(self, file)
lavis/common/annotator/uniformer/mmcv/fileio/handlers/json_handler.py:27
Functionload_from_local
load checkpoint by local file path. Args: filename (str): local checkpoint file path map_location (str, optional): Same as :func:
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:249
Functionload_from_mmcls
load checkpoint through the file path prefixed with mmcls. Args: filename (str): checkpoint file path with mmcls prefix map_locat
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:431
Functionload_from_openmmlab
load checkpoint through the file path prefixed with open-mmlab or openmmlab. Args: filename (str): checkpoint file path with open-mml
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:391
Methodload_from_path
(self, filepath, mode='r', **kwargs)
lavis/common/annotator/uniformer/mmcv/fileio/handlers/base.py:24
Methodload_from_path
(self, filepath, **kwargs)
lavis/common/annotator/uniformer/mmcv/fileio/handlers/pickle_handler.py:14
Functionload_from_pavi
load checkpoint through the file path prefixed with pavi. In distributed setting, this function download ckpt at all ranks to different temporary
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:295
Methodload_from_pretrained
(self, url_or_filename)
lavis/models/blip_models/blip_nlvr.py:156
Methodload_from_pretrained
(self, url_or_filename)
lavis/models/blip_diffusion_models/blip_diffusion.py:985
Methodload_from_pretrained
(self, url_or_filename, use_distill=True)
lavis/models/albef_models/albef_nlvr.py:217
Methodload_from_pretrained
(self, url_or_filename, rename_text_keys=True)
lavis/models/albef_models/__init__.py:30
Methodload_from_pretrained
(self, url_or_filename)
lavis/models/blip2_models/blip2.py:85
Methodload_from_pretrained
(self, url_or_filename, num_frames, num_patches)
lavis/models/alpro_models/__init__.py:24
Functionload_from_torchvision
load checkpoint through the file path prefixed with modelzoo or torchvision. Args: filename (str): checkpoint file path with modelzoo
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:368
Functionload_json
(filename)
lavis/common/utils.py:56
Functionload_midas_transform
(model_type)
lavis/common/annotator/midas/api.py:32
Functionload_model
Load supported models. To list all available models and types in registry: >>> from lavis.models import model_zoo >>> print(model_zo
lavis/models/__init__.py:97
Methodload_model_from_ckpt
(self, bert_ckpt_path)
lavis/models/ulip_models/pointbert/point_encoder.py:179
Methodload_pretrained
(self, checkpoint_path, prefix="")
lavis/models/vit.py:284
Functionload_pretrained_imagenet
( model, pretrained_model, cfg=None, ignore_classifier=True, num_frames=8, num_patches
lavis/models/timesformer/helpers.py:235
Functionload_pretrained_kinetics
( model, pretrained_model, cfg=None, ignore_classifier=True, num_frames=8, num_patches
lavis/models/timesformer/helpers.py:299
Functionload_processor
Example >>> processor = load_processor("alpro_video_train", cfg=None)
lavis/processors/__init__.py:61
Functionload_tf_weights_in_t5
Load tf checkpoints in a pytorch model.
lavis/models/blip2_models/modeling_t5.py:79
Methodlock
lock modules Args: unlocked_groups (int): leave last n layer groups unlocked (default: 0)
lavis/models/clip_models/timm_model.py:91
Methodlock
(self, unlocked_groups=0, freeze_bn_stats=False)
lavis/models/clip_models/model.py:342
Methodlock_image_tower
(self, unlocked_groups=0, freeze_bn_stats=False)
lavis/models/clip_models/model.py:546
Methodlog
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/tensorboard.py:47
Methodlog
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/text.py:204
Methodlog
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/neptune.py:69
Methodlog
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/wandb.py:44
Methodlog
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/pavi.py:82
Methodlog
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/mlflow.py:70
Methodlog
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/dvclive.py:54
Functionlog_args_to_file
(args, pre='args', logger=None)
lavis/models/ulip_models/utils/config.py:6
Functionlog_config_to_file
(cfg, pre='cfg', logger=None)
lavis/models/ulip_models/utils/config.py:10
Methodlog_freq
(self)
lavis/runners/runner_base.py:272
Methodloss_scale
(self)
lavis/common/annotator/uniformer/mmcv/runner/fp16_utils.py:409
Methodlosses
Compute segmentation and semantic encoding loss.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/enc_head.py:178
← previousnext →3,201–3,300 of 3,633, ranked by callers