MCPcopy Create free account

hub / github.com/KuofengGao/Verbose_Images / functions

Functions3,633 in github.com/KuofengGao/Verbose_Images

Methodput_text
Write data to a given ``filepath`` with 'w' mode. Note: ``put_text`` will create a directory if the directory of ``fi
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:553
Functionrandom_dropping
(pc, e)
lavis/models/ulip_models/pointbert/misc.py:275
Functionrandom_scale
(partial, scale_range=[0.8, 1.2])
lavis/models/ulip_models/pointbert/misc.py:285
Methodrank
int: Rank of current process. (distributed training)
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:144
Functionread_image
Read image and output RGB image (0-1). Args: path (str): path to file Returns: array: RGB image (0-1)
lavis/common/annotator/midas/utils.py:97
Functionread_pfm
Read pfm file. Args: path (str): path to file Returns: tuple: (data, scale)
lavis/common/annotator/midas/utils.py:9
Methodreduction
feature reduction (output stride) accessor
lavis/models/timesformer/features.py:70
Methodregister_backend
Register a backend to FileClient. This method can be used as a normal class method or a decorator. .. code-block:: python
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:922
Methodregister_builder
r"""Register a dataset builder to registry with key 'name' Args: name: Key with which the builder will be registered. Us
lavis/common/registry.py:22
Functionregister_handler
(file_formats, **kwargs)
lavis/common/annotator/uniformer/mmcv/fileio/io.py:145
Methodregister_lr_scheduler
r"""Register a model to registry with key 'name' Args: name: Key with which the task will be registered. Usage:
lavis/common/registry.py:141
Methodregister_model
r"""Register a task to registry with key 'name' Args: name: Key with which the task will be registered. Usage:
lavis/common/registry.py:83
Methodregister_module
Register a module. A record will be added to `self._module_dict`, whose key is the class name or the specified name, and value is the
lavis/models/ulip_models/utils/registry.py:193
Methodregister_processor
r"""Register a processor to registry with key 'name' Args: name: Key with which the task will be registered. Usage:
lavis/common/registry.py:112
Methodregister_profiler_hook
(self, profiler_config)
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:493
Methodregister_runner
r"""Register a model to registry with key 'name' Args: name: Key with which the task will be registered. Usage:
lavis/common/registry.py:165
Methodregister_scheme
Register a loader to CheckpointLoader. This method can be used as a normal class method or a decorator. Args: prefixes (
lavis/common/annotator/uniformer/mmcv/runner/checkpoint.py:185
Methodregister_task
r"""Register a task to registry with key 'name' Args: name: Key with which the task will be registered. Usage:
lavis/common/registry.py:54
Methodregister_training_hooks
Register default hooks for iter-based training. Checkpoint hook, optimizer stepper hook and logger hooks will be set to `by_epoch=Fal
lavis/common/annotator/uniformer/mmcv/runner/iter_based_runner.py:224
Functionrelu_flops_counter_hook
(module, input, output)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:413
Methodremove
Remove a file. Args: filepath (str or Path): Path to be removed.
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:204
Methodremove
Remove a file. Args: filepath (str or Path): Path to be removed.
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:573
Functionremove_flops_counter_hook_function
(module)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:546
Methodreplace_cross_attention
(self, attn_base, att_replace)
lavis/models/blip_diffusion_models/ptp_utils.py:238
Methodreplace_cross_attention
(self, attn_base, att_replace)
lavis/models/blip_diffusion_models/ptp_utils.py:280
Functionrequires_executable
A decorator to check if some executable files are installed. Example: >>> @requires_executable('ffmpeg') >>> func(arg1, args):
lavis/common/annotator/uniformer/mmcv/utils/misc.py:276
Functionrequires_package
A decorator to check if some python packages are installed. Example: >>> @requires_package('numpy') >>> func(arg1, args):
lavis/common/annotator/uniformer/mmcv/utils/misc.py:260
Methodrescale
(param, layer_id)
lavis/models/eva_vit.py:301
Methodreset
(self)
lavis/models/blip_diffusion_models/ptp_utils.py:102
Methodreset_classifier
(self, num_classes, global_pool='')
lavis/common/annotator/uniformer/mmseg/models/backbones/uniformer.py:379
Methodreset_classifier
(self, num_classes, global_pool='')
lavis/models/eva_vit.py:320
Methodreset_cluster_size
(self, device)
lavis/models/beats/quantizer.py:152
Functionreset_flops_count
Reset statistics computed so far. A method to Reset computed statistics, which will be available after `add_flops_counting_methods()` is call
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:389
Functionresize_depth
Resize depth map and bring to CPU (numpy). Args: depth (tensor): depth width (int): image width height (int): image heigh
lavis/common/annotator/midas/utils.py:146
Functionresize_image
Resize image and make it fit for network. Args: img (array): image Returns: tensor: data ready for network
lavis/common/annotator/midas/utils.py:116
Functionresize_video
Resize a video. Args: in_file (str): Input video filename. out_file (str): Output video filename. size (tuple): Expected
lavis/common/annotator/uniformer/mmcv/video/processing.py:55
Functionresized_crop
Do spatial cropping and resizing to the video clip Args: clip (torch.tensor): Video clip to be cropped. Size is (C, T, H, W)
lavis/processors/functional_video.py:43
Methodresolution
tuple: Video resolution (width, height).
lavis/common/annotator/uniformer/mmcv/video/io.py:100
Methodresume
Resume model from checkpoint. Args: checkpoint (str): Checkpoint to resume from. resume_optimizer (bool, optional): W
lavis/common/annotator/uniformer/mmcv/runner/iter_based_runner.py:140
Methodresume_ckpt_path
(self)
lavis/runners/runner_base.py:339
Functionrevert_sync_batchnorm
Helper function to convert all `SyncBatchNorm` (SyncBN) and `mmcv.ops.sync_bn.SyncBatchNorm`(MMSyncBN) layers in the model to `BatchNormXd` la
lavis/common/annotator/uniformer/mmcv/cnn/utils/sync_bn.py:21
Functionrgb2gray
Convert a RGB image to grayscale image. Args: img (ndarray): The input image. keepdim (bool): If False (by default), then return
lavis/common/annotator/uniformer/mmcv/image/colorspace.py:39
Functionrgb2ycbcr
Convert a RGB image to YCbCr image. This function produces the same results as Matlab's `rgb2ycbcr` function. It implements the ITU-R BT.601
lavis/common/annotator/uniformer/mmcv/image/colorspace.py:143
Functionrotate_func
like PIL, rotate by degree, not radians
lavis/processors/randaugment.py:76
Methodrun
Start running. Args: data_loaders (list[:obj:`DataLoader`]): Dataloaders for training and validation.
lavis/common/annotator/uniformer/mmcv/runner/epoch_based_runner.py:72
Methodrun
Start running. Args: data_loaders (list[:obj:`DataLoader`]): Dataloaders for training and validation.
lavis/common/annotator/uniformer/mmcv/runner/iter_based_runner.py:87
Methodrun_cfg
(self)
lavis/common/config.py:132
Methodsample
Placeholder for sample function.
lavis/common/annotator/uniformer/mmseg/core/seg/sampler/base_pixel_sampler.py:11
Methodsave_attn_gradients
(self, attn_gradients)
lavis/models/vit.py:76
Methodsave_attn_gradients
(self, attn_gradients)
lavis/models/med.py:164
Methodsave_attn_gradients
(self, attn_gradients)
lavis/models/blip_models/nlvr_encoder.py:128
Methodsave_attn_gradients
(self, attn_gradients)
lavis/models/blip2_models/Qformer.py:149
Functionsave_checkpoint
Save checkpoint to file. The checkpoint will have 3 fields: ``meta``, ``state_dict`` and ``optimizer``. By default ``meta`` will contain vers
lavis/common/annotator/uniformer/mmcv_custom/checkpoint.py:438
Methodsave_checkpoint
Save the checkpoint. Args: out_dir (str): The directory that checkpoints are saved. filename_tmpl (str, optional): Th
lavis/common/annotator/uniformer/mmcv/runner/epoch_based_runner.py:132
Methodsave_checkpoint
Save checkpoint to file. Args: out_dir (str): Directory to save checkpoint files. filename_tmpl (str, optional): Chec
lavis/common/annotator/uniformer/mmcv/runner/iter_based_runner.py:179
Functionsave_file
Common i/o utility to handle saving data to various file formats. Supported: .pkl, .pickle, .npy, .json Specifically for .json, u
lavis/common/utils.py:277
Functionsave_frames_grid
(img_array, out_path)
lavis/datasets/data_utils.py:262
Methodsave_freq
(self)
lavis/runners/runner_base.py:277
Methodsave_last
(self)
lavis/runners/runner_base.py:287
Functionsave_on_master
(state, is_best, output_dir)
lavis/models/ulip_models/utils/utils.py:89
Functionscaled_all_reduce
Performs the scaled all_reduce operation on the provided tensors. The input tensors are modified in-place. Currently supports only the sum red
lavis/models/ulip_models/utils/utils.py:123
Methodscaler
(self)
lavis/runners/runner_base.py:123
Methodscope
(self)
lavis/common/annotator/uniformer/mmcv/utils/registry.py:175
Methodscope
(self)
lavis/models/ulip_models/utils/registry.py:112
Functionseprate_point_cloud
seprate point cloud: usage : using to generate the incomplete point cloud with a setted number.
lavis/models/ulip_models/pointbert/misc.py:170
Functionset_bn_momentum_default
(bn_momentum)
lavis/models/ulip_models/pointbert/misc.py:130
Methodset_decoder
(self, decoder)
lavis/models/blip2_models/modeling_llama.py:633
Methodset_decoder
(self, decoder)
lavis/models/blip2_models/modeling_opt.py:924
Functionset_default
Set default json values for non-serializable values. It helps convert ``set``, ``range`` and ``np.ndarray`` data types to list. It also conve
lavis/common/annotator/uniformer/mmcv/fileio/handlers/json_handler.py:9
Methodset_input_embeddings
(self, value)
lavis/models/med.py:743
Methodset_input_embeddings
(self, value)
lavis/models/blip_models/nlvr_encoder.py:703
Methodset_input_embeddings
(self, value)
lavis/models/blip_diffusion_models/modeling_ctx_clip.py:34
Methodset_input_embeddings
(self, value)
lavis/models/blip2_models/Qformer.py:702
Methodset_input_embeddings
(self, value)
lavis/models/blip2_models/modeling_llama.py:455
Methodset_input_embeddings
(self, value)
lavis/models/blip2_models/modeling_llama.py:624
Methodset_input_embeddings
(self, value)
lavis/models/blip2_models/modeling_llama.py:799
Methodset_input_embeddings
(self, new_embeddings)
lavis/models/blip2_models/modeling_t5.py:1506
Methodset_input_embeddings
(self, new_embeddings)
lavis/models/blip2_models/modeling_t5.py:1713
Methodset_input_embeddings
(self, new_embeddings)
lavis/models/blip2_models/modeling_t5.py:2004
Methodset_input_embeddings
(self, value)
lavis/models/blip2_models/modeling_opt.py:574
Methodset_input_embeddings
(self, value)
lavis/models/blip2_models/modeling_opt.py:829
Methodset_input_embeddings
(self, value)
lavis/models/blip2_models/modeling_opt.py:915
Methodset_output_embeddings
(self, new_embeddings)
lavis/models/med.py:1021
Methodset_output_embeddings
(self, new_embeddings)
lavis/models/med.py:1147
Methodset_output_embeddings
(self, new_embeddings)
lavis/models/blip2_models/Qformer.py:984
Methodset_output_embeddings
(self, new_embeddings)
lavis/models/blip2_models/Qformer.py:1147
Methodset_output_embeddings
(self, new_embeddings)
lavis/models/blip2_models/modeling_llama.py:630
Methodset_output_embeddings
(self, new_embeddings)
lavis/models/blip2_models/modeling_t5.py:1718
Methodset_output_embeddings
(self, new_embeddings)
lavis/models/blip2_models/modeling_opt.py:921
Methodset_processors
(self, vis_processor, text_processor)
lavis/datasets/datasets/base_dataset.py:68
Functionset_random_seed
Set random seed. Args: seed (int): Seed to be used. deterministic (bool): Whether to set the deterministic option for
lavis/common/annotator/uniformer/mmseg/apis/train.py:14
Functionset_random_seed
Set random seed. Args: seed (int): Seed to be used. deterministic (bool): Whether to set the deterministic option for
lavis/common/annotator/uniformer/mmcv/runner/utils.py:70
Functionset_random_seed
Set random seed. Args: seed (int): Seed to be used. deterministic (bool): Whether to set the deterministic option for
lavis/models/ulip_models/pointbert/misc.py:81
Functionsetup_logger
()
lavis/common/logger.py:190
Functionsetup_task
(cfg)
lavis/tasks/__init__.py:22
Methodsetup_task
(cls, cfg)
lavis/tasks/retrieval.py:27
Methodsetup_task
(cls, cfg)
lavis/tasks/text_to_image_generation.py:20
Methodsetup_task
(cls, cfg)
lavis/tasks/multimodal_classification.py:35
Methodsetup_task
(cls, cfg)
lavis/tasks/dialogue.py:33
Methodsetup_task
(cls, cfg)
lavis/tasks/vqa_reading_comprehension.py:39
← previousnext →3,401–3,500 of 3,633, ranked by callers