MCPcopy Create free account

hub / github.com/AIFSH/IMAGDressing-ComfyUI / functions

Functions2,064 in github.com/AIFSH/IMAGDressing-ComfyUI

↓ 2 callersMethodadd_parser
(cls: type, subparsers: argparse._SubParsersAction)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/apply_net.py:133
↓ 2 callersMethodadd_parser
(cls: type, subparsers: argparse._SubParsersAction)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/query_db.py:140
↓ 2 callersFunctionadd_pointrend_config
Add config for PointRend.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/PointRend/point_rend/config.py:7
↓ 2 callersFunctionalign_and_update_state_dicts
Match names between the two state-dict, and update the values of model_state_dict in-place with copies of the matched tensor in ckpt_state_di
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/checkpoint/c2_model_loading.py:211
↓ 2 callersMethodapply_segmentation
(self, segmentation)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/transforms/transform.py:66
↓ 2 callersMethodapply_segmentation
(self, segmentation)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/PointRend/point_rend/color_augmentation.py:46
↓ 2 callersMethodarea
(self)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:136
↓ 2 callersFunctionassemble_rcnn_outputs_by_name
A function to assemble caffe2 model's outputs (i.e. Dict[str, Tensor]) to detectron2's format (i.e. list of Instances instance). This onl
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/caffe2_modeling.py:29
↓ 2 callersMethodboxlist_to_tensor
(boxlist, output_box_dim)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/evaluation/rotated_coco_evaluation.py:34
↓ 2 callersFunctionbuild_lr_scheduler
Build a LR scheduler from config.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/solver/build.py:140
↓ 2 callersFunctionbuild_point_head
Build a point head defined by `cfg.MODEL.POINT_HEAD.NAME`.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/PointRend/point_rend/point_head.py:149
↓ 2 callersFunctionbuild_resnet_backbone
Create a ResNet instance from config. Returns: ResNet: a :class:`ResNet` instance.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/backbone/resnet.py:508
↓ 2 callersFunctionbuild_sem_seg_head
Build a semantic segmentation head from `cfg.MODEL.SEM_SEG_HEAD.NAME`.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/meta_arch/semantic_seg.py:94
↓ 2 callersMethodbuild_train_loader
Returns: iterable It now calls :func:`detectron2.data.build_detection_train_loader`. Overwrite it if you'd like
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/engine/defaults.py:443
↓ 2 callersFunctioncalculate_uncertainty
We estimate uncerainty as L1 distance between 0.0 and the logit prediction in 'logits' for the foreground class in `classes`. Args:
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/PointRend/point_rend/roi_heads.py:25
↓ 2 callersMethodcleanup_annotation
(annotation)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/data/structures.py:132
↓ 2 callersMethodclear
Remove all registered dataset.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/catalog.py:75
↓ 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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/data/build.py:234
↓ 2 callersFunctioncombine_semantic_and_instance_outputs
Implement a simple combining logic following "combine_semantic_and_instance_predictions.py" in panopticapi to produce panoptic segmentati
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/meta_arch/panoptic_fpn.py:133
↓ 2 callersMethodcontrast
(self, img)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/PointRend/point_rend/color_augmentation.py:77
↓ 2 callersMethodconvert_frozen_batchnorm
Convert BatchNorm/SyncBatchNorm in module into FrozenBatchNorm. Args: module (torch.nn.Module): Returns:
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/batch_norm.py:96
↓ 2 callersFunctionconvert_to_coco_dict
Convert an instance detection/segmentation or keypoint detection dataset in detectron2's standard format into COCO json format. Generic
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/datasets/coco.py:272
↓ 2 callersMethodcreate_rotation_matrix
(self, offset=0)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/transforms/transform.py:186
↓ 2 callersFunctiondetect_compute_compatibility
(CUDA_HOME, so_file)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/collect_env.py:34
↓ 2 callersFunctiondowngrade_config
Downgrade a config from its current version to an older version. Args: cfg (CfgNode): to_version (int): Note: A
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/config/compat.py:55
↓ 2 callersMethoddraw_panoptic_seg_predictions
Draw panoptic prediction results on an image. Args: panoptic_seg (Tensor): of shape (height, width) where the values are
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:415
↓ 2 callersMethoddraw_polygon
Args: segment: numpy array of shape Nx2, containing all the points in the polygon. color: color of the polygon. Refer
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:1008
↓ 2 callersMethodencode_prompt
( self, prompt, device, num_images_per_prompt, do_
imagdressing/dressing_sd/pipelines/IMAGDressing_v1_pipeline_controlnet.py:132
↓ 2 callersMethodencode_prompt
( self, prompt, device, num_images_per_prompt, do_
imagdressing/dressing_sd/pipelines/IMAGDressing_v1_pipeline_ipa_controlnet.py:162
↓ 2 callersMethodevaluate
Run per image evaluation on given images and store results (a list of dict) in self.evalImgs :return: None
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/densepose_coco_evaluation.py:278
↓ 2 callersMethodexecute_on_entry
(cls: type, entry: Dict[str, Any], context: Dict[str, Any])
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/query_db.py:162
↓ 2 callersMethodexport_caffe2
Export the model to Caffe2's protobuf format. The returned object can be saved with `.save_protobuf()` method. The result can
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/api.py:97
↓ 2 callersMethodexport_onnx
Export the model to ONNX format. Note that the exported model contains custom ops only available in caffe2, therefore it cann
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/api.py:110
↓ 2 callersFunctionextend_arm_mask
(wrist, elbow, scale)
imagdressing/preprocess/utils_mask.py:26
↓ 2 callersFunctionextract_clothing_keypoints
(image_path)
imagdressing/metric/eval.py:9
↓ 2 callersFunctionextract_clothing_keypoints
(image_path)
imagdressing/metric/eval_s.py:20
↓ 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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/fast_rcnn.py:80
↓ 2 callersFunctionfile2id
(folder_path, file_path)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/datasets/coco.py:224
↓ 2 callersFunctionfilter_images_with_few_keypoints
Filter out images with too few number of keypoints. Args: dataset_dicts (list[dict]): annotations in Detectron2 Dataset format.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/build.py:69
↓ 2 callersFunctionfind_top_rpn_proposals
For each feature map, select the `pre_nms_topk` highest scoring proposals, apply NMS, clip proposals, and remove small boxes. Return the `pos
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/proposal_generator/rpn_outputs.py:48
↓ 2 callersFunctionflatten_probas
Flattens predictions in the batch
imagdressing/preprocess/humanparsing/utils/soft_dice_loss.py:54
↓ 2 callersFunctionflatten_probas
Flattens predictions in the batch
imagdressing/preprocess/humanparsing/utils/lovasz_softmax.py:217
↓ 2 callersMethodforward
Args: input: NCHW images rois: Bx6 boxes. First column is the index into N. The other 5 columns are (
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/roi_align_rotated.py:70
↓ 2 callersMethodforward
(self, tensors: Sequence[torch.Tensor])
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/structures/test_imagelist.py:13
↓ 2 callersMethodfrom_cfg
(cfg: CfgNode)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/densepose_head.py:60
↓ 2 callersFunctionfunc
(dev, n=1)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/structures/test_rotated_boxes.py:335
↓ 2 callersMethodfunc
(input)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/layers/test_roi_align_rotated.py:121
↓ 2 callersFunctiongenerate_edge_tensor
(label, edge_width=3)
imagdressing/preprocess/humanparsing/datasets/target_generation.py:5
↓ 2 callersFunctionget_3rd_point
(a, b)
imagdressing/preprocess/humanparsing/utils/transforms.py:144
↓ 2 callersFunctionget_cityscapes_files
(image_dir, gt_dir)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/datasets/cityscapes.py:27
↓ 2 callersFunctionget_confusion_matrix
Calcute the confusion matrix by given label and pred :param gt_label: the ground truth label :param pred_label: the pred label :param
imagdressing/preprocess/humanparsing/utils/miou.py:41
↓ 2 callersFunctionget_detection_dataset_dicts
Load and prepare dataset dicts for instance detection/segmentation and semantic segmentation. Args: dataset_names (list[str]): a lis
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/build.py:209
↓ 2 callersMethodget_fields
Returns: dict: a dict which maps names (str) to data of the fields Modifying the returned dict will modify this instance
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/instances.py:95
↓ 2 callersMethodget_lr
(self)
imagdressing/preprocess/humanparsing/utils/warmup_scheduler.py:49
↓ 2 callersFunctionget_lvis_instances_meta
Load LVIS metadata. Args: dataset_name (str): LVIS dataset name without the split name (e.g., "lvis_v0.5"). Returns: di
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/datasets/lvis.py:148
↓ 2 callersFunctionget_model_zoo
Like model_zoo.get, but do not load any weights (even pretrained)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/test_model_analysis.py:13
↓ 2 callersFunctionget_model_zoo
Like model_zoo.get, but do not load any weights (even pretrained)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/modeling/test_model_e2e.py:14
↓ 2 callersFunctionget_rank
()
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/comm.py:29
↓ 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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:750
↓ 2 callersFunctionget_uncertain_point_coords_on_grid
Find `num_points` most uncertain points from `uncertainty_map` grid. Args: uncertainty_map (Tensor): A tensor of shape (N, 1, H, W)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/PointRend/point_rend/point_features.py:119
↓ 2 callersFunctionget_uncertain_point_coords_with_randomness
Sample points in [0, 1] x [0, 1] coordinate space based on their uncertainty. The unceratinties are calculated for each point using 'unce
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/PointRend/point_rend/point_features.py:63
↓ 2 callersMethodhue
(self, img)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/PointRend/point_rend/color_augmentation.py:91
↓ 2 callersMethodinference
Deprecated
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/fast_rcnn.py:327
↓ 2 callersFunctioninitialize_module_params
(module)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/densepose_head.py:70
↓ 2 callersMethodinstance_masks
(self)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:186
↓ 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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/evaluation/coco_evaluation.py:303
↓ 2 callersFunctioninvert_affine
imagdressing/preprocess/humanparsing/modules/src/inplace_abn_cpu.cpp:37
↓ 2 callersMethodis_rotated
(box_list)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/events.py:359
↓ 2 callersMethodlayers
Neural network layers that makes predictions from input features.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/mask_head.py:187
↓ 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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/datasets/cityscapes.py:95
↓ 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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/datasets/lvis.py:39
↓ 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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/build.py:103
↓ 2 callersFunctionload_sem_seg
Load semantic segmentation data. All files under "gt_root" with "gt_ext" extension are treated as ground truth annotations and all files unde
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/datasets/coco.py:196
↓ 2 callersMethodlosses
Return the losses from a set of RPN predictions and their associated ground-truth. Returns: dict[loss name -> loss value
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/proposal_generator/rpn_outputs.py:258
↓ 2 callersFunctionlovasz_hinge_flat
Binary Lovasz hinge loss logits: [P] Variable, logits at each prediction (between -\infty and +\infty) labels: [P] Tensor, binary gro
imagdressing/preprocess/humanparsing/utils/lovasz_softmax.py:105
↓ 2 callersFunctionlovasz_softmax_flat
Multi-class Lovasz-Softmax loss probas: [P, C] Variable, class probabilities at each prediction (between 0 and 1) labels: [P] Tensor,
imagdressing/preprocess/humanparsing/utils/lovasz_softmax.py:183
↓ 2 callersFunctionmask_rcnn_loss
Compute the mask prediction loss defined in the Mask R-CNN paper. Args: pred_mask_logits (Tensor): A tensor of shape (B, C, Hmask, W
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/mask_head.py:23
↓ 2 callersMethodmask_to_polygons
(self, mask)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:115
↓ 2 callersFunctionmaybe_to_cpu
(x)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/memory.py:59
↓ 2 callersFunctionmerge_branch_instances
Merge detection results from different branches of TridentNet. Return detection results by applying non-maximum suppression (NMS) on bounding
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/TridentNet/tridentnet/trident_rcnn.py:8
↓ 2 callersMethodmock_roi_heads
Patching several inference functions inside ROIHeads and its subclasses Args: tensor_mode (bool): whether the inputs/out
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/patcher.py:121
↓ 2 callersFunctionmoving_average
(target1, target2, alpha=1.0)
imagdressing/preprocess/humanparsing/utils/criterion.py:130
↓ 2 callersMethodnon_empty_mask
Returns: (H, W) array, a mask for all pixels that have a prediction
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:162
↓ 2 callersMethodnormalize_angles
Restrict angles to the range of [-180, 180) degrees
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/rotated_boxes.py:246
↓ 2 callersFunctionnormalized_coords_transform
Coordinates transform that maps top left corner to (-1, -1) and bottom right corner to (1, 1). Used for torch.grid_sample to initialize the
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/data/structures.py:192
↓ 2 callersFunctionoutput
(vis, fname)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tools/visualize_data.py:56
↓ 2 callersFunctionpatch
recursively (post-order) update all modules with the target type and its subclasses, make a initialization/composition/inheritance/... via th
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/patcher.py:57
↓ 2 callersFunctionpatch2img_output
transform bbox patch outputs to image output
imagdressing/preprocess/humanparsing/mhp_extension/logits_fusion.py:117
↓ 2 callersFunctionpatch_generalized_rcnn
(model)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/patcher.py:70
↓ 2 callersFunctionpermute_all_cls_and_box_to_N_HWA_K_and_concat
Rearrange the tensor layout from the network output, i.e.: list[Tensor]: #lvl tensors of shape (N, A x K, Hi, Wi) to per-image prediction
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/meta_arch/retinanet.py:37
↓ 2 callersMethodpredict_objectness_logits
Return objectness logits in the same format as the proposals returned by :meth:`predict_proposals`. Returns: pre
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/proposal_generator/rpn_outputs.py:314
↓ 2 callersMethodpredict_proposals
Transform anchors into proposals by applying the predicted anchor deltas. Returns: proposals (list[Tensor]): A list of L
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/proposal_generator/rpn_outputs.py:293
↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
imagdressing/dressing_sd/pipelines/IMAGDressing_v1_pipeline_controlnet_inpainting.py:81
↓ 2 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
imagdressing/dressing_sd/pipelines/IMAGDressing_v1_pipeline.py:103
↓ 2 callersMethodprepare_latents
( self, batch_size, num_channels_latents, width, h
imagdressing/dressing_sd/pipelines/IMAGDressing_v1_pipeline.py:277
↓ 2 callersMethodpreprocess_image
Normalize, pad and batch the input images.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/meta_arch/rcnn.py:180
↓ 2 callersFunctionprint_instances_class_histogram
Args: dataset_dicts (list[dict]): list of dataset dicts. class_names (list[str]): list of class names (zero-indexed).
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/build.py:164
↓ 2 callersFunctionrandom_boxes
(mean_box, stdev, N)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/modeling/test_box2box_transform.py:11
← previousnext →301–400 of 2,064, ranked by callers