MCPcopy Create free account

hub / github.com/Picsart-AI-Research/Text2Video-Zero / functions

Functions1,788 in github.com/Picsart-AI-Research/Text2Video-Zero

↓ 1 callersMethod_resize_img
Resize images with ``results['scale']``.
annotator/uniformer/mmseg/datasets/pipelines/transforms.py:177
↓ 1 callersMethod_resize_seg
Resize semantic segmentation map with ``results['scale']``.
annotator/uniformer/mmseg/datasets/pipelines/transforms.py:199
↓ 1 callersMethod_round_float
(self, items)
annotator/uniformer/mmcv/runner/hooks/logger/text.py:196
↓ 1 callersFunction_save_to_state_dict
Saves module state to `destination` dictionary. This method is modified from :meth:`torch.nn.Module._save_to_state_dict`. Args: modu
annotator/uniformer/mmcv/runner/checkpoint.py:570
↓ 1 callersFunction_save_to_state_dict
Saves module state to `destination` dictionary. This method is modified from :meth:`torch.nn.Module._save_to_state_dict`. Args: modu
annotator/uniformer/mmcv_custom/checkpoint.py:374
↓ 1 callersFunction_scandir
(dir_path, suffix, recursive, case_sensitive)
annotator/uniformer/mmcv/utils/path.py:68
↓ 1 callersMethod_substitute_base_vars
Substitute variable strings to their actual values.
annotator/uniformer/mmcv/utils/config.py:147
↓ 1 callersMethod_substitute_predefined_vars
(filename, temp_config_name)
annotator/uniformer/mmcv/utils/config.py:107
↓ 1 callersMethod_validate_cfg
(self)
annotator/uniformer/mmcv/runner/optimizer/default_constructor.py:105
↓ 1 callersMethod_validate_py_syntax
(filename)
annotator/uniformer/mmcv/utils/config.py:96
↓ 1 callersFunctionabs_img_point_to_rel_img_point
Convert image based absolute point coordinates to image based relative coordinates for sampling. Args: abs_img_points (Tensor): Image
annotator/uniformer/mmcv/ops/point_sample.py:186
↓ 1 callersFunctionadd_args
(parser, cfg, prefix='')
annotator/uniformer/mmcv/utils/config.py:51
↓ 1 callersFunctionadd_batch_counter_hook_function
(module)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:516
↓ 1 callersFunctionadd_batch_counter_variables_or_reset
(module)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:511
↓ 1 callersFunctionadd_flops_counting_methods
(net_main_module)
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:320
↓ 1 callersMethodadd_params
Add all parameters of module to the params list. The parameters of the given module will be added to the list of param groups, with s
annotator/uniformer/mmcv/runner/optimizer/default_constructor.py:137
↓ 1 callersMethodafter_train_epoch
Called after every training epoch to evaluate the results.
annotator/uniformer/mmcv/runner/hooks/evaluation.py:264
↓ 1 callersMethodafter_train_iter
Called after every training iter to evaluate the results.
annotator/uniformer/mmcv/runner/hooks/evaluation.py:244
↓ 1 callersMethodaggregate
(assignment_weights, x, codewords)
annotator/uniformer/mmseg/ops/encoding.py:46
↓ 1 callersMethodaug_test
Placeholder for augmentation test.
annotator/uniformer/mmseg/models/segmentors/base.py:61
↓ 1 callersFunctionbbox_scaling
Scaling bboxes w.r.t the box center. Args: bboxes (ndarray): Shape(..., 4). scale (float): Scaling factor. clip_shape (tu
annotator/uniformer/mmcv/image/geometric.py:360
↓ 1 callersMethodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:101
↓ 1 callersMethodbefore_run
(self, runner)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:107
↓ 1 callersFunctionbias_init_with_prob
initialize conv/fc bias value according to a given probability value.
annotator/uniformer/mmcv/cnn/utils/weight_init.py:122
↓ 1 callersFunctionbias_leakyrelu_ref
(x, bias, negative_slope=0.2, scale=2**0.5)
annotator/uniformer/mmcv/ops/fused_bias_leakyrelu.py:257
↓ 1 callersFunctionbilinear_grid_sample
Given an input and a flow-field grid, computes the output using input values and pixel locations from grid. Supported only bilinear interpolation
annotator/uniformer/mmcv/ops/point_sample.py:12
↓ 1 callersFunctionbinary_dice_loss
(pred, target, valid_mask, smooth=1, exponent=2, **kwards)
annotator/uniformer/mmseg/models/losses/dice_loss.py:37
↓ 1 callersMethodbrightness
Brightness distortion.
annotator/uniformer/mmseg/datasets/pipelines/transforms.py:810
↓ 1 callersFunctionbuild_attention
Builder for attention.
annotator/uniformer/mmcv/cnn/bricks/transformer.py:38
↓ 1 callersFunctionbuild_feedforward_network
Builder for feed-forward network (FFN).
annotator/uniformer/mmcv/cnn/bricks/transformer.py:43
↓ 1 callersFunctionbuild_optimizer
(model, cfg)
annotator/uniformer/mmcv/runner/optimizer/builder.py:33
↓ 1 callersFunctionbuild_optimizer_constructor
(cfg)
annotator/uniformer/mmcv/runner/optimizer/builder.py:29
↓ 1 callersFunctionbuild_padding_layer
Build padding layer. Args: cfg (None or dict): The padding layer config, which should contain: - type (str): Layer type.
annotator/uniformer/mmcv/cnn/bricks/padding.py:11
↓ 1 callersFunctionbuild_pixel_sampler
Build pixel sampler for segmentation map.
annotator/uniformer/mmseg/core/seg/builder.py:6
↓ 1 callersFunctionbuild_plugin_layer
Build plugin layer. Args: cfg (None or dict): cfg should contain: type (str): identify plugin layer type. layer a
annotator/uniformer/mmcv/cnn/bricks/plugin.py:55
↓ 1 callersFunctionbuild_runner
(cfg, default_args=None)
annotator/uniformer/mmcv/runner/builder.py:14
↓ 1 callersFunctionbuild_runner_constructor
(cfg)
annotator/uniformer/mmcv/runner/builder.py:10
↓ 1 callersFunctionbuild_segmentor
Build segmentor.
annotator/uniformer/mmseg/models/builder.py:35
↓ 1 callersFunctionbuild_transformer_layer
Builder for transformer layer.
annotator/uniformer/mmcv/cnn/bricks/transformer.py:48
↓ 1 callersFunctionbuild_upsample_layer
Build upsample layer. Args: cfg (dict): The upsample layer config, which should contain: - type (str): Layer type.
annotator/uniformer/mmcv/cnn/bricks/upsample.py:50
↓ 1 callersFunctioncalc_square_dist
Calculating square distance between a and b. Args: point_feat_a (Tensor): (B, N, C) Feature vector of each point. point_feat_b (T
annotator/uniformer/mmcv/ops/points_sampler.py:11
↓ 1 callersMethodcam_cls_seg
CAM feature classification.
annotator/uniformer/mmseg/models/decode_heads/da_head.py:135
↓ 1 callersFunctioncamel2snack
Convert camel case word into snack case. Modified from `inflection lib <https://inflection.readthedocs.io/en/latest/#inflection.under
annotator/uniformer/mmcv/cnn/bricks/plugin.py:29
↓ 1 callersFunctioncheck_ops_exist
()
annotator/uniformer/mmcv/utils/ext_loader.py:69
↓ 1 callersFunctioncheck_time
Add check points in a single line. This method is suitable for running a task on a list of items. A timer will be registered when the method
annotator/uniformer/mmcv/utils/timer.py:92
↓ 1 callersFunctioncollate
Puts each data field into a tensor/DataContainer with outer dimension batch size. Extend default_collate to add support for :type:`~mmcv.
annotator/uniformer/mmcv/parallel/collate.py:11
↓ 1 callersFunctioncollect_env
Collect the information of the running environments.
annotator/uniformer/mmseg/utils/collect_env.py:7
↓ 1 callersFunctioncollect_results_cpu
Collect results with CPU.
annotator/uniformer/mmseg/apis/test.py:164
↓ 1 callersFunctioncollect_results_cpu
Collect results under cpu mode. On cpu mode, this function will save the results on different gpus to ``tmpdir`` and collect them by the rank
annotator/uniformer/mmcv/engine/test.py:91
↓ 1 callersFunctioncollect_results_gpu
Collect results with GPU.
annotator/uniformer/mmseg/apis/test.py:207
↓ 1 callersFunctioncollect_results_gpu
Collect results under gpu mode. On gpu mode, this function will encode results to gpu tensors and use gpu communication for results collectio
annotator/uniformer/mmcv/engine/test.py:155
↓ 1 callersFunctionconv3x3
3x3 convolution with padding.
annotator/uniformer/mmcv/cnn/vgg.py:9
↓ 1 callersFunctionconv_ws_2d
(input, weight, bias=None, stride=1, padding=0,
annotator/uniformer/mmcv/cnn/bricks/conv_ws.py:9
↓ 1 callersFunctioncoords_grid
(batch, ht, wd, device)
text_to_video_pipeline.py:27
↓ 1 callersMethodcreate_motion_field
(self, motion_field_strength_x, motion_field_strength_y, frame_ids, video_length, latents)
text_to_video_pipeline.py:204
↓ 1 callersMethodcreate_motion_field_and_warp_latents
(self, motion_field_strength_x, motion_field_strength_y, frame_ids, video_length, latents)
text_to_video_pipeline.py:215
↓ 1 callersMethodcurrent_momentum
Get current momentums. Returns: list[float] | dict[str, list[float]]: Current momentums of all param groups. If t
annotator/uniformer/mmcv/runner/base_runner.py:224
↓ 1 callersFunctiondata_scraping
(url_list)
hf_utils.py:13
↓ 1 callersMethoddeprecated_register_module
(self, cls=None, force=False)
annotator/uniformer/mmcv/utils/registry.py:250
↓ 1 callersFunctiondequantize
Dequantize an array. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be clipped. max_val (scalar): M
annotator/uniformer/mmcv/arraymisc/quantization.py:32
↓ 1 callersFunctiondequantize_flow
Recover from quantized flow. Args: dx (ndarray): Quantized dx. dy (ndarray): Quantized dy. max_val (float): Maximum value
annotator/uniformer/mmcv/video/optflow.py:119
↓ 1 callersFunctiondice_loss
(pred, target, valid_mask, smooth=1, exponent=2,
annotator/uniformer/mmseg/models/losses/dice_loss.py:12
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). We follow the implementation https://github.com/
annotator/uniformer/mmcv/cnn/bricks/drop.py:9
↓ 1 callersMethoddump_to_str
(self, obj, **kwargs)
annotator/uniformer/mmcv/fileio/handlers/base.py:21
↓ 1 callersMethodevery_n_inner_iters
(self, runner, n)
annotator/uniformer/mmcv/runner/hooks/hook.py:58
↓ 1 callersMethodextract_feat
Placeholder for extract features from images.
annotator/uniformer/mmseg/models/segmentors/base.py:40
↓ 1 callersFunctionf_score
calcuate the f-score value. Args: precision (float | torch.Tensor): The precision value. recall (float | torch.Tensor): The recal
annotator/uniformer/mmseg/core/evaluation/metrics.py:8
↓ 1 callersMethodfeature_reassemble
(self, x, mask)
annotator/uniformer/mmcv/ops/carafe.py:277
↓ 1 callersFunctionflow2rgb
Convert flow map to RGB image. Args: flow (ndarray): Array of optical flow. color_wheel (ndarray or None): Color wheel used to ma
annotator/uniformer/mmcv/visualization/optflow.py:24
↓ 1 callersFunctionflowread
Read an optical flow map. Args: flow_or_path (ndarray or str): A flow map or filepath. quantize (bool): whether to read quantized
annotator/uniformer/mmcv/video/optflow.py:12
↓ 1 callersMethodformat_results
Format the results into dir (standard format for Cityscapes evaluation). Args: results (list): Testing results of the dat
annotator/uniformer/mmseg/datasets/cityscapes.py:91
↓ 1 callersMethodforward
Forward function.
annotator/uniformer/mmseg/models/decode_heads/ocr_head.py:119
↓ 1 callersMethodforward
Forward function.
annotator/uniformer/mmseg/models/decode_heads/da_head.py:142
↓ 1 callersMethodforward
(self, x)
annotator/midas/midas/dpt_depth.py:67
↓ 1 callersMethodforward_features
(self, x)
annotator/uniformer/mmseg/models/backbones/uniformer.py:383
↓ 1 callersFunctionforward_vit
(pretrained, x)
annotator/midas/midas/vit.py:56
↓ 1 callersMethodfromstring
Generate config from config str. Args: cfg_str (str): Config str. file_format (str): Config file format corresponding
annotator/uniformer/mmcv/utils/config.py:338
↓ 1 callersFunctionfused_bias_leakyrelu
Fused bias leaky ReLU function. This function is introduced in the StyleGAN2: http://arxiv.org/abs/1912.04958 The bias term comes from t
annotator/uniformer/mmcv/ops/fused_bias_leakyrelu.py:225
↓ 1 callersFunctiongenerate_grid
Generate regular square grid of points in [0, 1] x [0, 1] coordinate space. Args: num_grid (int): The number of grids to sample, one
annotator/uniformer/mmcv/ops/point_sample.py:116
↓ 1 callersMethodget
(self, filepath)
annotator/uniformer/mmcv/fileio/file_client.py:694
↓ 1 callersMethodget_ann_info
Get annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specified index.
annotator/uniformer/mmseg/datasets/custom.py:158
↓ 1 callersFunctionget_build_config
()
annotator/uniformer/mmcv/utils/parrots_wrapper.py:33
↓ 1 callersMethodget_classes_and_palette
Get class names of current dataset. Args: classes (Sequence[str] | str | None): If classes is None, use default C
annotator/uniformer/mmseg/datasets/custom.py:243
↓ 1 callersFunctionget_compiler_version
()
annotator/uniformer/mmcv/ops/info.py:10
↓ 1 callersFunctionget_compiling_cuda_version
()
annotator/uniformer/mmcv/ops/info.py:13
↓ 1 callersFunctionget_deprecated_model_names
()
annotator/uniformer/mmcv/runner/checkpoint.py:142
↓ 1 callersFunctionget_deprecated_model_names
()
annotator/uniformer/mmcv_custom/checkpoint.py:205
↓ 1 callersFunctionget_external_models
()
annotator/uniformer/mmcv/runner/checkpoint.py:121
↓ 1 callersFunctionget_external_models
()
annotator/uniformer/mmcv_custom/checkpoint.py:184
↓ 1 callersFunctionget_fake_func
(name, e)
annotator/uniformer/mmcv/utils/ext_loader.py:41
↓ 1 callersFunctionget_git_hash
Get the git hash of the current repo. Args: fallback (str, optional): The fallback string when git hash is unavailable. Defau
annotator/uniformer/mmcv/utils/version_utils.py:66
↓ 1 callersMethodget_gt_seg_maps
Get ground truth segmentation maps for evaluation.
annotator/uniformer/mmseg/datasets/custom.py:230
↓ 1 callersFunctionget_input_device
(input)
annotator/uniformer/mmcv/parallel/_functions.py:51
↓ 1 callersMethodget_lr_tags
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/base.py:92
↓ 1 callersFunctionget_mmcls_models
()
annotator/uniformer/mmcv/runner/checkpoint.py:135
↓ 1 callersFunctionget_mmcls_models
()
annotator/uniformer/mmcv_custom/checkpoint.py:198
↓ 1 callersFunctionget_model_list
()
hf_utils.py:25
↓ 1 callersMethodget_momentum_tags
(self, runner)
annotator/uniformer/mmcv/runner/hooks/logger/base.py:102
↓ 1 callersFunctionget_onnxruntime_op_path
()
annotator/uniformer/mmcv/ops/info.py:27
↓ 1 callersFunctionget_palette
Get class palette (RGB) of a dataset.
annotator/uniformer/mmseg/core/evaluation/class_names.py:138
← previousnext →401–500 of 1,788, ranked by callers