MCPcopy Create free account

hub / github.com/KuofengGao/Verbose_Images / functions

Functions3,633 in github.com/KuofengGao/Verbose_Images

↓ 1 callersMethoddeprecated_register_module
(self, cls=None, force=False)
lavis/common/annotator/uniformer/mmcv/utils/registry.py:250
↓ 1 callersMethoddeprecated_register_module
(self, cls=None, force=False)
lavis/models/ulip_models/utils/registry.py:183
↓ 1 callersFunctiondequantize
Dequantize an array. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be clipped. max_val (scalar): M
lavis/common/annotator/uniformer/mmcv/arraymisc/quantization.py:32
↓ 1 callersFunctiondequantize_flow
Recover from quantized flow. Args: dx (ndarray): Quantized dx. dy (ndarray): Quantized dy. max_val (float): Maximum value
lavis/common/annotator/uniformer/mmcv/video/optflow.py:119
↓ 1 callersFunctiondf_from_shelve
(chunk_size, func, dataset_name)
lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc3m.py:184
↓ 1 callersFunctiondf_from_shelve
(chunk_size, func, dataset_name)
lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc12m.py:184
↓ 1 callersFunctiondf_multiprocess
(df, processes, chunk_size, func, dataset_name)
lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc3m.py:40
↓ 1 callersFunctiondf_multiprocess
(df, processes, chunk_size, func, dataset_name)
lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc12m.py:40
↓ 1 callersFunctiondice_loss
(pred, target, valid_mask, smooth=1, exponent=2,
lavis/common/annotator/uniformer/mmseg/models/losses/dice_loss.py:12
↓ 1 callersFunctiondownload_and_untar
(url)
lavis/common/utils.py:410
↓ 1 callersFunctiondownload_datasets
Download the Imagenet-R dataset archives and expand them in the folder provided as parameter
lavis/datasets/download_scripts/download_msrvtt.py:38
↓ 1 callersFunctiondownload_datasets
(root, url)
lavis/datasets/download_scripts/download_coco.py:29
↓ 1 callersFunctiondownload_datasets
(root, url)
lavis/datasets/download_scripts/download_gqa.py:24
↓ 1 callersFunctiondownload_datasets
(root, url)
lavis/datasets/download_scripts/download_vg.py:27
↓ 1 callersFunctiondownload_datasets
Download the Imagenet-R dataset archives and expand them in the folder provided as parameter
lavis/datasets/download_scripts/download_didemo.py:23
↓ 1 callersFunctiondownload_datasets
(root, url)
lavis/datasets/download_scripts/download_msvd.py:24
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). We follow the implementation https://github.com/
lavis/common/annotator/uniformer/mmcv/cnn/bricks/drop.py:9
↓ 1 callersMethoddump_to_str
(self, obj, **kwargs)
lavis/common/annotator/uniformer/mmcv/fileio/handlers/base.py:21
↓ 1 callersMethodencode
(self, text)
lavis/models/ulip_models/utils/tokenizer.py:123
↓ 1 callersMethodencode_image
(self, image)
lavis/models/ulip_models/ULIP_models.py:106
↓ 1 callersMethodencode_pc
(self, pc)
lavis/models/ulip_models/ULIP_models.py:149
↓ 1 callersMethodencode_text
(self, text)
lavis/models/ulip_models/ULIP_models.py:112
↓ 1 callersMethodevaluate
(self, quesIds=None)
lavis/common/vqa_tools/vqa_eval.py:193
↓ 1 callersMethodevaluation
(self, model, data_loader, cuda_enabled=True)
lavis/tasks/base_task.py:85
↓ 1 callersMethodevery_n_inner_iters
(self, runner, n)
lavis/common/annotator/uniformer/mmcv/runner/hooks/hook.py:58
↓ 1 callersFunctionextract_archive
Extract archive. Args: from_path: the path of the archive. to_path: the root path of the extracted files (directory of from_path)
lavis/datasets/data_utils.py:180
↓ 1 callersMethodextract_feat
Placeholder for extract features from images.
lavis/common/annotator/uniformer/mmseg/models/segmentors/base.py:40
↓ 1 callersMethodextract_features
Extract features for multimodal or unimodal samples. Args: samples (dict): A dictionary of samples, containing the follo
lavis/models/blip_models/blip_feature_extractor.py:58
↓ 1 callersMethodextract_features
( self, fbank: torch.Tensor, padding_mask: Optional[torch.Tensor] = None,
lavis/models/beats/BEATs.py:133
↓ 1 callersMethodextract_features
(self, x, padding_mask=None, tgt_layer=None)
lavis/models/beats/backbone.py:109
↓ 1 callersFunctionf_score
calcuate the f-score value. Args: precision (float | torch.Tensor): The precision value. recall (float | torch.Tensor): The recal
lavis/common/annotator/uniformer/mmseg/core/evaluation/metrics.py:8
↓ 1 callersMethodfeature_reassemble
(self, x, mask)
lavis/common/annotator/uniformer/mmcv/ops/carafe.py:277
↓ 1 callersFunctionfetch_requirements
(filename)
setup.py:16
↓ 1 callersFunctionfetch_single_image
(image_url, timeout=None, retries=0)
lavis/datasets/download_scripts/download_sbu.py:28
↓ 1 callersMethodfix_init_weight
(self)
lavis/models/eva_vit.py:300
↓ 1 callersFunctionflow2rgb
Convert flow map to RGB image. Args: flow (ndarray): Array of optical flow. color_wheel (ndarray or None): Color wheel used to ma
lavis/common/annotator/uniformer/mmcv/visualization/optflow.py:24
↓ 1 callersFunctionflowread
Read an optical flow map. Args: flow_or_path (ndarray or str): A flow map or filepath. quantize (bool): whether to read quantized
lavis/common/annotator/uniformer/mmcv/video/optflow.py:12
↓ 1 callersMethodformat_results
Format the results into dir (standard format for Cityscapes evaluation). Args: results (list): Testing results of the dat
lavis/common/annotator/uniformer/mmseg/datasets/cityscapes.py:91
↓ 1 callersMethodforward
Forward function.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/ocr_head.py:119
↓ 1 callersMethodforward
Forward function.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/da_head.py:142
↓ 1 callersMethodforward
(self, x)
lavis/common/annotator/midas/midas/dpt_depth.py:67
↓ 1 callersMethodforward
(self, x)
lavis/models/vit.py:45
↓ 1 callersMethodforward
Forward function for training and evaluation. Args: samples (dict): a dict of input samples, which contains the followin
lavis/models/blip_models/blip_nlvr.py:56
↓ 1 callersMethodforward
(self, samples, is_train=True)
lavis/models/blip_models/blip_classification.py:77
↓ 1 callersMethodforward
(self, attn, is_cross: bool, place_in_unet: str)
lavis/models/blip_diffusion_models/ptp_utils.py:88
↓ 1 callersMethodforward
(self, attn, is_cross: bool, place_in_unet: str)
lavis/models/blip_diffusion_models/ptp_utils.py:114
↓ 1 callersMethodforward
(self, samples, is_train=True)
lavis/models/albef_models/albef_classification.py:83
↓ 1 callersMethodforward
Forward function for training and evaluation. Args: samples (dict): a dict of input samples, which contains the followin
lavis/models/albef_models/albef_nlvr.py:79
↓ 1 callersMethodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
lavis/models/blip2_models/modeling_opt.py:843
↓ 1 callersMethodforward
(self, input_ids=None, attention_mask=None, **kwargs)
lavis/models/pnp_vqa_models/pnp_unifiedqav2_fid.py:79
↓ 1 callersMethodforward
(self, samples, is_train=True)
lavis/models/alpro_models/alpro_qa.py:53
↓ 1 callersMethodforward_cap
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
lavis/models/img2prompt_models/img2prompt_vqa.py:138
↓ 1 callersMethodforward_cap
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
lavis/models/pnp_vqa_models/pnp_vqa.py:84
↓ 1 callersMethodforward_decoder
(self, samples, encoder_out, **kwargs)
lavis/models/blip_models/blip_vqa.py:123
↓ 1 callersMethodforward_decoder
(self, samples, image_embeds)
lavis/models/blip_models/blip_caption.py:57
↓ 1 callersMethodforward_decoder
(self, samples, encoder_out, **kwargs)
lavis/models/albef_models/albef_vqa.py:167
↓ 1 callersMethodforward_features
(self, x)
lavis/common/annotator/uniformer/mmseg/models/backbones/uniformer.py:383
↓ 1 callersMethodforward_features
(self, x)
lavis/models/eva_vit.py:324
↓ 1 callersMethodforward_features
(self, x)
lavis/models/timesformer/vit.py:411
↓ 1 callersMethodforward_image
(self, image)
lavis/models/blip2_models/blip2_qformer.py:340
↓ 1 callersMethodforward_itm
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
lavis/models/img2prompt_models/img2prompt_vqa.py:68
↓ 1 callersMethodforward_itm
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
lavis/models/pnp_vqa_models/pnp_vqa.py:54
↓ 1 callersFunctionforward_vit
(pretrained, x)
lavis/common/annotator/midas/midas/vit.py:56
↓ 1 callersMethodfps
float: FPS of the video.
lavis/common/annotator/uniformer/mmcv/video/io.py:105
↓ 1 callersMethodfreeze_modules
(self)
lavis/models/blip_diffusion_models/blip_diffusion.py:152
↓ 1 callersMethodfrom_other
(self, out_indices: Tuple[int])
lavis/models/timesformer/features.py:33
↓ 1 callersFunctionfused_bias_leakyrelu
Fused bias leaky ReLU function. This function is introduced in the StyleGAN2: http://arxiv.org/abs/1912.04958 The bias term comes from t
lavis/common/annotator/uniformer/mmcv/ops/fused_bias_leakyrelu.py:225
↓ 1 callersFunctiongather_features
( image_features, text_features, local_loss=False, gather_with_grad=False, rank=0, wor
lavis/models/clip_models/loss.py:20
↓ 1 callersMethodgenerate
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
lavis/models/blip_models/blip_caption.py:136
↓ 1 callersMethodgenerate
( self, samples, use_nucleus_sampling=False, num_beams=5, max_length=2
lavis/models/blip2_models/blip2_t5_instruct.py:280
↓ 1 callersMethodgenerate
( self, samples, use_nucleus_sampling=False, num_beams=5, max_length=2
lavis/models/blip2_models/blip2_vicuna_instruct.py:249
↓ 1 callersMethodgenerate_from_encoder
( self, tokenized_prompt, visual_embeds, sep_token_id, pad_token_id,
lavis/models/med.py:1316
↓ 1 callersFunctiongenerate_grid
Generate regular square grid of points in [0, 1] x [0, 1] coordinate space. Args: num_grid (int): The number of grids to sample, one
lavis/common/annotator/uniformer/mmcv/ops/point_sample.py:116
↓ 1 callersMethodgenerate_then_edit
( self, samples, cross_replace_steps=0.8, self_replace_steps=0.4, guid
lavis/models/blip_diffusion_models/blip_diffusion.py:626
↓ 1 callersMethodgenerate_verbose_images
(self, samples)
lavis/models/blip2_models/blip2_opt.py:97
↓ 1 callersMethodget
(self, filepath)
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:694
↓ 1 callersMethodgetImgIds
Get image ids that satisfy given filter conditions. default skips that filter :param quesIds (int array) : get image ids for gi
lavis/common/vqa_tools/vqa.py:114
↓ 1 callersFunctionget_activation_fn
Returns the activation function corresponding to `activation`
lavis/models/beats/modules.py:97
↓ 1 callersFunctionget_aligned_sequences
(x, y, trace_back)
lavis/models/blip_diffusion_models/ptp_utils.py:412
↓ 1 callersMethodget_ann_info
Get annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specified index.
lavis/common/annotator/uniformer/mmseg/datasets/custom.py:158
↓ 1 callersMethodget_attention_map
(self)
lavis/models/blip_models/nlvr_encoder.py:137
↓ 1 callersMethodget_attn_gradients
(self)
lavis/models/blip_models/nlvr_encoder.py:131
↓ 1 callersMethodget_audio_path
(self, ann)
lavis/datasets/datasets/audio_captioning_datasets.py:47
↓ 1 callersMethodget_audio_path
(self, ann)
lavis/datasets/datasets/audio_classification_datasets.py:49
↓ 1 callersFunctionget_build_config
()
lavis/common/annotator/uniformer/mmcv/utils/parrots_wrapper.py:33
↓ 1 callersFunctionget_cached_file_path
()
lavis/common/dist_utils.py:123
↓ 1 callersMethodget_classes_and_palette
Get class names of current dataset. Args: classes (Sequence[str] | str | None): If classes is None, use default C
lavis/common/annotator/uniformer/mmseg/datasets/custom.py:243
↓ 1 callersFunctionget_compiler_version
()
lavis/common/annotator/uniformer/mmcv/ops/info.py:10
↓ 1 callersFunctionget_compiling_cuda_version
()
lavis/common/annotator/uniformer/mmcv/ops/info.py:13
↓ 1 callersFunctionget_deprecated_model_names
()
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:142
↓ 1 callersFunctionget_deprecated_model_names
()
lavis/common/annotator/uniformer/mmcv_custom/checkpoint.py:205
↓ 1 callersFunctionget_dist_info
()
lavis/common/dist_utils.py:93
↓ 1 callersMethodget_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (
lavis/models/med.py:754
↓ 1 callersMethodget_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (
lavis/models/blip_models/nlvr_encoder.py:714
↓ 1 callersFunctionget_external_models
()
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:121
↓ 1 callersFunctionget_external_models
()
lavis/common/annotator/uniformer/mmcv_custom/checkpoint.py:184
↓ 1 callersFunctionget_fake_func
(name, e)
lavis/common/annotator/uniformer/mmcv/utils/ext_loader.py:41
↓ 1 callersFunctionget_git_hash
Get the git hash of the current repo. Args: fallback (str, optional): The fallback string when git hash is unavailable. Defau
lavis/common/annotator/uniformer/mmcv/utils/version_utils.py:66
↓ 1 callersMethodget_gt_seg_maps
Get ground truth segmentation maps for evaluation.
lavis/common/annotator/uniformer/mmseg/datasets/custom.py:230
↓ 1 callersMethodget_image_latents
(self, image, sample=True, rng_generator=None)
lavis/models/blip_diffusion_models/blip_diffusion.py:352
← previousnext →901–1,000 of 3,633, ranked by callers