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
Function
cityscapes_palette
Cityscapes palette for external use.
lavis/common/annotator/uniformer/mmseg/core/evaluation/class_names.py:54
Function
clahe
Use CLAHE method to process the image. See `ZUIDERVELD,K. Contrast Limited Adaptive Histogram Equalization[J]. Graphics Gems, 1994:474-485.`
lavis/common/annotator/uniformer/mmcv/image/photometric.py:405
Method
cls_seg
Classify each pixel.
lavis/common/annotator/uniformer/mmseg/models/decode_heads/decode_head.py:207
Method
cluster_size_ema_update
(self, new_cluster_size)
lavis/models/beats/quantizer.py:109
Method
collater
(self, samples)
lavis/datasets/datasets/subject_driven_t2i_dataset.py:52
Method
collater
(self, samples)
lavis/datasets/datasets/iconqa_datasets.py:73
Method
collater
(self, samples)
lavis/datasets/datasets/iconqa_datasets.py:91
Method
collater
(self, samples)
lavis/datasets/datasets/base_dataset.py:80
Method
collater
(self, samples)
lavis/datasets/datasets/avsd_dialogue_datasets.py:49
Method
collater
(self, samples)
lavis/datasets/datasets/avsd_dialogue_datasets.py:126
Method
collater
(self, samples)
lavis/datasets/datasets/vg_vqa_datasets.py:47
Method
collater
(self, samples)
lavis/datasets/datasets/ocr_datasets.py:66
Method
collater
(self, samples)
lavis/datasets/datasets/vqa_datasets.py:47
Method
collater
(self, samples)
lavis/datasets/datasets/gqa_datasets.py:64
Method
collater
(self, samples)
lavis/datasets/datasets/coco_vqa_datasets.py:71
Method
collater
(self, samples)
lavis/datasets/datasets/aok_vqa_datasets.py:74
Function
collect_env
Collect the information of the running environments. Returns: dict: The environment information. The following fields are contained.
lavis/common/annotator/uniformer/mmcv/utils/env.py:16
Function
color_func
same output as PIL.ImageEnhance.Color
lavis/processors/randaugment.py:97
Function
compute_average_flops_cost
Compute average FLOPs cost. A method to compute average FLOPs cost, which will be available after `add_flops_counting_methods()` is called on
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:337
Method
compute_ctx_embeddings
(input_image, text_input)
lavis/models/blip_diffusion_models/blip_diffusion.py:879
Method
compute_sim_matrix
Compute similarity i2t, t2i matrix for the given data loader.
lavis/models/blip_models/blip_retrieval.py:390
Method
compute_sim_matrix
Compute similarity i2t, t2i matrix for the given data loader.
lavis/models/albef_models/albef_retrieval.py:338
Method
compute_sim_matrix
Compute similarity i2t, t2i matrix for the given data loader.
lavis/models/blip2_models/blip2_qformer.py:529
Method
compute_sim_matrix
(self, data_loader, task_cfg)
lavis/models/alpro_models/alpro_retrieval.py:242
Function
concat_list
Concatenate a list of list into a single list. Args: in_list (list): The list of list to be merged. Returns: list: The conca
lavis/common/annotator/uniformer/mmcv/utils/misc.py:194
Function
concat_video
Concatenate multiple videos into a single one. Args: video_list (list): A list of video filenames out_file (str): Output video fi
lavis/common/annotator/uniformer/mmcv/video/processing.py:128
Method
concatenation
(self, theta_x, phi_x)
lavis/common/annotator/uniformer/mmcv/cnn/bricks/non_local.py:143
Function
contour_expand
Expand kernel contours so that foreground pixels are assigned into instances. Arguments: kernel_mask (np.array or Tensor): The instan
lavis/common/annotator/uniformer/mmcv/ops/contour_expand.py:10
Function
contrast_func
same output as PIL.ImageEnhance.Contrast
lavis/processors/randaugment.py:115
Function
conv_flops_counter_hook
(conv_module, input, output)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:467
Function
convert_color
(img)
lavis/common/annotator/uniformer/mmcv/image/colorspace.py:279
Function
cosine_scheduler
(base_value, final_value, epochs, niter_per_ep, warmup_epochs=0, start_warmup_value=0)
lavis/models/ulip_models/utils/utils.py:215
Method
cpu_only
(self)
lavis/common/annotator/uniformer/mmcv/parallel/data_container.py:68
Function
create_conv2d_pad
(in_chs, out_chs, kernel_size, **kwargs)
lavis/models/timesformer/conv2d_same.py:109
Method
create_custom_forward
(module)
lavis/models/med.py:576
Method
create_custom_forward
(module)
lavis/models/blip_models/nlvr_encoder.py:536
Method
create_custom_forward
(module)
lavis/models/blip2_models/Qformer.py:533
Method
create_custom_forward
(module)
lavis/models/blip2_models/modeling_llama.py:562
Method
create_custom_forward
(module)
lavis/models/blip2_models/modeling_t5.py:1192
Method
create_custom_forward
(module)
lavis/models/blip2_models/modeling_opt.py:757
Function
create_file_symlink
Simply create the symlinks for a given file1 to file2. Useful during model checkpointing to symlinks to the latest successful checkpoint.
lavis/common/utils.py:263
Function
create_model_and_transforms
( model_name: str, pretrained: str = "", precision: str = "fp32", device: torch.device = torch
lavis/models/clip_models/model.py:1009
Function
cross_entropy
The wrapper function for :func:`F.cross_entropy`
lavis/common/annotator/uniformer/mmseg/models/losses/cross_entropy_loss.py:9
Method
cuda_enabled
(self)
lavis/runners/runner_base.py:264
Method
cur_epoch
(self)
lavis/runners/runner_iter.py:61
Method
current_frame
Get the current frame (frame that is just visited). Returns: ndarray or None: If the video is fresh, return None, otherwise
lavis/common/annotator/uniformer/mmcv/video/io.py:187
Method
custom_forward
(*inputs)
lavis/models/med.py:577
Method
custom_forward
(*inputs)
lavis/models/blip_models/nlvr_encoder.py:537
Method
custom_forward
(*inputs)
lavis/models/blip2_models/Qformer.py:534
Method
custom_forward
(*inputs)
lavis/models/blip2_models/modeling_llama.py:563
Method
custom_forward
(*inputs)
lavis/models/blip2_models/modeling_t5.py:1193
Method
custom_forward
(*inputs)
lavis/models/blip2_models/modeling_opt.py:758
Function
cut_video
Cut a clip from a video. Args: in_file (str): Input video filename. out_file (str): Output video filename. start (None or
lavis/common/annotator/uniformer/mmcv/video/processing.py:93
Function
cutout
Randomly cut out a rectangle from the original img. Args: img (ndarray): Image to be cutout. shape (int | tuple[int]): Expected c
lavis/common/annotator/uniformer/mmcv/image/geometric.py:538
Function
cutout_func
(img, pad_size, replace=(0, 0, 0))
lavis/processors/randaugment.py:209
Function
cutout_level_to_args
(cutout_const, MAX_LEVEL, replace_value)
lavis/processors/randaugment.py:250
Method
cvt2frames
Convert a video to frame images. Args: frame_dir (str): Output directory to store all the frame images. file_start (i
lavis/common/annotator/uniformer/mmcv/video/io.py:198
Method
data
(self)
lavis/common/annotator/uniformer/mmcv/parallel/data_container.py:57
Method
dataloaders
A property to get and create dataloaders by split just in need. If no train_dataset_ratio is provided, concatenate map-style dataset
lavis/runners/runner_iter.py:220
Method
dataloaders
A property to get and create dataloaders by split just in need. If no train_dataset_ratio is provided, concatenate map-style dataset
lavis/runners/runner_base.py:165
Method
datasets_cfg
(self)
lavis/common/config.py:136
Method
datatype
(self)
lavis/common/annotator/uniformer/mmcv/parallel/data_container.py:61
Method
ddim_scheduler
(self)
lavis/models/blip_diffusion_models/blip_diffusion.py:186
Function
deconv_flops_counter_hook
(conv_module, input, output)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:440
Method
default_config_path
(cls, model_type="base")
lavis/models/clip_models/model.py:675
Function
del_extra_repr
(m)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:295
Method
deparallelize
(self)
lavis/models/blip2_models/modeling_t5.py:1494
Method
deparallelize
(self)
lavis/models/blip2_models/modeling_t5.py:1700
Method
deparallelize
(self)
lavis/models/blip2_models/modeling_t5.py:1994
Function
deprecated_api_warning
A decorator to check if some arguments are deprecate and try to replace deprecate src_arg_name to dst_arg_name. Args: name_dict(dict)
lavis/common/annotator/uniformer/mmcv/utils/misc.py:288
Function
detach_variable
(inputs)
lavis/models/timesformer/helpers.py:381
Method
device
(self)
lavis/runners/runner_base.py:69
Method
device
(self)
lavis/models/base_model.py:153
Function
dict_from_file
Load a text file and parse the content as a dict. Each line of the text file will be two or more columns split by whitespaces or tabs. The fi
lavis/common/annotator/uniformer/mmcv/fileio/parse.py:55
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
lavis/common/annotator/midas/api.py:26
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
lavis/models/blip2_models/blip2.py:187
Method
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
lavis/models/blip_diffusion_models/blip_diffusion.py:168
Method
displ_item
(self, index)
lavis/datasets/datasets/snli_ve_datasets.py:18
Method
displ_item
(self, index)
lavis/datasets/datasets/audio_captioning_datasets.py:23
Method
displ_item
(self, index)
lavis/datasets/datasets/iconqa_datasets.py:21
Method
displ_item
(self, index)
lavis/datasets/datasets/object3d_captioning_datasets.py:23
Method
displ_item
(self, index)
lavis/datasets/datasets/retrieval_datasets.py:16
Method
displ_item
(self, index)
lavis/datasets/datasets/visdial_dialogue_datasets.py:20
Method
displ_item
(self, index)
lavis/datasets/datasets/image_text_pair_datasets.py:16
Method
displ_item
(self, index)
lavis/datasets/datasets/imagefolder_dataset.py:50
Method
displ_item
(self, index)
lavis/datasets/datasets/discriminatory_reasoning_datasets.py:18
Method
displ_item
(self, index)
lavis/datasets/datasets/gqa_datasets.py:20
Method
displ_item
(self, index)
lavis/datasets/datasets/dialogue_datasets.py:20
Method
displ_item
(self, index)
lavis/datasets/datasets/coco_vqa_datasets.py:19
Method
displ_item
(self, index)
lavis/datasets/datasets/caption_datasets.py:16
Method
displ_item
(self, index)
lavis/datasets/datasets/violin_dataset.py:19
Method
displ_item
(self, index)
lavis/datasets/datasets/object3d_classification_datasets.py:24
Method
displ_item
(self, index)
lavis/datasets/datasets/audio_classification_datasets.py:23
Method
displ_item
(self, index)
lavis/datasets/datasets/aok_vqa_datasets.py:20
Method
displ_item
(self, index)
lavis/datasets/datasets/nlvr_datasets.py:20
Method
displ_item
(self, index)
lavis/datasets/datasets/video_vqa_datasets.py:18
Method
dot_product
(self, theta_x, phi_x)
lavis/common/annotator/uniformer/mmcv/cnn/bricks/non_local.py:135
Function
download_and_save_image
(ann, save_dir, timeout=None, retries=0)
lavis/datasets/download_scripts/download_sbu.py:44
Function
download_google_drive_url
Download a file from google drive Downloading an URL from google drive requires confirmation when the file of the size is too big (google
lavis/common/utils.py:110
Function
download_image
(row)
lavis/datasets/download_scripts/DownloadConceptualCaptions/download_data_cc3m.py:134
← previous
next →
2,401–2,500 of 3,633, ranked by callers