Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KuofengGao/Verbose_Images
/ functions
Functions
3,633 in github.com/KuofengGao/Verbose_Images
⨍
Functions
3,633
◇
Types & classes
927
↳
Endpoints
4
Method
put_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
Function
random_dropping
(pc, e)
lavis/models/ulip_models/pointbert/misc.py:275
Function
random_scale
(partial, scale_range=[0.8, 1.2])
lavis/models/ulip_models/pointbert/misc.py:285
Method
rank
int: Rank of current process. (distributed training)
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:144
Function
read_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
Function
read_pfm
Read pfm file. Args: path (str): path to file Returns: tuple: (data, scale)
lavis/common/annotator/midas/utils.py:9
Method
reduction
feature reduction (output stride) accessor
lavis/models/timesformer/features.py:70
Method
register_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
Method
register_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
Function
register_handler
(file_formats, **kwargs)
lavis/common/annotator/uniformer/mmcv/fileio/io.py:145
Method
register_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
Method
register_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
Method
register_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
Method
register_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
Method
register_profiler_hook
(self, profiler_config)
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:493
Method
register_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
Method
register_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
Method
register_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
Method
register_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
Function
relu_flops_counter_hook
(module, input, output)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:413
Method
remove
Remove a file. Args: filepath (str or Path): Path to be removed.
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:204
Method
remove
Remove a file. Args: filepath (str or Path): Path to be removed.
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:573
Function
remove_flops_counter_hook_function
(module)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:546
Method
replace_cross_attention
(self, attn_base, att_replace)
lavis/models/blip_diffusion_models/ptp_utils.py:238
Method
replace_cross_attention
(self, attn_base, att_replace)
lavis/models/blip_diffusion_models/ptp_utils.py:280
Function
requires_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
Function
requires_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
Method
rescale
(param, layer_id)
lavis/models/eva_vit.py:301
Method
reset
(self)
lavis/models/blip_diffusion_models/ptp_utils.py:102
Method
reset_classifier
(self, num_classes, global_pool='')
lavis/common/annotator/uniformer/mmseg/models/backbones/uniformer.py:379
Method
reset_classifier
(self, num_classes, global_pool='')
lavis/models/eva_vit.py:320
Method
reset_cluster_size
(self, device)
lavis/models/beats/quantizer.py:152
Function
reset_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
Function
resize_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
Function
resize_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
Function
resize_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
Function
resized_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
Method
resolution
tuple: Video resolution (width, height).
lavis/common/annotator/uniformer/mmcv/video/io.py:100
Method
resume
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
Method
resume_ckpt_path
(self)
lavis/runners/runner_base.py:339
Function
revert_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
Function
rgb2gray
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
Function
rgb2ycbcr
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
Function
rotate_func
like PIL, rotate by degree, not radians
lavis/processors/randaugment.py:76
Method
run
Start running. Args: data_loaders (list[:obj:`DataLoader`]): Dataloaders for training and validation.
lavis/common/annotator/uniformer/mmcv/runner/epoch_based_runner.py:72
Method
run
Start running. Args: data_loaders (list[:obj:`DataLoader`]): Dataloaders for training and validation.
lavis/common/annotator/uniformer/mmcv/runner/iter_based_runner.py:87
Method
run_cfg
(self)
lavis/common/config.py:132
Method
sample
Placeholder for sample function.
lavis/common/annotator/uniformer/mmseg/core/seg/sampler/base_pixel_sampler.py:11
Method
save_attn_gradients
(self, attn_gradients)
lavis/models/vit.py:76
Method
save_attn_gradients
(self, attn_gradients)
lavis/models/med.py:164
Method
save_attn_gradients
(self, attn_gradients)
lavis/models/blip_models/nlvr_encoder.py:128
Method
save_attn_gradients
(self, attn_gradients)
lavis/models/blip2_models/Qformer.py:149
Function
save_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
Method
save_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
Method
save_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
Function
save_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
Function
save_frames_grid
(img_array, out_path)
lavis/datasets/data_utils.py:262
Method
save_freq
(self)
lavis/runners/runner_base.py:277
Method
save_last
(self)
lavis/runners/runner_base.py:287
Function
save_on_master
(state, is_best, output_dir)
lavis/models/ulip_models/utils/utils.py:89
Function
scaled_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
Method
scaler
(self)
lavis/runners/runner_base.py:123
Method
scope
(self)
lavis/common/annotator/uniformer/mmcv/utils/registry.py:175
Method
scope
(self)
lavis/models/ulip_models/utils/registry.py:112
Function
seprate_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
Function
set_bn_momentum_default
(bn_momentum)
lavis/models/ulip_models/pointbert/misc.py:130
Method
set_decoder
(self, decoder)
lavis/models/blip2_models/modeling_llama.py:633
Method
set_decoder
(self, decoder)
lavis/models/blip2_models/modeling_opt.py:924
Function
set_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
Method
set_input_embeddings
(self, value)
lavis/models/med.py:743
Method
set_input_embeddings
(self, value)
lavis/models/blip_models/nlvr_encoder.py:703
Method
set_input_embeddings
(self, value)
lavis/models/blip_diffusion_models/modeling_ctx_clip.py:34
Method
set_input_embeddings
(self, value)
lavis/models/blip2_models/Qformer.py:702
Method
set_input_embeddings
(self, value)
lavis/models/blip2_models/modeling_llama.py:455
Method
set_input_embeddings
(self, value)
lavis/models/blip2_models/modeling_llama.py:624
Method
set_input_embeddings
(self, value)
lavis/models/blip2_models/modeling_llama.py:799
Method
set_input_embeddings
(self, new_embeddings)
lavis/models/blip2_models/modeling_t5.py:1506
Method
set_input_embeddings
(self, new_embeddings)
lavis/models/blip2_models/modeling_t5.py:1713
Method
set_input_embeddings
(self, new_embeddings)
lavis/models/blip2_models/modeling_t5.py:2004
Method
set_input_embeddings
(self, value)
lavis/models/blip2_models/modeling_opt.py:574
Method
set_input_embeddings
(self, value)
lavis/models/blip2_models/modeling_opt.py:829
Method
set_input_embeddings
(self, value)
lavis/models/blip2_models/modeling_opt.py:915
Method
set_output_embeddings
(self, new_embeddings)
lavis/models/med.py:1021
Method
set_output_embeddings
(self, new_embeddings)
lavis/models/med.py:1147
Method
set_output_embeddings
(self, new_embeddings)
lavis/models/blip2_models/Qformer.py:984
Method
set_output_embeddings
(self, new_embeddings)
lavis/models/blip2_models/Qformer.py:1147
Method
set_output_embeddings
(self, new_embeddings)
lavis/models/blip2_models/modeling_llama.py:630
Method
set_output_embeddings
(self, new_embeddings)
lavis/models/blip2_models/modeling_t5.py:1718
Method
set_output_embeddings
(self, new_embeddings)
lavis/models/blip2_models/modeling_opt.py:921
Method
set_processors
(self, vis_processor, text_processor)
lavis/datasets/datasets/base_dataset.py:68
Function
set_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
Function
set_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
Function
set_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
Function
setup_logger
()
lavis/common/logger.py:190
Function
setup_task
(cfg)
lavis/tasks/__init__.py:22
Method
setup_task
(cls, cfg)
lavis/tasks/retrieval.py:27
Method
setup_task
(cls, cfg)
lavis/tasks/text_to_image_generation.py:20
Method
setup_task
(cls, cfg)
lavis/tasks/multimodal_classification.py:35
Method
setup_task
(cls, cfg)
lavis/tasks/dialogue.py:33
Method
setup_task
(cls, cfg)
lavis/tasks/vqa_reading_comprehension.py:39
← previous
next →
3,401–3,500 of 3,633, ranked by callers