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
↓ 3 callers
Function
_to_container
mmdet will assert the type of dict/list. So convert omegaconf objects to dict/list.
detectron2/modeling/mmdet_wrapper.py:21
↓ 3 callers
Function
_try_get_key
Try select keys from cfg until the first key that exists. Otherwise return default.
detectron2/engine/defaults.py:146
↓ 3 callers
Function
_updater_raise
(op, input_types, output_types)
detectron2/export/shared.py:375
↓ 3 callers
Method
after_backward
Called after the backward pass of each iteration.
detectron2/engine/train_loop.py:74
↓ 3 callers
Method
apply_image
(self, img)
detectron2/data/transforms/transform.py:269
↓ 3 callers
Method
apply_segmentation
(self, segmentation)
detectron2/data/transforms/transform.py:278
↓ 3 callers
Method
backward
(ctx, grad_output)
detectron2/layers/deform_conv.py:85
↓ 3 callers
Function
build_box_head
Build a box head defined by `cfg.MODEL.ROI_BOX_HEAD.NAME`.
detectron2/modeling/roi_heads/box_head.py:113
↓ 3 callers
Method
computeOgps_single_pair_iuv
(self, dt, gt, ipoints, upoints, vpoints)
densepose/evaluation/densepose_coco_evaluation.py:676
↓ 3 callers
Function
conv3x3
3x3 convolution with padding
model/SCHP/networks/AugmentCE2P.py:35
↓ 3 callers
Function
convert_batched_inputs_to_c2_format
See get_caffe2_inputs() below.
detectron2/export/caffe2_modeling.py:107
↓ 3 callers
Function
detect_compute_compatibility
(CUDA_HOME, so_file)
detectron2/utils/collect_env.py:34
↓ 3 callers
Method
device
(self)
detectron2/structures/masks.py:115
↓ 3 callers
Method
draw_binary_mask
Args: binary_mask (ndarray): numpy array of shape (H, W), where H is the image height and W is the image width. E
detectron2/utils/visualizer.py:1049
↓ 3 callers
Method
draw_text
Args: text (str): class label position (tuple): a tuple of the x and y coordinates to place text on image.
detectron2/utils/visualizer.py:864
↓ 3 callers
Function
e
()
resource/js/bulma-carousel.min.js:1
↓ 3 callers
Function
e
()
resource/js/bulma-slider.min.js:1
↓ 3 callers
Function
extract_scores_from_instances
(instances: Instances, select=None)
densepose/vis/extractor.py:26
↓ 3 callers
Function
f
(p)
densepose/structures/transform_data.py:15
↓ 3 callers
Method
forward_with_given_boxes
Use the given boxes in `instances` to produce other (non-box) per-ROI outputs. Args: features: same as in `forward()`
detectron2/modeling/roi_heads/roi_heads.py:502
↓ 3 callers
Method
from_cfg
(cfg: CfgNode)
densepose/modeling/confidence.py:64
↓ 3 callers
Function
gather
Run gather on arbitrary picklable data (not necessarily tensors). Args: data: any picklable object dst (int): destination ra
detectron2/utils/comm.py:163
↓ 3 callers
Method
get
Returns the field called `name`.
detectron2/structures/instances.py:96
↓ 3 callers
Function
get_consumer_map
Return dict from versioned blob to list of (i, j), where i is index of consumer op, j is the index of input of that op.
detectron2/export/shared.py:332
↓ 3 callers
Function
get_detection_dataset_dicts
Load and prepare dataset dicts for instance detection/segmentation and semantic segmentation. Args: names (str or list[str]): a data
detectron2/data/build.py:217
↓ 3 callers
Function
get_lvis_instances_meta
Load LVIS metadata. Args: dataset_name (str): LVIS dataset name without the split name (e.g., "lvis_v0.5"). Returns: di
detectron2/data/datasets/lvis.py:168
↓ 3 callers
Function
get_producer_map
Return dict from versioned blob to (i, j), where i is index of producer op, j is the index of output of that op.
detectron2/export/shared.py:319
↓ 3 callers
Method
get_transform
(self, image)
detectron2/data/transforms/augmentation_impl.py:128
↓ 3 callers
Function
get_version
(module, digit=2)
detectron2/utils/env.py:83
↓ 3 callers
Method
histories
Returns: dict[name -> HistoryBuffer]: the HistoryBuffer for all scalars
detectron2/utils/events.py:437
↓ 3 callers
Function
image_grid
(imgs, rows, cols)
app.py:92
↓ 3 callers
Function
infer_device_type
Return the device type ("cpu" or "gpu"/"cuda") of each (versioned) blob
detectron2/export/shared.py:454
↓ 3 callers
Method
inference
Run inference on the given inputs. Args: batched_inputs (list[dict]): same as in :meth:`forward` detected_in
detectron2/modeling/meta_arch/rcnn.py:178
↓ 3 callers
Function
init_weight_dtype
(wight_dtype)
utils.py:150
↓ 3 callers
Method
inverse
(self)
detectron2/data/transforms/transform.py:275
↓ 3 callers
Function
is_main_process
()
detectron2/utils/comm.py:102
↓ 3 callers
Method
label_and_sample_proposals
Prepare some proposals to be used to train the ROI heads. It performs box matching between `proposals` and `targets`, and assigns
detectron2/modeling/roi_heads/roi_heads.py:220
↓ 3 callers
Method
load
(self, path, *args, **kwargs)
detectron2/checkpoint/detection_checkpoint.py:34
↓ 3 callers
Function
load_coco_json
Load a json file with COCO's instances annotation format. Currently supports instance detection, instance segmentation, and person keypoi
detectron2/data/datasets/coco.py:35
↓ 3 callers
Function
load_sem_seg
Load semantic segmentation datasets. All files under "gt_root" with "gt_ext" extension are treated as ground truth annotations and all files
detectron2/data/datasets/coco.py:235
↓ 3 callers
Method
load_state_dict
(self, state_dict)
detectron2/engine/train_loop.py:528
↓ 3 callers
Function
locate
Locate and return an object ``x`` using an input string ``{x.__module__}.{x.__qualname__}``, such as "module.submodule.class_name". Rais
detectron2/utils/registry.py:40
↓ 3 callers
Method
losses
Args: predictions: return values of :meth:`forward()`. proposals (list[Instances]): proposals that match the features
detectron2/modeling/roi_heads/fast_rcnn.py:307
↓ 3 callers
Function
min_torch_version
Returns True when torch's version is at least `min_version`.
detectron2/utils/testing.py:165
↓ 3 callers
Function
n
(c,l)
resource/js/fontawesome.all.min.js:5
↓ 3 callers
Function
pairwise_iou_rotated
Return intersection-over-union (Jaccard index) of boxes. Both sets of boxes are expected to be in (x_center, y_center, width, height, an
detectron2/layers/rotated_boxes.py:6
↓ 3 callers
Function
polygons_to_bitmask
Args: polygons (list[ndarray]): each array has shape (Nx2,) height, width (int) Returns: ndarray: a bool mask of sha
detectron2/structures/masks.py:22
↓ 3 callers
Method
predict_probs
Args: predictions: return values of :meth:`forward()`. proposals (list[Instances]): proposals that match the features
detectron2/modeling/roi_heads/fast_rcnn.py:549
↓ 3 callers
Method
produce_fake_densepose_losses
Fake losses for fine segmentation and U/V coordinates. These are used when no suitable ground truth data was found in a batch. The lo
densepose/modeling/losses/chart.py:141
↓ 3 callers
Method
put_image
Add an `img_tensor` associated with `img_name`, to be shown on tensorboard. Args: img_name (str): The name of th
detectron2/utils/events.py:341
↓ 3 callers
Method
put_scalars
Put multiple scalars from keyword arguments. Examples: storage.put_scalars(loss=my_loss, accuracy=my_accuracy, smoothin
detectron2/utils/events.py:386
↓ 3 callers
Function
qc
(c)
resource/js/fontawesome.all.min.js:5
↓ 3 callers
Method
remove_text_layers
(self)
model/flux/transformer_flux.py:236
↓ 3 callers
Function
rename_op_output
Rename the op_id-th operator in predict_net, change it's output_id-th input's name to the new_name. It also does automatic re-route and c
detectron2/export/shared.py:735
↓ 3 callers
Function
resample_fine_and_coarse_segm_to_bbox
Resample fine and coarse segmentation outputs from a predictor to the given bounding box and derive labels for each pixel of the bounding box
densepose/converters/segm_to_mask.py:67
↓ 3 callers
Function
save_graph
(net, file_name, graph_name="net", op_only=True, blob_sizes=None, blob_ranges=None)
detectron2/export/shared.py:529
↓ 3 callers
Method
set_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
model/flux/transformer_flux.py:409
↓ 3 callers
Method
summarize
Compute and display summary metrics for evaluation results given a custom value for max_dets_per_image
detectron2/evaluation/coco_evaluation.py:640
↓ 3 callers
Function
tc
(c,l)
resource/js/fontawesome.all.min.js:5
↓ 3 callers
Function
to_pil_image
(images)
inference.py:238
↓ 3 callers
Function
v
(c,l)
resource/js/fontawesome.all.min.js:5
↓ 3 callers
Function
vis_mask
(image, mask)
model/cloth_masker.py:120
↓ 3 callers
Function
wc
(c)
resource/js/fontawesome.all.min.js:5
↓ 2 callers
Function
Al
(n,V)
resource/js/fontawesome.all.min.js:5
↓ 2 callers
Function
Gc
(c,l,h)
resource/js/fontawesome.all.min.js:5
↓ 2 callers
Function
Hc
(c)
resource/js/fontawesome.all.min.js:5
↓ 2 callers
Function
Mc
(c,l)
resource/js/fontawesome.all.min.js:5
↓ 2 callers
Function
Oc
(c)
resource/js/fontawesome.all.min.js:5
↓ 2 callers
Function
Qc
(c,l)
resource/js/fontawesome.all.min.js:5
↓ 2 callers
Function
Sc
(c)
resource/js/fontawesome.all.min.js:5
↓ 2 callers
Function
W
(c)
resource/js/fontawesome.all.min.js:5
↓ 2 callers
Function
Zc
(c)
resource/js/fontawesome.all.min.js:5
↓ 2 callers
Function
Zl
()
resource/js/fontawesome.all.min.js:5
↓ 2 callers
Method
__enter__
(self)
detectron2/export/shared.py:141
↓ 2 callers
Method
__getitem__
(self, item)
densepose/structures/list.py:51
↓ 2 callers
Method
__init__
(self, buffers)
detectron2/modeling/anchor_generator.py:26
↓ 2 callers
Method
__init__
Args: img_size (int): Input image size. patch_kernel (tuple): kernel size for patch embedding. patch_stri
detectron2/modeling/backbone/mvit.py:276
↓ 2 callers
Method
__init__
Args: bottom_up (Backbone): module representing the bottom up subnetwork. Must be a subclass of :class:`Backbone`
detectron2/modeling/backbone/fpn.py:25
↓ 2 callers
Method
__init__
NOTE: this interface is experimental. Args: num_classes (int): number of foreground classes (i.e. background is not incl
detectron2/modeling/roi_heads/roi_heads.py:139
↓ 2 callers
Method
__init__
Args: cfg (CfgNode): torch_model (nn.Module): the detectron2 model (meta_arch) to be converted.
detectron2/export/caffe2_modeling.py:142
↓ 2 callers
Method
__init__
(self, sigma_lower_bound: float)
densepose/modeling/losses/chart_with_confidences.py:134
↓ 2 callers
Method
__init__
(self, inplace=True, cmap=cv2.COLORMAP_PARULA, alpha=0.7, **kwargs)
densepose/vis/densepose_results.py:335
↓ 2 callers
Function
__webpack_require__
(moduleId)
resource/js/bulma-slider.js:16
↓ 2 callers
Function
_add_category_maps_to_metadata
(cfg: CfgNode)
densepose/data/build.py:285
↓ 2 callers
Function
_add_category_whitelists_to_metadata
(cfg: CfgNode)
densepose/data/build.py:273
↓ 2 callers
Function
_assert_strides_are_log2_contiguous
Assert that each stride is 2x times its preceding stride, i.e. "contiguous in log2".
detectron2/modeling/backbone/fpn.py:178
↓ 2 callers
Method
_assign_colors
Naive tracking heuristics to assign same color to the same instance, will update the internal state of tracked instances. Re
detectron2/utils/video_visualizer.py:211
↓ 2 callers
Function
_assign_op_device_option
(net_proto, net_ssa, blob_device_types)
detectron2/export/caffe2_export.py:92
↓ 2 callers
Method
_best_checking
(self)
detectron2/engine/hooks.py:258
↓ 2 callers
Function
_build_weighted_sampler
(cfg, enable_category_balance=False)
detectron2/data/build.py:406
↓ 2 callers
Method
_caffe2_preprocess_image
Caffe2 implementation of preprocess_image, which is called inside each MetaArch's forward. It normalizes the input images, and the fi
detectron2/export/caffe2_modeling.py:199
↓ 2 callers
Method
_cal_im2col_step
Calculate proper im2col step size, which should be divisible by input_size and not larger than prefer_size. Meanwhile the step size s
detectron2/layers/deform_conv.py:165
↓ 2 callers
Function
_calculate_record_field_size_b
(data_schema: Dict[str, SizeData], field_name: str)
densepose/evaluation/tensor_storage.py:24
↓ 2 callers
Function
_called_with_cfg
Returns: bool: whether the arguments contain CfgNode and should be considered forwarded to from_config.
detectron2/config/config.py:251
↓ 2 callers
Function
_classCallCheck
(instance, Constructor)
resource/js/bulma-slider.js:90
↓ 2 callers
Method
_contours
(self, image_bgr, arr, segm, bbox_xywh)
densepose/vis/densepose_results.py:169
↓ 2 callers
Function
_create_grid_offsets
( size: List[int], stride: int, offset: float, target_device_tensor: torch.Tensor )
detectron2/modeling/anchor_generator.py:39
↓ 2 callers
Function
_create_zeros
( batch_target: Optional[torch.Tensor], channels: int, height: int, width: int, like_tenso
detectron2/modeling/poolers.py:102
↓ 2 callers
Method
_decode_multi_level_predictions
Run `_decode_per_level_predictions` for all feature levels and concat the results.
detectron2/modeling/meta_arch/dense_detector.py:235
↓ 2 callers
Method
_decode_proposals
Transform anchors into proposals by applying the predicted anchor deltas. Returns: proposals (list[Tensor]): A list of L
detectron2/modeling/proposal_generator/rpn.py:514
← previous
next →
201–300 of 2,283, ranked by callers