MCPcopy Create free account

hub / github.com/KuofengGao/Verbose_Images / functions

Functions3,633 in github.com/KuofengGao/Verbose_Images

↓ 1 callersMethodregister_training_hooks
Register default and custom hooks for training. Default and custom hooks include: +----------------------+-------------------------+
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:503
↓ 1 callersFunctionrel_roi_point_to_abs_img_point
Convert roi based relative point coordinates to image based absolute point coordinates. Args: rois (Tensor): RoIs or BBoxes, shape (N
lavis/common/annotator/uniformer/mmcv/ops/point_sample.py:137
↓ 1 callersFunctionremove_batch_counter_hook_function
(module)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:524
↓ 1 callersMethodremove_classifier
(self)
lavis/models/timesformer/vit.py:407
↓ 1 callersMethodreplace_cross_attention
(self, attn_base, att_replace)
lavis/models/blip_diffusion_models/ptp_utils.py:198
↓ 1 callersMethodreplace_cross_attention
(self, attn_base, att_replace)
lavis/models/blip_diffusion_models/ptp_utils.py:249
↓ 1 callersMethodreplace_self_attention
(self, attn_base, att_replace)
lavis/models/blip_diffusion_models/ptp_utils.py:191
↓ 1 callersMethodreset
(self)
lavis/models/blip_diffusion_models/ptp_utils.py:145
↓ 1 callersMethodreset_parameters
(self)
lavis/common/annotator/uniformer/mmcv/ops/deform_conv.py:269
↓ 1 callersMethodreset_parameters
(self)
lavis/common/annotator/uniformer/mmcv/ops/sync_bn.py:236
↓ 1 callersMethodreset_parameters
(self)
lavis/common/annotator/uniformer/mmcv/cnn/bricks/context_block.py:75
↓ 1 callersMethodreset_parameters
(self)
lavis/models/beats/backbone.py:370
↓ 1 callersMethodreset_queue_ptr
(self)
lavis/models/blip_models/blip_retrieval.py:357
↓ 1 callersMethodreset_queue_ptr
(self)
lavis/models/blip_models/blip_pretrain.py:362
↓ 1 callersMethodreset_running_stats
(self)
lavis/common/annotator/uniformer/mmcv/ops/sync_bn.py:230
↓ 1 callersFunctionresize
(clip, target_size, interpolation_mode)
lavis/processors/functional_video.py:33
↓ 1 callersFunctionresize_image
(input_image, resolution)
lavis/common/annotator/util.py:28
↓ 1 callersFunctionresize_img
(req)
lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc3m.py:124
↓ 1 callersFunctionresize_img
(req)
lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc12m.py:124
↓ 1 callersFunctionresize_pos_embed
(posemb, posemb_new, num_tokens=1, gs_new=())
lavis/models/vit.py:402
↓ 1 callersFunctionresize_spatial_embedding
(state_dict, key, num_patches)
lavis/models/timesformer/helpers.py:353
↓ 1 callersFunctionresize_spatial_embedding
(state_dict, key, num_patches)
lavis/models/alpro_models/__init__.py:78
↓ 1 callersFunctionresize_temporal_embedding
(state_dict, key, num_frames)
lavis/models/timesformer/helpers.py:370
↓ 1 callersFunctionresize_temporal_embedding
(state_dict, key, num_frames)
lavis/models/alpro_models/__init__.py:95
↓ 1 callersMethodresults2img
Write the segmentation results to images. Args: results (list[list | tuple | ndarray]): Testing results of the da
lavis/common/annotator/uniformer/mmseg/datasets/cityscapes.py:50
↓ 1 callersFunctionrotate_level_to_args
(MAX_LEVEL, replace_value)
lavis/processors/randaugment.py:278
↓ 1 callersMethodrun
(self, data_loaders, workflow, **kwargs)
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:193
↓ 1 callersMethodsample_sequence
(self, caption, history, answer)
lavis/processors/gpt_processors.py:53
↓ 1 callersFunctionsample_vectors
(samples, num)
lavis/models/beats/quantizer.py:29
↓ 1 callersMethodsaturation
Saturation distortion.
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:827
↓ 1 callersMethodsave_attention_map
(self, attention_map)
lavis/models/vit.py:82
↓ 1 callersMethodsave_attention_map
(self, attention_map)
lavis/models/med.py:170
↓ 1 callersMethodsave_attention_map
(self, attention_map)
lavis/models/blip_models/nlvr_encoder.py:134
↓ 1 callersMethodsave_attention_map
(self, attention_map)
lavis/models/blip2_models/Qformer.py:155
↓ 1 callersFunctionsave_experiment_config
(args, config, logger = None)
lavis/models/ulip_models/utils/config.py:60
↓ 1 callersMethodsave_gradcam
(self, result, result_dir, filename, remove_duplicate="")
lavis/tasks/vqa_reading_comprehension.py:122
↓ 1 callersMethodscaled_l2
(x, codewords, scale)
lavis/common/annotator/uniformer/mmseg/ops/encoding.py:33
↓ 1 callersFunctionscatter_map
(obj)
lavis/common/annotator/uniformer/mmcv/parallel/scatter_gather.py:16
↓ 1 callersMethodsetAccuracy
(self, accQA, accQuesType, accAnsType)
lavis/common/vqa_tools/vqa_eval.py:276
↓ 1 callersMethodsetEvalAnsType
(self, quesId, ansType, acc)
lavis/common/vqa_tools/vqa_eval.py:300
↓ 1 callersMethodsetEvalQA
(self, quesId, acc)
lavis/common/vqa_tools/vqa_eval.py:292
↓ 1 callersMethodsetEvalQuesType
(self, quesId, quesType, acc)
lavis/common/vqa_tools/vqa_eval.py:295
↓ 1 callersFunctionsetup_for_distributed
This function disables printing when not in master process
lavis/common/dist_utils.py:17
↓ 1 callersFunctionsetup_for_distributed
This function disables printing when not in master process
lavis/models/ulip_models/utils/utils.py:50
↓ 1 callersMethodsetup_output_dir
(self)
lavis/runners/runner_base.py:348
↓ 1 callersMethodsetup_task
(cls, cfg)
lavis/tasks/vqa.py:60
↓ 1 callersFunctionshow_result_pyplot
Visualize the segmentation results on the image. Args: model (nn.Module): The loaded segmentor. img (str or np.ndarray): Image fi
lavis/common/annotator/uniformer/mmseg/apis/inference.py:101
↓ 1 callersMethodsimple_test
Placeholder for single image test.
lavis/common/annotator/uniformer/mmseg/models/segmentors/base.py:56
↓ 1 callersMethodsince_start
Total time since the timer is started. Returns (float): Time in seconds.
lavis/common/annotator/uniformer/mmcv/utils/timer.py:64
↓ 1 callersMethodslide_inference
Inference by sliding-window with overlap. If h_crop > h_img or w_crop > w_img, the small patch will be used to decode without padding
lavis/common/annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:169
↓ 1 callersFunctionsolarize_level_to_args
(MAX_LEVEL)
lavis/processors/randaugment.py:258
↓ 1 callersMethodspatial_pool
(self, x)
lavis/common/annotator/uniformer/mmcv/cnn/bricks/context_block.py:85
↓ 1 callersMethodsplit_scope_key
Split scope and key. The first scope will be split from key. Examples: >>> Registry.split_scope_key('mmdet.ResNet')
lavis/common/annotator/uniformer/mmcv/utils/registry.py:149
↓ 1 callersMethodsplit_scope_key
Split scope and key. The first scope will be split from key. Examples: >>> Registry.split_scope_key('mmdet.ResNet')
lavis/models/ulip_models/utils/registry.py:89
↓ 1 callersFunctionsquare_distance
Calculate Euclid distance between each two points. src^T * dst = xn * xm + yn * ym + zn * zm; sum(src^2, dim=-1) = xn*xn + yn*yn + zn*zn;
lavis/models/ulip_models/pointbert/dvae.py:123
↓ 1 callersMethodstarts_with_vowel_sound
(self,word)
lavis/processors/instruction_text_processors.py:443
↓ 1 callersMethodstep_callback
(self, x_t)
lavis/models/blip_diffusion_models/ptp_utils.py:77
↓ 1 callersFunctionstep_lr_schedule
Decay the learning rate
lavis/common/optims.py:135
↓ 1 callersMethodsynchronize_between_processes
(self)
lavis/common/logger.py:115
↓ 1 callersFunctionsynchronize_stream
(output, devices, streams)
lavis/common/annotator/uniformer/mmcv/parallel/_functions.py:34
↓ 1 callersFunctiontensor2imgs
Convert tensor to 3-channel images. Args: tensor (torch.Tensor): Tensor that contains multiple images, shape ( N, C, H, W).
lavis/common/annotator/uniformer/mmcv/image/misc.py:12
↓ 1 callersMethodtest_model
(self, args, logger)
main.py:56
↓ 1 callersFunctiontie_encoder_decoder_weights
( encoder: nn.Module, decoder: nn.Module, base_model_prefix: str, skip_key: str )
lavis/models/blip_models/__init__.py:14
↓ 1 callersFunctiontie_encoder_to_decoder_recursively
( decoder_pointer: nn.Module, encoder_pointer: nn.Module, module_name: str, un
lavis/models/blip_models/__init__.py:23
↓ 1 callersFunctiontotal_intersect_and_union
Calculate Total Intersection and Union. Args: results (list[ndarray] | list[str]): List of prediction segmentation maps or li
lavis/common/annotator/uniformer/mmseg/core/evaluation/metrics.py:88
↓ 1 callersMethodtrain
(self)
lavis/runners/runner_iter.py:71
↓ 1 callersMethodtrain
(self)
lavis/runners/runner_base.py:363
↓ 1 callersMethodtrain_epoch
(self, epoch)
lavis/runners/runner_base.py:447
↓ 1 callersMethodtrain_iters
(self, epoch, start_iters)
lavis/runners/runner_iter.py:150
↓ 1 callersMethodtrain_step
(self, model, samples)
lavis/tasks/base_task.py:62
↓ 1 callersFunctiontrunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the normal distributi
lavis/common/annotator/uniformer/mmcv/cnn/utils/weight_init.py:662
↓ 1 callersFunctionuniform_frame_sampling
(video_path, num_frames, target_height, target_width, start_time=None, end_time=None)
lavis/datasets/data_utils.py:289
↓ 1 callersMethodupdate
(self, cfg: dict)
lavis/models/beats/Tokenizers.py:68
↓ 1 callersMethodupdateProgress
(self, progress)
lavis/common/vqa_tools/vqa_eval.py:305
↓ 1 callersFunctionupfirdn2d_native
(input, kernel, up_x, up_y, down_x, down_y, pad_x0, pad_x1, pad_y0, pad_y1)
lavis/common/annotator/uniformer/mmcv/ops/upfirdn2d.py:290
↓ 1 callersMethodvalid_step
(self, model, samples)
lavis/tasks/base_task.py:70
↓ 1 callersMethodvalidate
Convert yaml config (dict-like) to list, required by argparse.
lavis/common/config.py:226
↓ 1 callersFunctionweights_to_cpu
Copy a model state_dict to cpu. Args: state_dict (OrderedDict): Model weights on GPU. Returns: OrderedDict: Model weights on
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:553
↓ 1 callersFunctionweights_to_cpu
Copy a model state_dict to cpu. Args: state_dict (OrderedDict): Model weights on GPU. Returns: OrderedDict: Model weights on
lavis/common/annotator/uniformer/mmcv_custom/checkpoint.py:359
↓ 1 callersFunctionwhitespace_clean
(text)
lavis/models/ulip_models/utils/tokenizer.py:58
↓ 1 callersFunctionwhitespace_clean
(text)
lavis/models/clip_models/tokenizer.py:76
↓ 1 callersMethodwhole_inference
Inference with full image.
lavis/common/annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:214
↓ 1 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
lavis/common/annotator/uniformer/mmseg/models/backbones/uniformer.py:138
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
lavis/common/annotator/uniformer/mmseg/models/backbones/uniformer.py:152
↓ 1 callersFunctionwrite_pfm
Write pfm file. Args: path (str): pathto file image (array): data scale (int, optional): Scale. Defaults to 1.
lavis/common/annotator/midas/utils.py:58
↓ 1 callersMethodzero_shot_classifier
(self, classnames, templates)
lavis/models/clip_models/model.py:658
Method__call__
(self, input_image, thr_v, thr_d)
lavis/common/annotator/mlsd/__init__.py:27
Method__call__
(self, img, low_threshold, high_threshold)
lavis/common/annotator/canny/__init__.py:5
Method__call__
(self, img)
lavis/common/annotator/uniformer/__init__.py:20
Method__call__
Call function to load images into results. Args: results (dict): A result dict contains the file name of the imag
lavis/common/annotator/uniformer/mmseg/apis/inference.py:45
Method__call__
Call function to apply test time augment transforms on results. Args: results (dict): Result dict contains the data to transform.
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/test_time_aug.py:93
Method__call__
Call function to resize images, bounding boxes, masks, semantic segmentation map. Args: results (dict): Result dict from
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:210
Method__call__
Call function to flip bounding boxes, masks, semantic segmentation maps. Args: results (dict): Result dict from loading p
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:259
Method__call__
Call function to pad images, masks, semantic segmentation maps. Args: results (dict): Result dict from loading pipeline.
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:342
Method__call__
Call function to normalize images. Args: results (dict): Result dict from loading pipeline. Returns: dict: N
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:381
Method__call__
Call function to rerange images. Args: results (dict): Result dict from loading pipeline. Returns: dict: Rera
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:423
Method__call__
Call function to Use CLAHE method process images. Args: results (dict): Result dict from loading pipeline. Returns:
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:472
Method__call__
Call function to randomly crop images, semantic segmentation maps. Args: results (dict): Result dict from loading pipeline.
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:529
Method__call__
Call function to rotate image, semantic segmentation maps. Args: results (dict): Result dict from loading pipeline. Retu
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:609
Method__call__
Call function to convert RGB image to grayscale image. Args: results (dict): Result dict from loading pipeline. Returns:
lavis/common/annotator/uniformer/mmseg/datasets/pipelines/transforms.py:676
← previousnext →1,201–1,300 of 3,633, ranked by callers