MCPcopy Create free account

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

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

↓ 3 callersFunctionextract_scores_from_instances
(instances: Instances, select=None)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/vis/extractor.py:17
↓ 3 callersFunctionf
()
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tools/benchmark.py:104
↓ 3 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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/fast_rcnn.py:45
↓ 3 callersFunctionflatten_binary_scores
Flattens predictions in the batch (binary case) Remove labels equal to 'ignore'
imagdressing/preprocess/humanparsing/utils/lovasz_softmax.py:125
↓ 3 callersFunctionflop_count_operators
Implement operator-level flops counting using jit. This is a wrapper of fvcore.nn.flop_count, that supports standard detection models in
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/analysis.py:55
↓ 3 callersMethodforward
(self, x)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/wrappers.py:62
↓ 3 callersMethodforward_with_given_boxes
Use the given boxes in `instances` to produce other (non-box) per-ROI outputs. Args: features: same as in `forward()`
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/roi_heads.py:450
↓ 3 callersFunctionfunc
(device, n=3)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/layers/test_mask_ops.py:169
↓ 3 callersFunctionget_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.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:327
↓ 3 callersMethodget_crop_size
Args: image_size (tuple): height, width Returns: crop_size (tuple): height, width in absolute pixels
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/transforms/transform_gen.py:328
↓ 3 callersFunctionget_empty_instance
(h, w)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/modeling/test_model_e2e.py:33
↓ 3 callersMethodget_fields
like `get_fields` in the Instances object, but return each field in tensor representations
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/c10.py:58
↓ 3 callersFunctionget_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.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:314
↓ 3 callersMethodget_transform
(self, img)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/transforms/transform_gen.py:140
↓ 3 callersFunctionget_version
(module, digit=2)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/env.py:66
↓ 3 callersFunctioninfer_device_type
Return the device type ("cpu" or "gpu"/"cuda") of each (versioned) blob
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:448
↓ 3 callersMethodinference
Arguments: pred_logits, pred_deltas, pred_masks: Same as the output of: meth:`TensorMaskHead.forward`
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/TensorMask/tensormask/arch.py:624
↓ 3 callersFunctioninference_on_dataset
Run model on the data_loader and evaluate the metrics with evaluator. Also benchmark the inference speed of `model.forward` accurately. T
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/evaluation/evaluator.py:101
↓ 3 callersFunctionis_main_process
()
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/comm.py:63
↓ 3 callersMethodlabel_and_sample_proposals
Prepare some proposals to be used to train the ROI heads. It performs box matching between `proposals` and `targets`, and assigns
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/roi_heads.py:219
↓ 3 callersFunctionlovasz_grad
Computes gradient of the Lovasz extension w.r.t sorted errors See Alg. 1 in paper
imagdressing/preprocess/humanparsing/utils/lovasz_softmax.py:29
↓ 3 callersFunctionmake_layers
(block, no_relu_layers)
imagdressing/preprocess/openpose/annotator/openpose/model.py:7
↓ 3 callersFunctionmake_stage
Create a list of blocks just like those in a ResNet stage. Args: block_class (type): a subclass of ResNetBlockBase num_block
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/backbone/resnet.py:336
↓ 3 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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/mask_head.py:105
↓ 3 callersFunctionnms_edit_distance
Compare the "keep" result of two nms call. They are allowed to be different in terms of edit distance due to floating point precision iss
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/layers/test_nms_rotated.py:11
↓ 3 callersFunctionpaste_masks_in_image
Paste a set of masks that are of a fixed resolution (e.g., 28 x 28) into an image. The location, height, and width for pasting each mask is d
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/mask_ops.py:67
↓ 3 callersFunctionpoint_sample_fine_grained_features
Get features from feature maps in `features_list` that correspond to specific point coordinates inside each bounding box from `boxes`.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/PointRend/point_rend/point_features.py:146
↓ 3 callersMethodpredict_probs
Deprecated
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/fast_rcnn.py:320
↓ 3 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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/evaluation/testing.py:10
↓ 3 callersMethodput_image
Add an `img_tensor` associated with `img_name`, to be shown on tensorboard. Args: img_name (str): The name of th
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/events.py:252
↓ 3 callersFunctionread_image
Read an image into the given format. Will apply rotation and flipping if the image has such exif information. Args: file_name (s
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/detection_utils.py:98
↓ 3 callersMethodreference_horizontal_nms
Args: box_scores (N, 5): boxes in corner-form and probabilities. (Note here 5 == 4 + 1, i.e., 4-dim horizontal bo
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/layers/test_nms_rotated.py:41
↓ 3 callersFunctionrename_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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:729
↓ 3 callersFunctionreshape_tensor
(x, heads)
imagdressing/adapter/resampler.py:23
↓ 3 callersMethodrun
(self)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/demo/predictor.py:149
↓ 3 callersFunctionsave_graph
(net, file_name, graph_name="net", op_only=True, blob_sizes=None, blob_ranges=None)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:523
↓ 3 callersFunctionsem_seg_postprocess
Return semantic segmentation predictions in the original resolution. The input images are often resized when entering semantic segmentor. Mo
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/postprocessing.py:56
↓ 3 callersFunctionsetup
(args)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tools/benchmark.py:34
↓ 3 callersMethodto_result
Convert DensePose outputs to results format. Results are more compact, but cannot be resampled any more
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/data/structures.py:373
↓ 3 callersFunctiontransform_logits
(logits, center, scale, width, height, input_size)
imagdressing/preprocess/humanparsing/utils/transforms.py:81
↓ 3 callersMethodvalidate_annotation
(annotation)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/data/structures.py:118
↓ 3 callersMethodvisualize
(self, image_bgr, txt, topleft_xy)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/vis/base.py:139
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000)
imagdressing/preprocess/humanparsing/networks/backbone/resnet.py:111
↓ 2 callersMethod__init__
(self, buffers=None)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/anchor_generator.py:25
↓ 2 callersMethod__init__
Args: bottom_up (Backbone): module representing the bottom up subnetwork. Must be a subclass of :class:`Backbone`
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/backbone/fpn.py:22
↓ 2 callersMethod__init__
NOTE: this interface is experimental. Args: num_classes (int): number of classes. Used to label background proposals.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/roi_heads.py:138
↓ 2 callersMethod__init__
Args: src_rect (x0, y0, x1, y1): src coordinates output_size (h, w): dst image size interp: PIL interpola
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/transforms/transform.py:30
↓ 2 callersFunction_act_backward
(ctx, x, dx)
imagdressing/preprocess/humanparsing/modules/functions.py:69
↓ 2 callersFunction_act_forward
(ctx, x)
imagdressing/preprocess/humanparsing/modules/functions.py:60
↓ 2 callersFunction_add_category_maps_to_metadata
(cfg: CfgNode)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/data/build.py:223
↓ 2 callersFunction_add_category_whitelists_to_metadata
(cfg: CfgNode)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/data/build.py:211
↓ 2 callersMethod_assign_colors
Naive tracking heuristics to assign same color to the same instance, will update the internal state of tracked instances. Re
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/video_visualizer.py:180
↓ 2 callersFunction_assign_op_device_option
(net_proto, net_ssa, blob_device_types)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/caffe2_export.py:96
↓ 2 callersMethod_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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/deform_conv.py:157
↓ 2 callersMethod_contours
(self, image_bgr, arr, segm, bbox_xywh)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/vis/densepose.py:159
↓ 2 callersFunction_create_grid_offsets
(size: List[int], stride: int, offset: float, device: torch.device)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/anchor_generator.py:43
↓ 2 callersMethod_derive_coco_results
Derive the desired score numbers from summarized COCOeval. Args: coco_eval (None or COCOEval): None represents no predic
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/evaluation/coco_evaluation.py:234
↓ 2 callersMethod_extract_mask
(self, dt: Dict[str, Any])
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/densepose_coco_evaluation.py:512
↓ 2 callersFunction_extract_u_from_iuvarr
(iuv_arr)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/vis/densepose.py:63
↓ 2 callersFunction_extract_v_from_iuvarr
(iuv_arr)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/vis/densepose.py:67
↓ 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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/roi_heads.py:706
↓ 2 callersMethod_forward_box
Args: features, targets: the same as in Same as in :meth:`ROIHeads.forward`. proposals (list[Instance
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/cascade_rcnn.py:153
↓ 2 callersMethod_forward_densepose
Forward logic of the densepose prediction branch. Args: features (list[Tensor]): #level input features for densepose pre
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/roi_head.py:125
↓ 2 callersMethod_forward_mask_coarse
Forward logic of the coarse mask head.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/PointRend/point_rend/roi_heads.py:139
↓ 2 callersMethod_forward_mask_point
Forward logic of the mask point head.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/PointRend/point_rend/roi_heads.py:155
↓ 2 callersMethod_get_augmented_boxes
(self, augmented_inputs, aug_vars)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/test_time_augmentation.py:220
↓ 2 callersMethod_get_augmented_inputs
(self, input)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/test_time_augmentation.py:205
↓ 2 callersFunction_get_device_type
(torch_tensor)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/caffe2_export.py:91
↓ 2 callersFunction_get_global_gloo_group
Return a process group based on gloo backend, containing all the ranks The result is cached.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/comm.py:83
↓ 2 callersMethod_get_layer_name
(self, i)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/densepose_head.py:131
↓ 2 callersMethod_get_layer_name
(self, i)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/densepose_head.py:353
↓ 2 callersFunction_get_model_config
Load and return the configuration from the specified file (relative to the base configuration directory)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/tests/common.py:81
↓ 2 callersFunction_get_warmup_factor_at_iter
Return the learning rate warmup factor at a specific iteration. See :paper:`in1k1h` for more details. Args: method (str): warmup
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/solver/lr_scheduler.py:90
↓ 2 callersFunction_has
(name: str)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/config/compat.py:91
↓ 2 callersFunction_ignore_torch_cuda_oom
A context which ignores CUDA OOM exception from pytorch.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/memory.py:12
↓ 2 callersMethod_is_range_spec
(self, field_value_or_range)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/utils/dbhelper.py:131
↓ 2 callersMethod_jitter
Randomly modifies given color to produce a slightly different color than the color given. Args: color (tuple[double]): a
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:1044
↓ 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,
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/densepose_head.py:573
↓ 2 callersFunction_list_to_str
(bsize)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:508
↓ 2 callersFunction_maybe_create_general_keep_instance_predicate
(cfg: CfgNode)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/data/build.py:91
↓ 2 callersMethod_merge_cfg_str
(self, cfg, merge_str)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/test_config.py:36
↓ 2 callersMethod_merge_detections
(self, all_boxes, all_scores, all_classes, shape_hw)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/test_time_augmentation.py:238
↓ 2 callersFunction_op_stats
(net_def)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/caffe2_export.py:74
↓ 2 callersFunction_pad_to_largest_tensor
Returns: list[int]: size of the tensor, on each rank Tensor: padded tensor that has the max size
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/comm.py:112
↓ 2 callersFunction_print_panoptic_results
(pq_res)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/evaluation/panoptic_evaluation.py:136
↓ 2 callersMethod_rand_range
Uniform float random number between low and high.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/transforms/transform_gen.py:78
↓ 2 callersMethod_reduce_pred_masks
(self, outputs, aug_vars)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/test_time_augmentation.py:279
↓ 2 callersFunction_replace_list
(blob_list, replaced_list)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:494
↓ 2 callersMethod_rescale_detected_boxes
(self, augmented_inputs, merged_instances, aug_vars)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/test_time_augmentation.py:258
↓ 2 callersMethod_sample_proposals
Based on the matching between N proposals and M groundtruth, sample the proposals and set their classification labels. Args:
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/roi_heads.py:180
↓ 2 callersFunction_serialize_to_tensor
(data, group)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/comm.py:94
↓ 2 callersMethod_shared_roi_transform
(self, features, boxes)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/roi_heads.py:409
↓ 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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/proposal_generator/rpn.py:152
↓ 2 callersMethod_test_roialignv2_roialignrotated_match
(self, device)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/modeling/test_roi_pooler.py:26
↓ 2 callersMethod_test_train
(self, input_sizes, instances)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/modeling/test_model_e2e.py:60
↓ 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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/test_time_augmentation.py:106
↓ 2 callersFunction_update_i
(op, ssa_i)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:415
↓ 2 callersFunction_wrapper_count_operators
( model: nn.Module, inputs: list, mode: str, **kwargs )
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/analysis.py:122
↓ 2 callersFunctionadd_dataset_category_config
Add config for additional category-related dataset options - category whitelisting - category mapping
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/config.py:7
↓ 2 callersFunctionadd_ground_truth_to_proposals
Call `add_ground_truth_to_proposals_single_image` for all images. Args: gt_boxes(list[Boxes]): list of N elements. Element i is a Bo
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/proposal_generator/proposal_utils.py:8
← previousnext →201–300 of 2,064, ranked by callers