MCPcopy Create free account

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

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

↓ 2 callersMethod_derive_coco_results
Derive the desired score numbers from summarized COCOeval. Args: coco_eval (None or COCOEval): None represents no predic
detectron2/evaluation/coco_evaluation.py:323
↓ 2 callersMethod_do_eval
(self)
detectron2/engine/hooks.py:528
↓ 2 callersMethod_draw_text_in_mask
Find proper places to draw text given a binary mask.
detectron2/utils/visualizer.py:1251
↓ 2 callersMethod_ema_update
Apply EMA update to `self.name` using `value`. This is mainly used for loss normalizer. In Detectron1, loss is normalized by number
detectron2/modeling/meta_arch/dense_detector.py:160
↓ 2 callersMethod_extract_iuv
Extract arrays of I, U and V values at given points as numpy arrays given the data mode stored in self._dpDataMode
densepose/evaluation/densepose_coco_evaluation.py:583
↓ 2 callersMethod_extract_mask
(self, dt: Dict[str, Any])
densepose/evaluation/densepose_coco_evaluation.py:538
↓ 2 callersFunction_extract_u_from_iuvarr
(iuv_arr)
densepose/vis/densepose_results.py:82
↓ 2 callersFunction_extract_v_from_iuvarr
(iuv_arr)
densepose/vis/densepose_results.py:86
↓ 2 callersMethod_forward_box
Forward logic of the box prediction branch. If `self.train_on_pred_boxes is True`, the function puts predicted boxes in the `prop
detectron2/modeling/roi_heads/roi_heads.py:780
↓ 2 callersMethod_forward_box
Args: features, targets: the same as in Same as in :meth:`ROIHeads.forward`. proposals (list[Instance
detectron2/modeling/roi_heads/cascade_rcnn.py:153
↓ 2 callersMethod_forward_densepose
Forward logic of the densepose prediction branch. Args: features (dict[str, Tensor]): input data as a mapping from featu
densepose/modeling/roi_heads/roi_head.py:129
↓ 2 callersFunction_get_args_from_config
Use `from_config` to obtain explicit arguments. Returns: dict: arguments to be used for cls.__init__
detectron2/config/config.py:218
↓ 2 callersMethod_get_augmented_inputs
(self, input)
detectron2/modeling/test_time_augmentation.py:239
↓ 2 callersFunction_get_cityscapes_files
(image_dir, gt_dir)
detectron2/data/datasets/cityscapes.py:27
↓ 2 callersFunction_get_device_type
(torch_tensor)
detectron2/export/caffe2_export.py:87
↓ 2 callersMethod_get_embeddings_and_geodists_for_mesh
Produces embeddings and geodesic distance tensors for a given mesh. May subsample the mesh, if it contains too many vertices (control
densepose/modeling/losses/cycle_shape2shape.py:68
↓ 2 callersFunction_get_global_gloo_group
Return a process group based on gloo backend, containing all the ranks The result is cached.
detectron2/utils/comm.py:127
↓ 2 callersMethod_get_layer_name
(self, i: int)
densepose/modeling/roi_heads/v1convx.py:64
↓ 2 callersMethod_get_layer_name
(self, i: int)
densepose/modeling/roi_heads/deeplab.py:75
↓ 2 callersMethod_get_rpn_conv
(self, in_channels, out_channels)
detectron2/modeling/proposal_generator/rpn.py:126
↓ 2 callersFunction_get_script_mod
(mod)
detectron2/export/torchscript.py:75
↓ 2 callersFunction_get_warmup_factor_at_iter
Return the learning rate warmup factor at a specific iteration. See :paper:`ImageNet in 1h` for more details. Args: method (str)
detectron2/solver/lr_scheduler.py:221
↓ 2 callersFunction_has
(name: str)
detectron2/config/compat.py:91
↓ 2 callersFunction_highlight
(code, filename)
detectron2/engine/defaults.py:160
↓ 2 callersFunction_ignore_torch_cuda_oom
A context which ignores CUDA OOM exception from pytorch.
detectron2/utils/memory.py:12
↓ 2 callersFunction_import_file
(module_name, file_path, make_importable=False)
detectron2/utils/env.py:50
↓ 2 callersFunction_inherits
(subClass, superClass)
resource/js/bulma-carousel.js:481
↓ 2 callersMethod_is_range_spec
(self, field_value_or_range)
densepose/utils/dbhelper.py:135
↓ 2 callersFunction_is_tracing
()
detectron2/modeling/proposal_generator/proposal_utils.py:13
↓ 2 callersFunction_linear_interpolation_utilities
Computes utility values for linear interpolation at points v. The points are given as normalized offsets in the source interval (v0_src,
densepose/modeling/losses/utils.py:18
↓ 2 callersFunction_list_to_str
(bsize)
detectron2/export/shared.py:514
↓ 2 callersMethod_log_time
(self, msg, avg, all_times, distributed=False)
detectron2/data/benchmark.py:106
↓ 2 callersFunction_longest_common_prefix
["abc.zfg", "abc.zef"] -> "abc."
detectron2/checkpoint/c2_model_loading.py:371
↓ 2 callersFunction_longest_common_prefix_str
(names: List[str])
detectron2/checkpoint/c2_model_loading.py:382
↓ 2 callersMethod_mask_to_boundary
(self, mask: np.ndarray, dilation_ratio=0.02)
detectron2/evaluation/sem_seg_evaluation.py:254
↓ 2 callersFunction_maybe_add_class_to_mesh_name_map_to_metadata
(dataset_names: List[str], cfg: CfgNode)
densepose/data/build.py:309
↓ 2 callersFunction_maybe_create_general_keep_instance_predicate
(cfg: CfgNode)
densepose/data/build.py:152
↓ 2 callersMethod_merge_detections
(self, all_boxes, all_scores, all_classes, shape_hw)
detectron2/modeling/test_time_augmentation.py:262
↓ 2 callersFunction_op_stats
(net_def)
detectron2/export/caffe2_export.py:70
↓ 2 callersFunction_possibleConstructorReturn
(self, call)
resource/js/bulma-carousel.js:479
↓ 2 callersMethod_prepare
Prepare ._gts and ._dts for evaluation based on params :return: None
densepose/evaluation/densepose_coco_evaluation.py:184
↓ 2 callersMethod_prepare_latent_image_ids
(batch_size, height, width, device, dtype)
model/flux/pipeline_flux_tryon.py:197
↓ 2 callersFunction_print_panoptic_results
(pq_res)
detectron2/evaluation/panoptic_evaluation.py:168
↓ 2 callersMethod_produce_index_sample
Abstract method to produce a sample of indices to select data To be implemented in descendants Args: values (tor
densepose/data/samplers/densepose_base.py:96
↓ 2 callersFunction_random_package_name
(filename)
detectron2/config/lazy.py:97
↓ 2 callersMethod_reduce_pred_masks
(self, outputs, tfms)
detectron2/modeling/test_time_augmentation.py:298
↓ 2 callersFunction_replace_list
(blob_list, replaced_list)
detectron2/export/shared.py:500
↓ 2 callersMethod_rescale_detected_boxes
(self, augmented_inputs, merged_instances, tfms)
detectron2/modeling/test_time_augmentation.py:282
↓ 2 callersMethod_sample_proposals
Based on the matching between N proposals and M groundtruth, sample the proposals and set their classification labels. Args:
detectron2/modeling/roi_heads/roi_heads.py:181
↓ 2 callersMethod_shared_roi_transform
(self, features: List[torch.Tensor], boxes: List[Boxes])
detectron2/modeling/roi_heads/roi_heads.py:455
↓ 2 callersMethod_subsample_labels
Randomly sample a subset of positive and negative examples, and overwrite the label vector to the ignore value (-1) for all elements
detectron2/modeling/proposal_generator/rpn.py:287
↓ 2 callersFunction_transform_to_aug
Wrap Transform into Augmentation. Private, used internally to implement augmentations.
detectron2/data/transforms/augmentation.py:232
↓ 2 callersMethod_turn_off_roi_heads
Open a context where some heads in `model.roi_heads` are temporarily turned off. Args: attr (list[str]): the attribute in
detectron2/modeling/test_time_augmentation.py:137
↓ 2 callersMethod_update_best
(self, val, iteration)
detectron2/engine/hooks.py:251
↓ 2 callersFunction_update_i
(op, ssa_i)
detectron2/export/shared.py:421
↓ 2 callersFunction_validate_py_syntax
(filename)
detectron2/config/lazy.py:74
↓ 2 callersMethod_write_metrics
( self, loss_dict: Mapping[str, torch.Tensor], data_time: float, prefix: str =
detectron2/engine/train_loop.py:358
↓ 2 callersMethodaccumulate
Accumulate per image evaluation results and store the result in self.eval. Does not support changing parameter settings from those u
detectron2/evaluation/fast_eval_api.py:98
↓ 2 callersFunctionadd_decomposed_rel_pos
Calculate decomposed Relative Positional Embeddings from :paper:`mvitv2`. https://github.com/facebookresearch/mvit/blob/19786631e330df9f3622e
detectron2/modeling/backbone/utils.py:96
↓ 2 callersFunctionadd_ground_truth_to_proposals
Call `add_ground_truth_to_proposals_single_image` for all images. Args: gt(Union[List[Instances], List[Boxes]): list of N elements.
detectron2/modeling/proposal_generator/proposal_utils.py:138
↓ 2 callersMethodafter_train
Called after the last iteration.
detectron2/engine/train_loop.py:62
↓ 2 callersMethodapply_coords
(self, coords)
detectron2/data/transforms/transform.py:272
↓ 2 callersMethodarea
(self)
detectron2/utils/visualizer.py:143
↓ 2 callersFunctionassert_fx_safe
An FX-tracing safe version of assert. Avoids erroneous type assertion triggering when types are masked inside an fx.proxy.Proxy object during
detectron2/utils/tracing.py:45
↓ 2 callersFunctionbatched_nms_rotated
Performs non-maximum suppression in a batched fashion. Each index value correspond to a category, and NMS will not be applied between el
detectron2/layers/nms.py:97
↓ 2 callersMethodboxlist_to_tensor
(boxlist, output_box_dim)
detectron2/evaluation/rotated_coco_evaluation.py:34
↓ 2 callersMethodbuild_evaluator
( cls, cfg: CfgNode, dataset_name: str, output_folder: Optional[str] = None,
densepose/engine/trainer.py:150
↓ 2 callersFunctionbuild_mask_head
Build a mask head defined by `cfg.MODEL.ROI_MASK_HEAD.NAME`.
detectron2/modeling/roi_heads/mask_head.py:293
↓ 2 callersMethodbuild_model
Returns: torch.nn.Module: It now calls :func:`detectron2.modeling.build_model`. Overwrite it if you'd like a dif
detectron2/engine/defaults.py:510
↓ 2 callersFunctionbuild_proposal_generator
Build a proposal generator from `cfg.MODEL.PROPOSAL_GENERATOR.NAME`. The name can be "PrecomputedProposals" to use no proposal generator.
detectron2/modeling/proposal_generator/build.py:15
↓ 2 callersFunctionbuild_resnet_backbone
Create a ResNet instance from config. Returns: ResNet: a :class:`ResNet` instance.
detectron2/modeling/backbone/resnet.py:614
↓ 2 callersFunctionbuild_sem_seg_head
Build a semantic segmentation head from `cfg.MODEL.SEM_SEG_HEAD.NAME`.
detectron2/modeling/meta_arch/semantic_seg.py:134
↓ 2 callersMethodbuild_train_loader
Returns: iterable It now calls :func:`detectron2.data.build_detection_train_loader`. Overwrite it if you'd like
detectron2/engine/defaults.py:543
↓ 2 callersFunctioncaffe2_fast_rcnn_outputs_inference
equivalent to FastRCNNOutputLayers.inference
detectron2/export/c10.py:379
↓ 2 callersFunctioncaffe2_keypoint_rcnn_inference
(use_heatmap_max_keypoint, pred_keypoint_logits, pred_instances)
detectron2/export/c10.py:545
↓ 2 callersFunctioncaffe2_mask_rcnn_inference
equivalent to mask_head.mask_rcnn_inference
detectron2/export/c10.py:529
↓ 2 callersFunctioncl
(c)
resource/js/fontawesome.all.min.js:5
↓ 2 callersMethodcleanup_annotation
(annotation)
densepose/structures/data_relative.py:160
↓ 2 callersMethodclip
Clip (in place) the boxes by limiting x coordinates to the range [0, width] and y coordinates to the range [0, height]. For
detectron2/structures/rotated_boxes.py:255
↓ 2 callersFunctioncollect_env_info
()
detectron2/utils/collect_env.py:55
↓ 2 callersFunctioncombine_detection_dataset_dicts
Load and prepare dataset dicts for training / testing Args: dataset_names (Collection[str]): a list of dataset names keep_in
densepose/data/build.py:372
↓ 2 callersMethodcomputeOgps_single_pair_cse
( self, dt, gt, py, px, pt_mask, coarse_segm, embedding, bbox_xywh_abs )
densepose/evaluation/densepose_coco_evaluation.py:689
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
densepose/modeling/hrnet.py:26
↓ 2 callersFunctionconvert_image_to_rgb
Convert an image from given format to RGB. Args: image (np.ndarray or Tensor): an HWC image format (str): the format of inpu
detectron2/data/detection_utils.py:93
↓ 2 callersFunctionconvert_scripted_instances
Convert a scripted Instances object to a regular :class:`Instances` object
detectron2/utils/testing.py:80
↓ 2 callersFunctioncreate_dummy_class
When a dependency of a class is not available, create a dummy class which throws ImportError when used. Args: klass (str): name
detectron2/utils/develop.py:8
↓ 2 callersFunctioncreate_dummy_func
When a dependency of a function is not available, create a dummy function which throws ImportError when used. Args: func (str):
detectron2/utils/develop.py:37
↓ 2 callersMethodcreate_rotation_matrix
(self, offset=0)
detectron2/data/transforms/transform.py:223
↓ 2 callersMethodcrop_and_resize
Crop each bitmask by the given box, and resize results to (mask_size, mask_size). This can be used to prepare training targets for Ma
detectron2/structures/masks.py:191
↓ 2 callersFunctiondc
(c)
resource/js/fontawesome.all.min.js:5
↓ 2 callersMethoddraw_polygon
Args: segment: numpy array of shape Nx2, containing all the points in the polygon. color: color of the polygon. Refer
detectron2/utils/visualizer.py:1128
↓ 2 callersMethoddraw_sem_seg
Draw semantic segmentation predictions/labels. Args: sem_seg (Tensor or ndarray): the segmentation of shape (H, W).
detectron2/utils/visualizer.py:448
↓ 2 callersFunctionel
(c)
resource/js/fontawesome.all.min.js:5
↓ 2 callersFunctioneval
(args)
eval.py:108
↓ 2 callersMethodevaluate
Evaluate/summarize the performance, after processing all input/output pairs. Returns: dict: A new evalua
detectron2/evaluation/evaluator.py:50
↓ 2 callersMethodevaluate
(self, img_ids=None)
densepose/evaluation/evaluator.py:122
↓ 2 callersMethodextract_and_check_outputs_and_boxes
(self, outputs_boxes_xywh_classes)
densepose/vis/densepose_outputs_vertex.py:99
↓ 2 callersFunctionextract_data_for_mask_loss_from_matches
Extract data for mask loss from instances that contain matched GT and estimated bounding boxes. Args: proposals_targets: Iterable
densepose/modeling/losses/mask.py:25
↓ 2 callersMethodextract_id_from_filename
(self, filename)
eval.py:22
↓ 2 callersMethodextract_iuv_from_raw
(self, dt, gt, py, px, pt_mask)
densepose/evaluation/densepose_coco_evaluation.py:662
← previousnext →301–400 of 2,283, ranked by callers