Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Zheng-Chong/CatVTON
/ functions
Functions
2,283 in github.com/Zheng-Chong/CatVTON
⨍
Functions
2,283
◇
Types & classes
416
↓ 2 callers
Function
extract_packed_annotations_from_matches
( proposals_with_targets: List[Instances], accumulator: AnnotationsAccumulator )
densepose/modeling/losses/utils.py:420
↓ 2 callers
Method
f
(batched_inputs, c2_inputs, c2_results)
detectron2/export/caffe2_modeling.py:385
↓ 2 callers
Method
fake_value
(self, densepose_predictor_outputs: Any, embedder: nn.Module, mesh_name: str)
densepose/modeling/losses/soft_embed.py:134
↓ 2 callers
Method
fake_value
(self, densepose_predictor_outputs: Any, embedder: nn.Module, mesh_name: str)
densepose/modeling/losses/embed.py:120
↓ 2 callers
Function
fast_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 callers
Function
fast_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 callers
Function
file2id
(folder_path, file_path)
detectron2/data/datasets/coco.py:263
↓ 2 callers
Method
find_spec
(self, name, path, target=None)
detectron2/projects/__init__.py:20
↓ 2 callers
Method
forward_inference
( self, images: ImageList, features: List[torch.Tensor], predictions: List[Lis
detectron2/modeling/meta_arch/fcos.py:253
↓ 2 callers
Method
freeze
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 callers
Method
from_config
(cls, cfg)
detectron2/modeling/roi_heads/roi_heads.py:167
↓ 2 callers
Method
from_matches
Args: packed_annotations: annotations packed into tensors, the following attributes are required:
densepose/modeling/losses/utils.py:106
↓ 2 callers
Function
get_3rd_point
(a, b)
model/SCHP/utils/transforms.py:144
↓ 2 callers
Function
get_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 callers
Function
get_bootstrap_dataset_config
()
densepose/config.py:59
↓ 2 callers
Method
get_centers
Returns: The box centers in a Nx2 array of (x, y).
detectron2/structures/boxes.py:264
↓ 2 callers
Function
get_cfg
Get a copy of the default config. Returns: a detectron2 CfgNode instance.
detectron2/config/config.py:99
↓ 2 callers
Function
get_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 callers
Function
get_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 callers
Function
get_code
(mod)
detectron2/export/torchscript.py:83
↓ 2 callers
Function
get_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 callers
Function
get_contiguous_id_to_category_id_map
(metadata)
densepose/data/datasets/coco.py:275
↓ 2 callers
Method
get_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 callers
Function
get_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 callers
Method
get_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 callers
Function
get_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 callers
Method
get_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 callers
Method
get_image_bgr_from_context
(self, context)
densepose/vis/densepose_results.py:45
↓ 2 callers
Function
get_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 callers
Function
get_pb_arg_valf
(pb, arg_name, default_val)
detectron2/export/shared.py:179
↓ 2 callers
Function
get_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 callers
Function
get_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 callers
Function
i
(t)
resource/js/bulma-slider.min.js:1
↓ 2 callers
Function
image_grid
(imgs, rows, cols)
app_flux.py:64
↓ 2 callers
Method
inference
Args: predictions: return values of :meth:`forward()`. proposals (list[Instances]): proposals that match the features
detectron2/modeling/roi_heads/fast_rcnn.py:465
↓ 2 callers
Function
inference_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 callers
Method
instance_masks
(self)
detectron2/utils/visualizer.py:220
↓ 2 callers
Function
instances_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 callers
Function
instantiate
Recursively instantiate objects defined in dictionaries by "_target_" and arguments. Args: cfg: a dict-like object with "_target
detectron2/config/instantiate.py:37
↓ 2 callers
Method
interp2d
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 callers
Function
isIFrame
(unknown)
resource/js/bulma-carousel.js:258
↓ 2 callers
Function
isNode
(unknown)
resource/js/bulma-carousel.js:249
↓ 2 callers
Function
is_fx_tracing
Returns whether execution is currently in Torch FX tracing mode
detectron2/utils/tracing.py:30
↓ 2 callers
Method
is_rotated
(box_list)
detectron2/evaluation/rotated_coco_evaluation.py:17
↓ 2 callers
Method
latest_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 callers
Method
list
List all registered datasets. Returns: list[str]
detectron2/data/catalog.py:60
↓ 2 callers
Method
load
Load data from a file Args: fpath (str): file path to load data from
densepose/modeling/cse/vertex_direct_embedder.py:53
↓ 2 callers
Method
load
Load data from a file Args: fpath (str): file path to load data from
densepose/modeling/cse/vertex_feature_embedder.py:64
↓ 2 callers
Function
load_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 callers
Function
load_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 callers
Function
load_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 callers
Function
load_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 callers
Function
load_mesh_auxiliary_data
( fpath: str, device: Optional[torch.device] = None )
densepose/structures/mesh.py:146
↓ 2 callers
Function
load_mesh_data
( mesh_fpath: str, field: str, device: Optional[torch.device] = None )
densepose/structures/mesh.py:136
↓ 2 callers
Function
load_mesh_symmetry
( symmetry_fpath: str, device: Optional[torch.device] = None )
densepose/structures/mesh.py:156
↓ 2 callers
Function
load_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 callers
Function
mask_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 callers
Method
mask_to_polygons
(self, mask)
detectron2/utils/visualizer.py:119
↓ 2 callers
Function
maybe_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 callers
Function
maybe_to_cpu
(x)
detectron2/utils/memory.py:57
↓ 2 callers
Method
merge_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 callers
Method
non_empty_mask
Returns: (H, W) array, a mask for all pixels that have a prediction
detectron2/utils/visualizer.py:196
↓ 2 callers
Function
numpy_to_pil
Convert a numpy image or a batch of images to a PIL image.
utils.py:238
↓ 2 callers
Function
o
(t)
resource/js/bulma-carousel.min.js:1
↓ 2 callers
Method
pack
Pack data into tensors
densepose/modeling/losses/utils.py:257
↓ 2 callers
Function
pairwise_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 callers
Function
patch
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 callers
Method
prepare_extra_step_kwargs
(self, generator, eta)
model/pipeline.py:90
↓ 2 callers
Function
print_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 callers
Function
print_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 callers
Method
produce_fake_losses
( self, densepose_predictor_outputs: Any, embedder: nn.Module )
densepose/modeling/losses/cse.py:97
↓ 2 callers
Function
ql
(c)
resource/js/fontawesome.all.min.js:5
↓ 2 callers
Method
repeat_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 callers
Function
resample_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 callers
Function
resample_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 callers
Function
resample_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 callers
Function
resample_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 callers
Method
run_safety_checker
(self, image)
model/pipeline.py:71
↓ 2 callers
Method
save
Args: filepath (str): a string that contains the absolute path, including the file name, where the visualized ima
detectron2/utils/visualizer.py:302
↓ 2 callers
Function
sc
(l,h)
resource/js/fontawesome.all.min.js:5
↓ 2 callers
Method
scale
Scale the box with horizontal and vertical scaling factors
detectron2/structures/boxes.py:271
↓ 2 callers
Function
scan_files_in_dir
(directory, postfix: Set[str] = None, progress_bar: tqdm = None)
utils.py:385
↓ 2 callers
Function
seed_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 callers
Function
sem_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 callers
Method
semantic_masks
(self)
detectron2/utils/visualizer.py:212
↓ 2 callers
Method
set
(self, name, value)
detectron2/export/c10.py:76
↓ 2 callers
Function
setInterpolationImage
(i)
resource/js/index.js:15
↓ 2 callers
Function
shapes_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 callers
Method
state_dict
(self)
detectron2/engine/hooks.py:365
↓ 2 callers
Function
subsample_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 callers
Method
summarize
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 callers
Function
synchronize
Helper function to synchronize (barrier) among all processes when using distributed training
detectron2/utils/comm.py:106
↓ 2 callers
Function
tl
(c)
resource/js/fontawesome.all.min.js:5
↓ 2 callers
Method
to
(self, device)
densepose/structures/list.py:33
↓ 2 callers
Method
to
(self, device)
densepose/structures/data_relative.py:77
↓ 2 callers
Method
to_bitmasks
Args: see documentation of :func:`paste_masks_in_image`.
detectron2/structures/masks.py:520
↓ 2 callers
Method
to_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 callers
Function
ul
(c)
resource/js/fontawesome.all.min.js:5
↓ 2 callers
Method
visualize
(self, image_bgr, boxes_xywh)
densepose/vis/bounding_box.py:11
↓ 2 callers
Function
vl
()
resource/js/fontawesome.all.min.js:5
← previous
next →
401–500 of 2,283, ranked by callers