MCPcopy Create free account

hub / github.com/KuofengGao/Verbose_Images / functions

Functions3,633 in github.com/KuofengGao/Verbose_Images

Functionade_classes
ADE20K class names for external use.
lavis/common/annotator/uniformer/mmseg/core/evaluation/class_names.py:14
Functionade_palette
ADE20K palette for external use.
lavis/common/annotator/uniformer/mmseg/core/evaluation/class_names.py:63
Functionadjust_brightness
Adjust image brightness. This function controls the brightness of an image. An enhancement factor of 0.0 gives a black image. A factor of
lavis/common/annotator/uniformer/mmcv/image/photometric.py:176
Functionadjust_color
r"""It blends the source image and its gray image: .. math:: output = img * alpha + gray\_img * beta + gamma Args: img (ndar
lavis/common/annotator/uniformer/mmcv/image/photometric.py:100
Functionadjust_contrast
Adjust image contrast. This function controls the contrast of an image. An enhancement factor of 0.0 gives a solid grey image. A factor o
lavis/common/annotator/uniformer/mmcv/image/photometric.py:208
Functionadjust_lighting
AlexNet-style PCA jitter. This data augmentation is proposed in `ImageNet Classification with Deep Convolutional Neural Networks <https:/
lavis/common/annotator/uniformer/mmcv/image/photometric.py:338
Functionadjust_sharpness
Adjust image sharpness. This function controls the sharpness of an image. An enhancement factor of 0.0 gives a blurred image. A factor of
lavis/common/annotator/uniformer/mmcv/image/photometric.py:294
Methodafter_epoch
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/memory.py:23
Methodafter_epoch
All-reduce model buffers at the end of each epoch.
lavis/common/annotator/uniformer/mmcv/runner/hooks/sync_buffer.py:19
Methodafter_evaluation
(self, val_result, **kwargs)
lavis/tasks/retrieval.py:49
Methodafter_evaluation
(self, val_result, split_name, epoch, **kwargs)
lavis/tasks/multimodal_classification.py:101
Methodafter_evaluation
(self, val_result, split_name, epoch, **kwargs)
lavis/tasks/dialogue.py:57
Methodafter_evaluation
(self, val_result, split_name, **kwargs)
lavis/tasks/vqa_reading_comprehension.py:93
Methodafter_evaluation
(self, **kwargs)
lavis/tasks/base_task.py:79
Methodafter_evaluation
(self, val_result, split_name, epoch, **kwargs)
lavis/tasks/captioning.py:125
Methodafter_iter
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/memory.py:15
Methodafter_iter
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/iter_timer.py:16
Methodafter_run
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/hook.py:16
Methodafter_run
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/tensorboard.py:56
Methodafter_run
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/text.py:238
Methodafter_run
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/neptune.py:81
Methodafter_run
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/wandb.py:55
Methodafter_run
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/pavi.py:89
Methodafter_run
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/mlflow.py:76
Methodafter_train_epoch
After train epoch hook. Override default ``single_gpu_test``.
lavis/common/annotator/uniformer/mmseg/core/evaluation/eval_hooks.py:42
Methodafter_train_epoch
After train epoch hook. Override default ``multi_gpu_test``.
lavis/common/annotator/uniformer/mmseg/core/evaluation/eval_hooks.py:93
Methodafter_train_epoch
We load parameter values from ema backup to model before the EvalHook.
lavis/common/annotator/uniformer/mmcv/runner/hooks/ema.py:73
Methodafter_train_epoch
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/profiler.py:166
Methodafter_train_epoch
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/checkpoint.py:102
Methodafter_train_epoch
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/hook.py:37
Methodafter_train_epoch
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/base.py:156
Methodafter_train_iter
After train epoch hook. Override default ``single_gpu_test``.
lavis/common/annotator/uniformer/mmseg/core/evaluation/eval_hooks.py:26
Methodafter_train_iter
After train epoch hook. Override default ``multi_gpu_test``.
lavis/common/annotator/uniformer/mmseg/core/evaluation/eval_hooks.py:74
Methodafter_train_iter
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/optimizer.py:33
Methodafter_train_iter
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/optimizer.py:105
Methodafter_train_iter
Backward optimization steps for Mixed Precision Training. For dynamic loss scaling, please refer to https://pytorch.org/docs/s
lavis/common/annotator/uniformer/mmcv/runner/hooks/optimizer.py:209
Methodafter_train_iter
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/optimizer.py:255
Methodafter_train_iter
Update ema parameter every self.interval iterations.
lavis/common/annotator/uniformer/mmcv/runner/hooks/ema.py:60
Methodafter_train_iter
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/profiler.py:174
Methodafter_train_iter
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/checkpoint.py:153
Methodafter_train_iter
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/hook.py:49
Methodafter_train_iter
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/base.py:142
Methodafter_val_epoch
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/hook.py:40
Methodafter_val_epoch
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/logger/base.py:162
Methodafter_val_iter
(self, runner)
lavis/common/annotator/uniformer/mmcv/runner/hooks/hook.py:52
Functionall_gather_batch
Performs all_gather operation on the provided tensors.
lavis/models/ulip_models/utils/utils.py:148
Functionall_gather_batch_with_grad
Performs all_gather operation on the provided tensors. Graph remains connected for backward grad computation.
lavis/models/ulip_models/utils/utils.py:193
Methodallow_symlink
(self)
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:35
Methodallow_symlink
(self)
lavis/common/annotator/uniformer/mmcv/fileio/file_client.py:827
Functionallreduce_grads
(params, coalesce=True, bucket_size_mb=-1)
lavis/common/annotator/uniformer/mmcv/runner/fp16_utils.py:227
Functionannealing_linear
Calculate annealing linear learning rate. Linear anneal from `start` to `end` as percentage goes from 0.0 to 1.0. Args: start (float
lavis/common/annotator/uniformer/mmcv/runner/hooks/lr_updater.py:645
Functionapi_warning_wrapper
(old_func)
lavis/common/annotator/uniformer/mmcv/utils/misc.py:301
Methodapply
(answer)
lavis/models/blip2_models/blip2_t5_instruct.py:699
Methodapply
(answer)
lavis/models/blip2_models/blip2_t5.py:315
Methodapply
(answer)
lavis/models/blip2_models/blip2_opt.py:262
Methodapply
(answer)
lavis/models/blip2_models/blip2_vicuna_instruct.py:659
Methodapply
(answer)
lavis/models/blip2_models/blip2_vicuna_xinstruct.py:2092
Functionapply_min_size
Rezise the sample to ensure the given size. Keeps aspect ratio. Args: sample (dict): sample size (tuple): image size Returns
lavis/common/annotator/midas/midas/transforms.py:6
Functionapply_rot_embed_list
(x: List[torch.Tensor], sin_emb, cos_emb)
lavis/models/clip_models/timm_model.py:438
Functionapply_rot_embed_split
(x: torch.Tensor, emb)
lavis/models/clip_models/timm_model.py:444
Functionassert_attrs_equal
Check if attribute of class object is correct. Args: obj (object): Class object to be checked. expected_attrs (Dict[str, Any]): D
lavis/common/annotator/uniformer/mmcv/utils/testing.py:61
Functionassert_dict_contains_subset
Check if the dict_obj contains the expected_subset. Args: dict_obj (Dict[Any, Any]): Dict object to be checked. expected_subset (
lavis/common/annotator/uniformer/mmcv/utils/testing.py:42
Functionassert_dict_has_keys
Check if the obj has all the expected_keys. Args: obj (Dict[str, Any]): Object to be checked. expected_keys (List[str]): Keys exp
lavis/common/annotator/uniformer/mmcv/utils/testing.py:77
Functionassert_is_norm_layer
Check if the module is a norm layer. Args: module (nn.Module): The module to be checked. Returns: bool: Whether the module i
lavis/common/annotator/uniformer/mmcv/utils/testing.py:105
Functionassert_keys_equal
Check if target_keys is equal to result_keys. Args: result_keys (List[str]): Result keys to be checked. target_keys (List[str]):
lavis/common/annotator/uniformer/mmcv/utils/testing.py:92
Functionassert_params_all_zeros
Check if the parameters of the module is all zeros. Args: module (nn.Module): The module to be checked. Returns: bool: Wheth
lavis/common/annotator/uniformer/mmcv/utils/testing.py:120
Functionassert_tensor_type
(func)
lavis/common/annotator/uniformer/mmcv/parallel/data_container.py:7
Methodaug_test
Test with augmentations. Only rescale=True is supported.
lavis/common/annotator/uniformer/mmseg/models/segmentors/encoder_decoder.py:281
Methodauto_argparser
Generate argparser from config file automatically (experimental)
lavis/common/annotator/uniformer/mmcv/utils/config.py:366
Functionauto_contrast
Auto adjust image contrast. This function maximize (normalize) image contrast by first removing cutoff percent of the lightest and darkest pi
lavis/common/annotator/uniformer/mmcv/image/photometric.py:238
Functionauto_fp16
Decorator to enable fp16 training automatically. This decorator is useful when you write custom modules and want to support mixed precision t
lavis/common/annotator/uniformer/mmcv/runner/fp16_utils.py:55
Functionauto_fp16_wrapper
(old_func)
lavis/common/annotator/uniformer/mmcv/runner/fp16_utils.py:88
Functionautocontrast_func
same output as PIL.ImageOps.autocontrast
lavis/processors/randaugment.py:19
Methodavg
(self)
lavis/common/logger.py:56
Methodbackward
(ctx, a=None, b=None)
lavis/common/annotator/uniformer/mmcv/ops/three_nn.py:47
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/carafe.py:58
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/carafe.py:147
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/border_align.py:48
Methodbackward
Args: grad_out (Tensor): (B, C, N) tensor with gradients of outputs Returns: Tensor: (B, C, M) tensor with g
lavis/common/annotator/uniformer/mmcv/ops/three_interpolate.py:47
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/modulated_deform_conv.py:97
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/masked_conv.py:79
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/correlation.py:63
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/psa_mask.py:48
Methodbackward
Args: grad_out (torch.Tensor): (B, out_dim, npoint, K) Returns: grad_scores (torch.Tensor): (B, npoint, K, M
lavis/common/annotator/uniformer/mmcv/ops/assign_score_withk.py:81
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/tin_shift.py:35
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/corner_pool.py:32
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/corner_pool.py:53
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/corner_pool.py:74
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/corner_pool.py:95
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/roi_align.py:110
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/deform_conv.py:114
Methodbackward
(ctx, grad_voxel_feats, grad_voxel_coors=None)
lavis/common/annotator/uniformer/mmcv/ops/scatter_points.py:44
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/deform_roi_pool.py:67
Methodbackward
(ctx, gradgrad_input)
lavis/common/annotator/uniformer/mmcv/ops/upfirdn2d.py:152
Methodbackward
(ctx, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/upfirdn2d.py:225
Methodbackward
(ctx, a=None)
lavis/common/annotator/uniformer/mmcv/ops/ball_query.py:51
Methodbackward
(ctx, grad_out)
lavis/common/annotator/uniformer/mmcv/ops/roiaware_pool3d.py:105
Methodbackward
(ctx, grad_out)
lavis/common/annotator/uniformer/mmcv/ops/roipoint_pool3d.py:76
Methodbackward
(self, grad_output)
lavis/common/annotator/uniformer/mmcv/ops/sync_bn.py:129
Methodbackward
(ctx, gradgrad_input, gradgrad_bias)
lavis/common/annotator/uniformer/mmcv/ops/fused_bias_leakyrelu.py:142
← previousnext →2,201–2,300 of 3,633, ranked by callers