MCPcopy Create free account

hub / github.com/Zheng-Chong/CatVTON / functions

Functions2,283 in github.com/Zheng-Chong/CatVTON

↓ 2 callersFunctionextract_packed_annotations_from_matches
( proposals_with_targets: List[Instances], accumulator: AnnotationsAccumulator )
densepose/modeling/losses/utils.py:420
↓ 2 callersMethodf
(batched_inputs, c2_inputs, c2_results)
detectron2/export/caffe2_modeling.py:385
↓ 2 callersMethodfake_value
(self, densepose_predictor_outputs: Any, embedder: nn.Module, mesh_name: str)
densepose/modeling/losses/soft_embed.py:134
↓ 2 callersMethodfake_value
(self, densepose_predictor_outputs: Any, embedder: nn.Module, mesh_name: str)
densepose/modeling/losses/embed.py:120
↓ 2 callersFunctionfast_rcnn_inference
Call `fast_rcnn_inference_single_image` for all images. Args: boxes (list[Tensor]): A list of Tensors of predicted class-specific or
detectron2/modeling/roi_heads/fast_rcnn.py:46
↓ 2 callersFunctionfast_rcnn_inference_single_image
Single-image inference. Return bounding-box detection results by thresholding on scores and applying non-maximum suppression (NMS). Args
detectron2/modeling/roi_heads/fast_rcnn.py:118
↓ 2 callersFunctionfile2id
(folder_path, file_path)
detectron2/data/datasets/coco.py:263
↓ 2 callersMethodfind_spec
(self, name, path, target=None)
detectron2/projects/__init__.py:20
↓ 2 callersMethodforward_inference
( self, images: ImageList, features: List[torch.Tensor], predictions: List[Lis
detectron2/modeling/meta_arch/fcos.py:253
↓ 2 callersMethodfreeze
Make this block not trainable. This method sets all parameters to `requires_grad=False`, and convert all BatchNorm layers to
detectron2/layers/blocks.py:43
↓ 2 callersMethodfrom_config
(cls, cfg)
detectron2/modeling/roi_heads/roi_heads.py:167
↓ 2 callersMethodfrom_matches
Args: packed_annotations: annotations packed into tensors, the following attributes are required:
densepose/modeling/losses/utils.py:106
↓ 2 callersFunctionget_3rd_point
(a, b)
model/SCHP/utils/transforms.py:144
↓ 2 callersFunctionget_abs_pos
Calculate absolute positional embeddings. If needed, resize embeddings and remove cls_token dimension for the original embeddings. Ar
detectron2/modeling/backbone/utils.py:128
↓ 2 callersFunctionget_bootstrap_dataset_config
()
densepose/config.py:59
↓ 2 callersMethodget_centers
Returns: The box centers in a Nx2 array of (x, y).
detectron2/structures/boxes.py:264
↓ 2 callersFunctionget_cfg
Get a copy of the default config. Returns: a detectron2 CfgNode instance.
detectron2/config/config.py:99
↓ 2 callersFunctionget_checkpoint_url
Returns the URL to the model trained using the given config Args: config_path (str): config file name relative to detectron2's "conf
detectron2/model_zoo/model_zoo.py:111
↓ 2 callersFunctionget_closest_vertices_mask_from_ES
Interpolate Embeddings and Segmentations to the size of a given bounding box, and compute closest vertices and the segmentation mask Arg
densepose/modeling/cse/utils.py:40
↓ 2 callersFunctionget_code
(mod)
detectron2/export/torchscript.py:83
↓ 2 callersFunctionget_config
Returns a config object for a model in model zoo. Args: config_path (str): config file name relative to detectron2's "configs/"
detectron2/model_zoo/model_zoo.py:147
↓ 2 callersFunctionget_contiguous_id_to_category_id_map
(metadata)
densepose/data/datasets/coco.py:275
↓ 2 callersMethodget_crop_size
Args: image_size (tuple): height, width Returns: crop_size (tuple): height, width in absolute pixels
detectron2/data/transforms/augmentation_impl.py:408
↓ 2 callersFunctionget_default_optimizer_params
Get default param list for optimizer, with support for a few types of overrides. If no overrides needed, this is equivalent to `model.paramet
detectron2/solver/build.py:142
↓ 2 callersMethodget_deltas
Get box regression transformation deltas (dx, dy, dw, dh) that can be used to transform the `src_boxes` into the `target_boxes`. That
detectron2/modeling/box_regression.py:43
↓ 2 callersFunctionget_fed_loss_cls_weights
Get frequency weight for each class sorted by class id. We now calcualte freqency weight using image_count to the power freq_weight_power.
detectron2/data/detection_utils.py:549
↓ 2 callersMethodget_fields
Returns: dict: a dict which maps names (str) to data of the fields Modifying the returned dict will modify this instance
detectron2/structures/instances.py:102
↓ 2 callersMethodget_image_bgr_from_context
(self, context)
densepose/vis/densepose_results.py:45
↓ 2 callersFunctionget_metadata
Returns metadata associated with COCO DensePose datasets Args: base_path: Optional[str] Base path used to load metadata from
densepose/data/datasets/coco.py:133
↓ 2 callersFunctionget_pb_arg_valf
(pb, arg_name, default_val)
detectron2/export/shared.py:179
↓ 2 callersFunctionget_rel_pos
Get relative positional embeddings according to the relative positions of query and key sizes. Args: q_size (int): size of qu
detectron2/modeling/backbone/utils.py:63
↓ 2 callersFunctionget_sub_graph_external_input_output
Return the list of external input/output of sub-graph, each element is tuple of the name and corresponding version in predict_net. exter
detectron2/export/shared.py:756
↓ 2 callersFunctioni
(t)
resource/js/bulma-slider.min.js:1
↓ 2 callersFunctionimage_grid
(imgs, rows, cols)
app_flux.py:64
↓ 2 callersMethodinference
Args: predictions: return values of :meth:`forward()`. proposals (list[Instances]): proposals that match the features
detectron2/modeling/roi_heads/fast_rcnn.py:465
↓ 2 callersFunctioninference_on_dataset
Run model on the data_loader and evaluate the metrics with evaluator. Also benchmark the inference speed of `model.__call__` accurately.
detectron2/evaluation/evaluator.py:103
↓ 2 callersMethodinstance_masks
(self)
detectron2/utils/visualizer.py:220
↓ 2 callersFunctioninstances_to_coco_json
Dump an "Instances" object to a COCO-format json that's used for evaluation. Args: instances (Instances): img_id (int): the
detectron2/evaluation/coco_evaluation.py:392
↓ 2 callersFunctioninstantiate
Recursively instantiate objects defined in dictionaries by "_target_" and arguments. Args: cfg: a dict-like object with "_target
detectron2/config/instantiate.py:37
↓ 2 callersMethodinterp2d
Bilinear interpolation method to be used for upscaling Args: tensor_nchw (tensor): tensor of shape (N, C, H, W)
densepose/modeling/predictors/cse.py:47
↓ 2 callersFunctionisIFrame
(unknown)
resource/js/bulma-carousel.js:258
↓ 2 callersFunctionisNode
(unknown)
resource/js/bulma-carousel.js:249
↓ 2 callersFunctionis_fx_tracing
Returns whether execution is currently in Torch FX tracing mode
detectron2/utils/tracing.py:30
↓ 2 callersMethodis_rotated
(box_list)
detectron2/evaluation/rotated_coco_evaluation.py:17
↓ 2 callersMethodlatest_with_smoothing_hint
Similar to :meth:`latest`, but the returned values are either the un-smoothed original latest value, or a median of the given
detectron2/utils/events.py:452
↓ 2 callersMethodlist
List all registered datasets. Returns: list[str]
detectron2/data/catalog.py:60
↓ 2 callersMethodload
Load data from a file Args: fpath (str): file path to load data from
densepose/modeling/cse/vertex_direct_embedder.py:53
↓ 2 callersMethodload
Load data from a file Args: fpath (str): file path to load data from
densepose/modeling/cse/vertex_feature_embedder.py:64
↓ 2 callersFunctionload_cityscapes_instances
Args: image_dir (str): path to the raw dataset. e.g., "~/cityscapes/leftImg8bit/train". gt_dir (str): path to the raw annotations
detectron2/data/datasets/cityscapes.py:53
↓ 2 callersFunctionload_cityscapes_semantic
Args: image_dir (str): path to the raw dataset. e.g., "~/cityscapes/leftImg8bit/train". gt_dir (str): path to the raw annotations
detectron2/data/datasets/cityscapes.py:95
↓ 2 callersFunctionload_coco_panoptic_json
Args: image_dir (str): path to the raw dataset. e.g., "~/coco/train2017". gt_dir (str): path to the raw annotations. e.g., "~/coc
detectron2/data/datasets/coco_panoptic.py:14
↓ 2 callersFunctionload_lvis_json
Load a json file in LVIS's annotation format. Args: json_file (str): full path to the LVIS json annotation file. image_root
detectron2/data/datasets/lvis.py:41
↓ 2 callersFunctionload_mesh_auxiliary_data
( fpath: str, device: Optional[torch.device] = None )
densepose/structures/mesh.py:146
↓ 2 callersFunctionload_mesh_data
( mesh_fpath: str, field: str, device: Optional[torch.device] = None )
densepose/structures/mesh.py:136
↓ 2 callersFunctionload_mesh_symmetry
( symmetry_fpath: str, device: Optional[torch.device] = None )
densepose/structures/mesh.py:156
↓ 2 callersFunctionload_proposals_into_dataset
Load precomputed object proposals into the dataset. The proposal file should be a pickled dict with the following keys: - "ids": list[i
detectron2/data/build.py:111
↓ 2 callersFunctionmask_rcnn_inference
Convert pred_mask_logits to estimated foreground probability masks while also extracting only the masks for the predicted classes in pred_ins
detectron2/modeling/roi_heads/mask_head.py:115
↓ 2 callersMethodmask_to_polygons
(self, mask)
detectron2/utils/visualizer.py:119
↓ 2 callersFunctionmaybe_add_gradient_clipping
If gradient clipping is enabled through config options, wraps the existing optimizer type to become a new dynamically created class Optimizer
detectron2/solver/build.py:83
↓ 2 callersFunctionmaybe_to_cpu
(x)
detectron2/utils/memory.py:57
↓ 2 callersMethodmerge_from_file
Load content from the given config file and merge it into self. Args: cfg_filename: config filename allow_un
detectron2/config/config.py:37
↓ 2 callersMethodnon_empty_mask
Returns: (H, W) array, a mask for all pixels that have a prediction
detectron2/utils/visualizer.py:196
↓ 2 callersFunctionnumpy_to_pil
Convert a numpy image or a batch of images to a PIL image.
utils.py:238
↓ 2 callersFunctiono
(t)
resource/js/bulma-carousel.min.js:1
↓ 2 callersMethodpack
Pack data into tensors
densepose/modeling/losses/utils.py:257
↓ 2 callersFunctionpairwise_intersection
Given two lists of boxes of size N and M, compute the intersection area between __all__ N x M pairs of boxes. The box order must be (xmin
detectron2/structures/boxes.py:312
↓ 2 callersFunctionpatch
recursively (post-order) update all modules with the target type and its subclasses, make a initialization/composition/inheritance/... via th
detectron2/export/caffe2_patch.py:60
↓ 2 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
model/pipeline.py:90
↓ 2 callersFunctionprint_csv_format
Print main metrics in a format similar to Detectron, so that they are easy to copypaste into a spreadsheet. Args: results (Order
detectron2/evaluation/testing.py:9
↓ 2 callersFunctionprint_instances_class_histogram
Args: dataset_dicts (list[dict]): list of dataset dicts. class_names (list[str]): list of class names (zero-indexed).
detectron2/data/build.py:165
↓ 2 callersMethodproduce_fake_losses
( self, densepose_predictor_outputs: Any, embedder: nn.Module )
densepose/modeling/losses/cse.py:97
↓ 2 callersFunctionql
(c)
resource/js/fontawesome.all.min.js:5
↓ 2 callersMethodrepeat_factors_from_category_frequency
Compute (fractional) per-image repeat factors based on category frequency. The repeat factor for an image is a function of the freque
detectron2/data/samplers/distributed_sampler.py:159
↓ 2 callersFunctionresample_coarse_segm_tensor_to_bbox
Resample coarse segmentation tensor to the given bounding box and derive labels for each pixel of the bounding box Args: coarse_
densepose/converters/segm_to_mask.py:15
↓ 2 callersFunctionresample_fine_and_coarse_segm_tensors_to_bbox
Resample fine and coarse segmentation tensors to the given bounding box and derive labels for each pixel of the bounding box Args:
densepose/converters/segm_to_mask.py:34
↓ 2 callersFunctionresample_uv_tensors_to_bbox
Resamples U and V coordinate estimates for the given bounding box Args: u (tensor [1, C, H, W] of float): U coordinates v (t
densepose/converters/chart_output_to_chart_result.py:20
↓ 2 callersFunctionresample_uv_to_bbox
Resamples U and V coordinate estimates for the given bounding box Args: predictor_output (DensePoseChartPredictorOutput): DensePose
densepose/converters/chart_output_to_chart_result.py:50
↓ 2 callersMethodrun_safety_checker
(self, image)
model/pipeline.py:71
↓ 2 callersMethodsave
Args: filepath (str): a string that contains the absolute path, including the file name, where the visualized ima
detectron2/utils/visualizer.py:302
↓ 2 callersFunctionsc
(l,h)
resource/js/fontawesome.all.min.js:5
↓ 2 callersMethodscale
Scale the box with horizontal and vertical scaling factors
detectron2/structures/boxes.py:271
↓ 2 callersFunctionscan_files_in_dir
(directory, postfix: Set[str] = None, progress_bar: tqdm = None)
utils.py:385
↓ 2 callersFunctionseed_all_rng
Set the random seed for the RNG in torch, numpy and python. Args: seed (int): if None, will use a strong random seed.
detectron2/utils/env.py:27
↓ 2 callersFunctionsem_seg_postprocess
Return semantic segmentation predictions in the original resolution. The input images are often resized when entering semantic segmentor. Mo
detectron2/modeling/postprocessing.py:77
↓ 2 callersMethodsemantic_masks
(self)
detectron2/utils/visualizer.py:212
↓ 2 callersMethodset
(self, name, value)
detectron2/export/c10.py:76
↓ 2 callersFunctionsetInterpolationImage
(i)
resource/js/index.js:15
↓ 2 callersFunctionshapes_to_tensor
Turn a list of integer scalars or integer Tensor scalars into a vector, in a way that's both traceable and scriptable. In tracing, `x` s
detectron2/layers/wrappers.py:20
↓ 2 callersMethodstate_dict
(self)
detectron2/engine/hooks.py:365
↓ 2 callersFunctionsubsample_labels
Return `num_samples` (or fewer, if not enough found) random samples from `labels` which is a mixture of positives & negatives. It will tr
detectron2/modeling/sampling.py:9
↓ 2 callersMethodsummarize
Compute and display summary metrics for evaluation results. Note this function can *only* be applied on the default parameter setting
densepose/evaluation/densepose_coco_evaluation.py:1031
↓ 2 callersFunctionsynchronize
Helper function to synchronize (barrier) among all processes when using distributed training
detectron2/utils/comm.py:106
↓ 2 callersFunctiontl
(c)
resource/js/fontawesome.all.min.js:5
↓ 2 callersMethodto
(self, device)
densepose/structures/list.py:33
↓ 2 callersMethodto
(self, device)
densepose/structures/data_relative.py:77
↓ 2 callersMethodto_bitmasks
Args: see documentation of :func:`paste_masks_in_image`.
detectron2/structures/masks.py:520
↓ 2 callersMethodto_d2_instances_list
Convert InstancesList to List[Instances]. The input `instances_list` can also be a List[Instances], in this case this method is a non
detectron2/export/c10.py:110
↓ 2 callersFunctionul
(c)
resource/js/fontawesome.all.min.js:5
↓ 2 callersMethodvisualize
(self, image_bgr, boxes_xywh)
densepose/vis/bounding_box.py:11
↓ 2 callersFunctionvl
()
resource/js/fontawesome.all.min.js:5
← previousnext →401–500 of 2,283, ranked by callers