MCPcopy Create free account

hub / github.com/KuofengGao/Verbose_Images / functions

Functions3,633 in github.com/KuofengGao/Verbose_Images

Methodsetup_task
(cls, **kwargs)
lavis/tasks/base_task.py:26
Methodsetup_task
(cls, cfg)
lavis/tasks/captioning.py:41
Methodshape
projection
lavis/models/blip2_models/modeling_t5.py:508
Functionsharpness_func
The differences the this result and PIL are all on the 4 boundaries, the center areas are same
lavis/processors/randaugment.py:138
Functionshear_x_func
(img, factor, fill=(0, 0, 0))
lavis/processors/randaugment.py:159
Functionshear_y_func
(img, factor, fill=(0, 0, 0))
lavis/processors/randaugment.py:200
MethodshowQA
Display the specified annotations. :param anns (array of object): annotations to display :return: None
lavis/common/vqa_tools/vqa.py:159
Methodshow_n_params
(self, return_str=True)
lavis/models/base_model.py:125
Methodsimple_test
Simple test with single image.
lavis/common/annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:268
Functionsingle_gpu_test
Test model with a single gpu. This method tests model with a single gpu and displays test progress bar. Args: model (nn.Module): Mod
lavis/common/annotator/uniformer/mmcv/engine/test.py:15
Functionskip_no_elena
(func)
lavis/common/annotator/uniformer/mmcv/utils/parrots_jit.py:36
Functionslice_list
Slice a list into several sub lists by a list of given length. Args: in_list (list): The list to be sliced. lens(int or list): Th
lavis/common/annotator/uniformer/mmcv/utils/misc.py:168
Functionsoft_nms
Dispatch to only CPU Soft NMS implementations. The input can be either a torch tensor or numpy array. The returned type will always be the sa
lavis/common/annotator/uniformer/mmcv/ops/nms.py:181
Functionsolarize
Solarize an image (invert all pixel values above a threshold) Args: img (ndarray): Image to be solarized. thr (int): Threshold fo
lavis/common/annotator/uniformer/mmcv/image/photometric.py:71
Functionsolarize_func
same output as PIL.ImageOps.posterize
lavis/processors/randaugment.py:87
Functionsparse_flow_from_bytes
Read the optical flow in KITTI datasets from bytes. This function is modified from RAFT load the `KITTI datasets <https://github.com/princeto
lavis/common/annotator/uniformer/mmcv/video/optflow.py:234
Functionstart_flops_count
Activate the computation of mean flops consumption per image. A method to activate the computation of mean flops consumption per image. which
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:355
Methodstep
(self, cur_epoch, cur_step)
lavis/common/optims.py:37
Methodstep
(self, cur_epoch, cur_step)
lavis/common/optims.py:77
Methodstep_callback
(self, x_t)
lavis/models/blip_diffusion_models/ptp_utils.py:186
Functionstop_flops_count
Stop computing the mean flops consumption per image. A method to stop computing the mean flops consumption per image, which will be available
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:378
Methodsymbolic
(g, features, masks, kernel_size, group_size, scale_factor)
lavis/common/annotator/uniformer/mmcv/ops/carafe.py:20
Methodsymbolic
(g, features, masks, kernel_size, group_size, scale_factor)
lavis/common/annotator/uniformer/mmcv/ops/carafe.py:103
Methodsymbolic
(g, input, boxes, pool_size)
lavis/common/annotator/uniformer/mmcv/ops/border_align.py:19
Methodsymbolic
(g, bboxes, scores, iou_threshold, offset, score_threshold, max_num)
lavis/common/annotator/uniformer/mmcv/ops/nms.py:36
Methodsymbolic
(g, boxes, scores, iou_threshold, sigma, min_score, method, offset)
lavis/common/annotator/uniformer/mmcv/ops/nms.py:100
Methodsymbolic
(g, input, offset, mask, weight, bias, stride, padding, dilation, groups, deform_groups)
lavis/common/annotator/uniformer/mmcv/ops/modulated_deform_conv.py:22
Methodsymbolic
(g, features, mask, weight, bias, padding, stride)
lavis/common/annotator/uniformer/mmcv/ops/masked_conv.py:19
Methodsymbolic
(g, input, psa_type, mask_size)
lavis/common/annotator/uniformer/mmcv/ops/psa_mask.py:15
Methodsymbolic
(g, input)
lavis/common/annotator/uniformer/mmcv/ops/corner_pool.py:20
Methodsymbolic
(g, input)
lavis/common/annotator/uniformer/mmcv/ops/corner_pool.py:41
Methodsymbolic
(g, input)
lavis/common/annotator/uniformer/mmcv/ops/corner_pool.py:62
Methodsymbolic
(g, input)
lavis/common/annotator/uniformer/mmcv/ops/corner_pool.py:83
Methodsymbolic
(g, input, rois, output_size, spatial_scale, sampling_ratio, pool_mode, aligned)
lavis/common/annotator/uniformer/mmcv/ops/roi_align.py:17
Methodsymbolic
(g, input, offset, weight, stride,
lavis/common/annotator/uniformer/mmcv/ops/deform_conv.py:25
Methodsymbolic
(g, input, rois, offset, output_size, spatial_scale, sampling_ratio, gamma)
lavis/common/annotator/uniformer/mmcv/ops/deform_roi_pool.py:16
Methodsymbolic
(g, input, running_mean, running_var, weight, bias, momentum, eps, group, group_size, stats_m
lavis/common/annotator/uniformer/mmcv/ops/sync_bn.py:22
Methodsymbolic
(g, features, rois, out_size, spatial_scale, sample_num, aligned, clockwise)
lavis/common/annotator/uniformer/mmcv/ops/roi_align_rotated.py:14
Methodsymbolic
(g, input, rois, output_size, spatial_scale)
lavis/common/annotator/uniformer/mmcv/ops/roi_pool.py:17
Methodsymbolic
(g, input, target, gamma, alpha, weight, reduction)
lavis/common/annotator/uniformer/mmcv/ops/focal_loss.py:18
Methodsymbolic
(g, input, target, gamma, alpha, weight, reduction)
lavis/common/annotator/uniformer/mmcv/ops/focal_loss.py:112
Functionsymlink
(src, dst, overwrite=True, **kwargs)
lavis/common/annotator/uniformer/mmcv/utils/path.py:33
Methodsynchronize_between_processes
Warning: does not synchronize the deque!
lavis/common/logger.py:37
Methodterminal_width
(self)
lavis/common/annotator/uniformer/mmcv/utils/progressbar.py:22
Methodtest_splits
(self)
lavis/runners/runner_base.py:313
Methodtext
(self)
lavis/common/annotator/uniformer/mmcv/utils/config.py:403
Functiontext_under_image
(image: np.ndarray, text: str, text_color: Tuple[int, int, int] = (0, 0, 0))
lavis/models/blip_diffusion_models/ptp_utils.py:29
Methodto_dict
(self, sample)
lavis/datasets/datasets/laion_dataset.py:39
Functionto_google_drive_download_url
Utility function to transform a view URL of google drive to a download URL for google drive Example input: https://drive.google.c
lavis/common/utils.py:95
Functionto_image_text_pair
(sample)
lavis/datasets/datasets/laion_dataset.py:49
Methodto_kwargs
(self, inputs, kwargs, device_id)
lavis/common/annotator/uniformer/mmcv/parallel/distributed.py:21
Functionto_tensor
Convert tensor data type from uint8 to float, divide value by 255.0 and permute the dimensions of clip tensor Args: clip (torch.t
lavis/processors/functional_video.py:76
Functiontokenize
Returns the tokenized representation of given input string(s) Parameters ---------- texts : Union[str, List[str]] An input st
lavis/models/clip_models/tokenizer.py:175
Functiontrace_model
(model, batch_size=256, device=torch.device("cpu"))
lavis/models/clip_models/model.py:873
Functiontrack_iter_progress
Track the progress of tasks iteration or enumeration with a progress bar. Tasks are yielded with a simple for-loop. Args: tasks
lavis/common/annotator/uniformer/mmcv/utils/progressbar.py:179
Functiontrack_parallel_progress
Track the progress of parallel task execution with a progress bar. The built-in :mod:`multiprocessing` module is used for process pools and t
lavis/common/annotator/uniformer/mmcv/utils/progressbar.py:109
Methodtrain
Convert the model into training mode while keep normalization layer freezed.
lavis/common/annotator/uniformer/mmseg/models/backbones/unet.py:389
Methodtrain
Convert the model into training mode will keeping the normalization layer freezed.
lavis/common/annotator/uniformer/mmseg/models/backbones/cgnet.py:359
Methodtrain
(self, mode=True)
lavis/common/annotator/uniformer/mmseg/models/backbones/vit.py:454
Methodtrain
(self, mode=True)
lavis/common/annotator/uniformer/mmseg/models/backbones/mobilenet_v3.py:249
Methodtrain
Convert the model into training mode will keeping the normalization layer freezed.
lavis/common/annotator/uniformer/mmseg/models/backbones/hrnet.py:547
Methodtrain
(self, mode=True)
lavis/common/annotator/uniformer/mmseg/models/backbones/mobilenet_v2.py:174
Methodtrain
Convert the model into training mode while keep normalization layer freezed.
lavis/common/annotator/uniformer/mmseg/models/backbones/resnet.py:649
Methodtrain
(self)
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:185
Methodtrain
(self, data_loader, **kwargs)
lavis/common/annotator/uniformer/mmcv/runner/epoch_based_runner.py:40
Methodtrain
(self, data_loader, **kwargs)
lavis/common/annotator/uniformer/mmcv/runner/iter_based_runner.py:54
Methodtrain
(self, mode=True)
lavis/common/annotator/uniformer/mmcv/cnn/vgg.py:159
Methodtrain
(self, mode=True)
lavis/common/annotator/uniformer/mmcv/cnn/resnet.py:295
Methodtrain_epoch
( self, epoch, model, data_loader, optimizer, lr_scheduler,
lavis/tasks/base_task.py:104
Methodtrain_iters
( self, epoch, start_iters, iters_per_inner_epoch, model, data
lavis/tasks/base_task.py:129
Methodtrain_loader
(self)
lavis/runners/runner_base.py:343
Functiontrain_segmentor
Launch segmentor training.
lavis/common/annotator/uniformer/mmseg/apis/train.py:33
Methodtrain_splits
(self)
lavis/runners/runner_base.py:319
Methodtrain_step
The iteration step during training. This method defines an iteration step during training, except for the back propagation and optimi
lavis/common/annotator/uniformer/mmseg/models/segmentors/base.py:126
Methodtrain_step
train_step() API for module wrapped by DistributedDataParallel. This method is basically the same as ``DistributedDataParallel.forwar
lavis/common/annotator/uniformer/mmcv/parallel/distributed.py:29
Methodtrain_step
(self, *inputs, **kwargs)
lavis/common/annotator/uniformer/mmcv/parallel/distributed_deprecated.py:60
Functiontransfer
(model, model_weights)
lavis/common/annotator/openpose/util.py:30
Functiontranslate_x_func
same output as PIL.Image.transform
lavis/processors/randaugment.py:168
Functiontranslate_y_func
same output as PIL.Image.transform
lavis/processors/randaugment.py:180
Functiontuple_cast
Cast elements of an iterable object into a tuple of some type. A partial method of :func:`iter_cast`.
lavis/common/annotator/uniformer/mmcv/utils/misc.py:120
Methodunregister
r"""Remove an item from registry with key 'name' Args: name: Key which needs to be removed. Usage:: from mmf
lavis/common/registry.py:315
Methodunshape
reshape
lavis/models/blip2_models/modeling_t5.py:514
Functionupfirdn2d
UpFRIDn for 2d features. UpFIRDn is short for upsample, apply FIR filter and downsample. More details can be found in: https://www.mathwo
lavis/common/annotator/uniformer/mmcv/ops/upfirdn2d.py:243
Functionupsample_flops_counter_hook
(module, input, output)
lavis/common/annotator/uniformer/mmcv/cnn/utils/flops_counter.py:404
Functionuse_backend
Select a backend for image decoding. Args: backend (str): The image decoding backend type. Options are `cv2`, `pillow`, `turbojpe
lavis/common/annotator/uniformer/mmcv/image/io.py:43
Methoduse_dist_eval_sampler
(self)
lavis/runners/runner_base.py:335
Methoduse_distributed
(self)
lavis/runners/runner_base.py:76
Methodval
(self)
lavis/common/annotator/uniformer/mmcv/runner/base_runner.py:189
Methodval
(self, data_loader, **kwargs)
lavis/common/annotator/uniformer/mmcv/runner/epoch_based_runner.py:58
Methodval
(self, data_loader, **kwargs)
lavis/common/annotator/uniformer/mmcv/runner/iter_based_runner.py:72
Methodval_freq
(self)
lavis/runners/runner_base.py:282
Methodval_step
The iteration step during validation. This method shares the same signature as :func:`train_step`, but used during val epochs. Note t
lavis/common/annotator/uniformer/mmseg/models/segmentors/base.py:162
Methodval_step
val_step() API for module wrapped by DistributedDataParallel. This method is basically the same as ``DistributedDataParallel.forward(
lavis/common/annotator/uniformer/mmcv/parallel/distributed.py:72
Methodval_step
(self, *inputs, **kwargs)
lavis/common/annotator/uniformer/mmcv/parallel/distributed_deprecated.py:66
Methodvalid_splits
(self)
lavis/runners/runner_base.py:304
Methodvalid_step
(self, model, samples)
lavis/tasks/multimodal_classification.py:50
Methodvalid_step
(self, model, samples)
lavis/tasks/dialogue.py:51
Methodvalid_step
(self, model, samples)
lavis/tasks/vqa_reading_comprehension.py:61
Methodvalid_step
(self, model, samples)
lavis/tasks/vqa_reading_comprehension.py:158
Methodvalid_step
(self, model, samples)
lavis/tasks/vqa.py:132
← previousnext →3,501–3,600 of 3,633, ranked by callers