MCPcopy Create free account

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

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

↓ 5 callersMethodconvert
(self, img, alpha=1, beta=0)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/PointRend/point_rend/color_augmentation.py:65
↓ 5 callersMethodget
(name)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/checkpoint/catalog.py:57
↓ 5 callersMethodget_deltas
Get box regression transformation deltas (dx, dy, dw, dh) that can be used to transform the `src_boxes` into the `target_boxes`. That
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/box_regression.py:64
↓ 5 callersMethodget_transform
(self, img)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/transforms/transform_gen.py:197
↓ 5 callersMethodinference
Arguments: box_cls, box_delta: Same as the output of :meth:`RetinaNetHead.forward` anchors (list[Boxes]): A list of #
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/meta_arch/retinanet.py:320
↓ 5 callersFunctionmean
nanmean compatible with generators.
imagdressing/preprocess/humanparsing/utils/lovasz_softmax.py:248
↓ 5 callersMethodrandomData
(self, h=5, w=5)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/data/test_rotation_transform.py:12
↓ 5 callersFunctionrandom_color
Args: rgb (bool): whether to return RGB colors or BGR colors. maximum (int): either 255 or 1 Returns: ndarray: a vec
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/colormap.py:111
↓ 5 callersMethodregister_hooks
Register hooks to the trainer. The hooks are executed in the order they are registered. Args: hooks (list[Option
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/engine/train_loop.py:98
↓ 5 callersMethodreset
Preparation for a new round of evaluation. Should be called before starting a round of evaluation.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/evaluation/evaluator.py:24
↓ 5 callersFunctionretry_if_cuda_oom
Makes a function retry itself after encountering pytorch's CUDA OOM error. It will first retry after calling `torch.cuda.empty_cache()`.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/memory.py:26
↓ 5 callersFunctionselect_foreground_proposals
Given a list of N Instances (for N images), each containing a `gt_classes` field, return a list of Instances that contain only instances with
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/roi_heads.py:46
↓ 5 callersMethodsummarize
Compute and display summary metrics for evaluation results. Note this function can *only* be applied on the default parameter setting
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/densepose_coco_evaluation.py:885
↓ 4 callersMethod__init__
( self, dim=1024, depth=8, dim_head=64, heads=16, num_queries=
imagdressing/adapter/resampler.py:171
↓ 4 callersMethod__init__
(self, in_channels, out_channels, key_channels, value_channels, dropout, sizes=([1]))
imagdressing/preprocess/humanparsing/networks/context_encoding/ocnet.py:107
↓ 4 callersMethod__init__
Args: stem (nn.Module): a stem module stages (list[list[CNNBlockBase]]): several (typically 4) stages,
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/backbone/resnet.py:402
↓ 4 callersMethod_change_color_brightness
Depending on the brightness_factor, gives a lighter or darker color i.e. a color with less or more saturation than the original color
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:1074
↓ 4 callersMethod_convert_xywh_to_xywha
(self, x)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/structures/test_boxes.py:18
↓ 4 callersMethod_convert_xywha_to_xyxy
(self, x)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/structures/test_boxes.py:15
↓ 4 callersMethod_create_grayscale_image
Create a grayscale version of the original image. The colors in masked area, if given, will be kept.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:1063
↓ 4 callersMethod_generate_rlemask_on_image
(self, mask, imgId, data)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/densepose_coco_evaluation.py:337
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilation=1, multi_grid=1)
imagdressing/preprocess/humanparsing/networks/AugmentCE2P.py:329
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, groups=1)
imagdressing/preprocess/humanparsing/networks/backbone/resnext.py:106
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
imagdressing/preprocess/humanparsing/networks/backbone/resnet.py:140
↓ 4 callersMethod_parse_error
(self, msg)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/utils/dbhelper.py:144
↓ 4 callersMethod_simple_roi_align_rotated
RoiAlignRotated with scale 1.0 and 0 sample ratio.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/layers/test_roi_align_rotated.py:87
↓ 4 callersMethod_test_model
(self, config_path, device="cpu")
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/test_export_caffe2.py:26
↓ 4 callersMethodaccumulate
Accumulate per image evaluation results and store the result in self.eval :param p: input params for evaluation :return: None
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/densepose_coco_evaluation.py:780
↓ 4 callersFunctionadd
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/csrc/ROIAlign/ROIAlign_cpu.cpp:282
↓ 4 callersFunctionadd
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp:195
↓ 4 callersFunctionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors). Args: data: any picklable object group: a torch proces
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/comm.py:139
↓ 4 callersMethodapply_coords
coords should be a N * 2 array-like, containing N couples of (x, y) points
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/transforms/transform.py:173
↓ 4 callersMethodapply_image
demo should be a numpy array, formatted as Height * Width * Nchannels
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/transforms/transform.py:163
↓ 4 callersMethodarea
Computes the area of all the boxes. Returns: torch.Tensor: a vector with areas of each box.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/rotated_boxes.py:235
↓ 4 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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/nms.py:99
↓ 4 callersFunctionbuild_anchor_generator
Built an anchor generator from `cfg.MODEL.ANCHOR_GENERATOR.NAME`.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/anchor_generator.py:377
↓ 4 callersFunctionbuild_roi_heads
Build ROIHeads defined by `cfg.MODEL.ROI_HEADS.NAME`.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/roi_heads.py:38
↓ 4 callersMethodclip
Clip (in place) the boxes by limiting x coordinates to the range [0, width] and y coordinates to the range [0, height]. For
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/rotated_boxes.py:252
↓ 4 callersMethodcomfyimage2Image
(self,comfyimage)
__init__.py:387
↓ 4 callersFunctioncount
imagdressing/preprocess/humanparsing/modules/src/inplace_abn_cpu.cpp:29
↓ 4 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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/masks.py:169
↓ 4 callersMethoddevice
(self)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/TensorMask/tensormask/arch.py:341
↓ 4 callersMethoddraw_line
Args: x_data (list[int]): a list containing x values of all the points being drawn. Length of list should match t
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:917
↓ 4 callersMethoddraw_sem_seg
Draw semantic segmentation predictions/labels. Args: sem_seg (Tensor or ndarray): the segmentation of shape (H, W).
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:379
↓ 4 callersMethodencode_prompt
( self, prompt, device, num_images_per_prompt, do_
imagdressing/dressing_sd/pipelines/IMAGDressing_v1_pipeline.py:126
↓ 4 callersFunctionextract_boxes_xywh_from_instances
(instances: Instances, select=None)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/vis/extractor.py:23
↓ 4 callersFunctionf
(p)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/data/structures.py:199
↓ 4 callersMethodforward
Args: input: NCHW images rois: Bx5 boxes. First column is the index into N. The other 4 columns are xyxy.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/roi_align.py:87
↓ 4 callersFunctionget_pb_arg_valf
(pb, arg_name, default_val)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:174
↓ 4 callersMethodhas
Returns: bool: whether the field called `name` exists.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/instances.py:76
↓ 4 callersMethodhistory
Returns: HistoryBuffer: the scalar history for name
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/events.py:335
↓ 4 callersFunctioninterpolate
A wrapper around :func:`torch.nn.functional.interpolate` to support zero-size tensor.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/wrappers.py:181
↓ 4 callersFunctionload_coco_json
Load a json file with COCO's instances annotation format. Currently supports instance detection, instance segmentation, and person keypoi
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/datasets/coco.py:28
↓ 4 callersMethodlosses
Compute the default losses for box head in Fast(er) R-CNN, with softmax cross entropy loss and smooth L1 loss. Returns:
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/fast_rcnn.py:301
↓ 4 callersMethodlosses
Args: For `gt_class_info`, `gt_delta_info`, `gt_mask_info` and `num_fg` parameters, see :meth:`TensorMask.get_gro
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/TensorMask/tensormask/arch.py:407
↓ 4 callersFunctionpolygons_to_bitmask
Args: polygons (list[ndarray]): each array has shape (Nx2,) height, width (int) Returns: ndarray: a bool mask of sha
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/masks.py:20
↓ 4 callersMethodpredict_boxes
Deprecated
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/fast_rcnn.py:314
↓ 4 callersMethodput
(self, image)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/demo/predictor.py:187
↓ 4 callersMethodput_scalars
Put multiple scalars from keyword arguments. Examples: storage.put_scalars(loss=my_loss, accuracy=my_accuracy, smoothin
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/events.py:294
↓ 4 callersFunctionreduce_sum
imagdressing/preprocess/humanparsing/modules/src/inplace_abn_cpu.cpp:8
↓ 4 callersMethodsmooth_l1_loss
Compute the smooth L1 loss for box regression. Returns: scalar Tensor
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/fast_rcnn.py:227
↓ 3 callersFunctionFeedForward
(dim, mult=4)
imagdressing/adapter/resampler.py:13
↓ 3 callersMethod__init__
Args: cfg (CfgNode): torch_model (nn.Module): the detectron2 model (meta_arch) to be converted.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/caffe2_modeling.py:144
↓ 3 callersMethod_batch_inference
Execute inference on a list of inputs, using batch size = self.batch_size, instead of the length of the list. Inputs & outpu
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/test_time_augmentation.py:131
↓ 3 callersMethod_box_to_rotated_box
(self, box, angle)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/layers/test_roi_align_rotated.py:15
↓ 3 callersMethod_caffe2_preprocess_image
Caffe2 implementation of preprocess_image, which is called inside each MetaArch's forward. It normalizes the input images, and the fi
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/caffe2_modeling.py:201
↓ 3 callersFunction_collect_config_files
Collect all configuration files (i.e. densepose_*.yaml) directly in the specified directory
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/tests/common.py:40
↓ 3 callersFunction_create_text_labels
Args: classes (list[int] or None): scores (list[float] or None): class_names (list[str] or None): Returns: l
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:196
↓ 3 callersMethod_detector_postprocess
(self, outputs, aug_vars)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/test_time_augmentation.py:163
↓ 3 callersFunction_find_caller
Returns: str: module name of the caller tuple: a hashable key to be used to identify different callers
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/logger.py:111
↓ 3 callersMethod_forward_keypoint
Forward logic of the keypoint prediction branch. Args: features (dict[str, Tensor]): mapping from feature map names to t
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/roi_heads.py:779
↓ 3 callersMethod_forward_mask
Forward logic of the mask prediction branch. Args: features (dict[str, Tensor]): mapping from feature map names to tenso
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/roi_heads.py:746
↓ 3 callersFunction_get_builtin_metadata
(dataset_name)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/datasets/builtin_meta.py:239
↓ 3 callersFunction_get_coco_instances_meta
()
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/datasets/builtin_meta.py:191
↓ 3 callersMethod_get_traceable
(self)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/api.py:90
↓ 3 callersMethod_postprocess
Rescale the output instances to the target size.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/meta_arch/rcnn.py:190
↓ 3 callersFunction_rename_versioned_blob_in_proto
In given proto, rename all blobs with matched version
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:631
↓ 3 callersMethod_test_setup
(self, config_file)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/tests/test_setup.py:14
↓ 3 callersFunction_updater_raise
(op, input_types, output_types)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:369
↓ 3 callersFunctionadd_densepose_config
Add config for densepose head.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/config.py:18
↓ 3 callersFunctionadd_export_config
Args: cfg (CfgNode): a detectron2 config Returns: CfgNode: an updated config with new options that will be used
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/api.py:27
↓ 3 callersMethodapply_coords
(self, coords)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/transforms/transform.py:52
↓ 3 callersFunctionapply_deltas_broadcast
Apply transform deltas to boxes. Similar to `box2box_transform.apply_deltas`, but allow broadcasting boxes when the second dimension of delta
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/box_regression.py:15
↓ 3 callersMethodarea
Computes area of the mask. Only works with Polygons, using the shoelace formula: https://stackoverflow.com/questions/24467972
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/masks.py:387
↓ 3 callersFunctionbuild_box_head
Build a box head defined by `cfg.MODEL.ROI_BOX_HEAD.NAME`.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/box_head.py:110
↓ 3 callersFunctionbuild_detection_train_loader
A data loader is created in a way similar to that of Detectron2. The main differences are: - it allows to combine data with different bu
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/data/build.py:285
↓ 3 callersFunctionbuild_mask_head
Build a mask head defined by `cfg.MODEL.ROI_MASK_HEAD.NAME`.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/roi_heads/mask_head.py:272
↓ 3 callersFunctionbuild_optimizer
Build an optimizer from config.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/solver/build.py:93
↓ 3 callersFunctioncheck_metadata_consistency
Check that the data have consistent metadata. Args: key (str): a metadata key dataset_names (list[str]): a list of dataset n
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/detection_utils.py:460
↓ 3 callersFunctioncollect_env_info
()
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/collect_env.py:55
↓ 3 callersFunctionconv3x3
3x3 convolution with padding
imagdressing/preprocess/humanparsing/networks/AugmentCE2P.py:43
↓ 3 callersFunctionconv3x3
3x3 convolution with padding
imagdressing/preprocess/humanparsing/networks/backbone/resnext.py:30
↓ 3 callersFunctionconvert_batched_inputs_to_c2_format
See get_caffe2_inputs() below.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/caffe2_modeling.py:109
↓ 3 callersFunctioncreate_model_input
(img, inst=None)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/modeling/test_model_e2e.py:26
↓ 3 callersMethoddecode_png_data
Decode array data from a string that contains PNG-compressed data @param Base64-encoded string containing PNG-compressed data
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/data/structures.py:496
↓ 3 callersMethoddevice
(self)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/masks.py:108
↓ 3 callersFunctiondo_test
(cfg, model)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tools/plain_train_net.py:109
↓ 3 callersMethoddraw_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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:948
↓ 3 callersMethoddraw_text
Args: text (str): class label position (tuple): a tuple of the x and y coordinates to place text on image.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:765
↓ 3 callersMethodevaluate
Evaluate/summarize the performance, after processing all input/output pairs. Returns: dict: A new evalua
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/evaluation/evaluator.py:48
← previousnext →101–200 of 2,064, ranked by callers