MCPcopy Create free account

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

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

↓ 185 callersMethodto
(self, device: str)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/boxes.py:170
↓ 106 callersMethodcat
Concatenates a list of Boxes into a single Boxes Arguments: boxes_list (list[Boxes]) Returns: Boxes
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/boxes.py:276
↓ 101 callersMethodget
Access an attribute and return its value if exists. Otherwise return default.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/catalog.py:157
↓ 69 callersMethodget
(self)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/demo/predictor.py:191
↓ 51 callersMethoddevice
(self)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/boxes.py:296
↓ 47 callersFunctioncat
Efficient version of torch.cat that avoids a copy if there is only a single element in a list
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/wrappers.py:18
↓ 37 callersMethodextend
(self, buffers)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/anchor_generator.py:30
↓ 35 callersMethodclone
Clone the Boxes. Returns: Boxes
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/boxes.py:161
↓ 35 callersMethodload
(fpath)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/data/structures.py:24
↓ 33 callersFunctionget_cfg
Get a copy of the default config. Returns: a detectron2 CfgNode instance.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/config/config.py:79
↓ 32 callersMethodto
(self, device)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/data/structures.py:540
↓ 28 callersMethodhas
(self, name)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/c10.py:72
↓ 25 callersMethodclip
Clip (in place) the boxes by limiting x coordinates to the range [0, width] and y coordinates to the range [0, height]. Args
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/boxes.py:184
↓ 24 callersMethodput_scalar
Add a scalar `value` to the `HistoryBuffer` associated with `name`. Args: smoothing_hint (bool): a 'hint' on whether thi
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/events.py:267
↓ 24 callersMethodresize
(self, image_size_hw)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/data/structures.py:262
↓ 24 callersMethodwrite
(self)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/events.py:96
↓ 23 callersMethodsave
Args: filepath (str): a string that contains the absolute path, including the file name, where the visualized ima
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:256
↓ 21 callersMethodconvert
Args: box: can be a k-tuple, k-list or an Nxk array/tensor, where k = 4 or 5 from_mode, to_mode (BoxMode) Re
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/boxes.py:43
↓ 21 callersFunctionget_norm
Args: norm (str or callable): either one of BN, SyncBN, FrozenBN, GN; or a callable that takes a channel number and returns
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/batch_norm.py:129
↓ 21 callersFunctionto_device
This function is a replacement of .to(another_device) such that it allows the casting to be traced properly by explicitly calling the underly
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:25
↓ 20 callersFunctioncheck_set_pb_arg
(pb, arg_name, arg_attr, arg_value, allow_override=False)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:204
↓ 20 callersMethodflatten
(self)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/c10.py:97
↓ 20 callersMethodmerge_from_file
(self, cfg_filename: str, allow_unsafe: bool = True)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/config/config.py:24
↓ 20 callersFunctionsetup_logger
Initialize the detectron2 logger and set its verbosity level to "DEBUG". Args: output (str): a file name or a directory to save log.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/logger.py:34
↓ 19 callersMethodencode
(self, text)
__init__.py:345
↓ 18 callersFunctionget_event_storage
Returns: The :class:`EventStorage` object that's currently being used. Throws an error if no :class:`EventStorage` is currently e
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/events.py:16
↓ 17 callersMethodfreeze
Make this block not trainable. This method sets all parameters to `requires_grad=False`, and convert all BatchNorm layers to
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/blocks.py:36
↓ 17 callersMethodoutput_shape
(self)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/backbone/fpn.py:146
↓ 17 callersMethodresume_or_load
If `resume==True`, and last checkpoint exists, resume from it and load all checkpointables (eg. optimizer and scheduler). Ot
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/engine/defaults.py:301
↓ 17 callersMethodtrain
Args: start_iter, max_iter (int): See docs above
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/engine/train_loop.py:116
↓ 16 callersFunctionalias
(x, name, is_backward=False)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:592
↓ 16 callersMethodget_image
Returns: ndarray: the visualized image of shape (H, W, 3) (RGB) in uint8 type. The shape is scale
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:270
↓ 16 callersMethodstep
User should call this function at the beginning of each iteration, to notify the storage of the start of a new iteration. The
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/events.py:381
↓ 15 callersFunctionbuild_model
Build the whole model architecture, defined by ``cfg.MODEL.META_ARCHITECTURE``. Note that it does not load any weights from ``cfg``.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/meta_arch/build.py:15
↓ 15 callersMethodoverlay_instances
Args: boxes (Boxes, RotatedBoxes or ndarray): either a :class:`Boxes`, or an Nx4 numpy array of XYXY_ABS format f
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:525
↓ 14 callersMethoddump
Returns: str: a yaml string representation of the config
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/config/config.py:67
↓ 14 callersMethodset
Set multiple metadata with kwargs.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/catalog.py:149
↓ 13 callersFunctionpairwise_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
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/rotated_boxes.py:7
↓ 11 callersMethodfrom_tensors
Args: tensors: a tuple or list of `torch.Tensors`, each of shape (Hi, Wi) or (C_1, ..., C_K, Hi, Wi) where K >= 1
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/image_list.py:51
↓ 10 callersMethod__init__
Args: shape: (h, w) tuple or a int interp: PIL interpolation method
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/transforms/transform_gen.py:186
↓ 10 callersMethod_init
(self, params=None)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/transforms/transform_gen.py:68
↓ 10 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/boxes.py:173
↓ 10 callersFunctionbuild_backbone
Build a backbone from `cfg.MODEL.BACKBONE.NAME`. Returns: an instance of :class:`Backbone`
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/backbone/build.py:20
↓ 10 callersFunctiondefault_argument_parser
Create a parser with some common arguments used by detectron2 users. Args: epilog (str): epilog passed to ArgumentParser describing
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/engine/defaults.py:49
↓ 10 callersFunctionget_pb_arg
(pb, arg_name)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:167
↓ 10 callersFunctionpoint_sample
A wrapper around :function:`torch.nn.functional.grid_sample` to support 3D point_coords tensors. Unlike :function:`torch.nn.functional.grid_s
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/PointRend/point_rend/point_features.py:19
↓ 10 callersMethodregister
Args: name (str): the name that identifies a dataset, e.g. "coco_2014_train". func (callable): a callable which takes
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/catalog.py:31
↓ 10 callersMethodset
Set the field named `name` to `value`. The length of `value` must be the number of instances, and must agree with other exist
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/instances.py:63
↓ 10 callersMethodtest
(self)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/data/test_coco.py:59
↓ 9 callersMethod__init__
(self, in_channels, atrous_rates, out_channels)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/densepose_head.py:167
↓ 9 callersMethodassertEqualsArrays
(self, a1, a2)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/data/test_rotation_transform.py:9
↓ 9 callersFunctionbroadcast_to
imagdressing/preprocess/humanparsing/modules/src/inplace_abn_cpu.cpp:17
↓ 9 callersFunctiondefault_setup
Perform some basic common setups at the beginning of a job, including: 1. Set up the detectron2 logger 2. Log basic information about en
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/engine/defaults.py:105
↓ 9 callersFunctionget_affine_transform
(center, scale, rot, output_size,
imagdressing/preprocess/humanparsing/utils/transforms.py:100
↓ 9 callersFunctionget_pb_arg_vali
(pb, arg_name, default_val)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:189
↓ 9 callersFunctionlaunch
Args: main_func: a function that will be called by `main_func(*args)` num_machines (int): the total number of machines ma
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/engine/launch.py:24
↓ 9 callersMethodremove
Remove the field called `name`.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/instances.py:83
↓ 8 callersFunction_rename
(cfg: CN, old: str, new: str)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/config/compat.py:116
↓ 8 callersMethodbackward
(ctx, grad_output)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/roi_align.py:26
↓ 8 callersFunctionbatched_nms
Same as torchvision.ops.boxes.batched_nms, but safer.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/nms.py:9
↓ 8 callersMethodbuild_model
Returns: torch.nn.Module: It now calls :func:`detectron2.modeling.build_model`. Overwrite it if you'd like a dif
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/engine/defaults.py:410
↓ 8 callersFunctionlog_first_n
Log only for the first n times. Args: lvl (int): the logging level msg (str): n (int): name (str): name of t
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/logger.py:132
↓ 8 callersMethodnonempty
Find boxes that are non-empty. A box is considered empty, if either of its side is no larger than threshold. Returns:
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/boxes.py:199
↓ 7 callersMethod__init__
(self, name, hidden_size, cross_attention_dim=None)
imagdressing/adapter/attention_processor.py:108
↓ 7 callersMethodapply_image
(self, img, interp=None)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/transforms/transform.py:41
↓ 7 callersFunctionbuild_detection_test_loader
Similar to `build_detection_train_loader`. But this function uses the given `dataset_name` argument (instead of the names in cfg), and us
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/build.py:343
↓ 7 callersFunctionbuild_proposal_generator
Build a proposal generator from `cfg.MODEL.PROPOSAL_GENERATOR.NAME`. The name can be "PrecomputedProposals" to use no proposal generator.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/proposal_generator/build.py:15
↓ 7 callersFunctiondetector_postprocess
Resize the output instances. The input images are often resized when entering an object detector. As a result, we often need the outputs
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/postprocessing.py:9
↓ 7 callersMethodgather
(self, outputs, output_device)
imagdressing/preprocess/humanparsing/utils/encoding.py:94
↓ 7 callersFunctionget_world_size
()
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/comm.py:21
↓ 7 callersFunctionpairwise_iou
Given two lists of rotated boxes of size N and M, compute the IoU (intersection over union) between __all__ N x M pairs of boxes. The
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/rotated_boxes.py:466
↓ 7 callersFunctionregister_coco_instances
Register a dataset in COCO's json annotation format for instance detection, instance segmentation and keypoint detection. (i.e., Type 1 a
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/datasets/register_coco.py:16
↓ 7 callersFunctionverify_results
Args: results (OrderedDict[dict]): task_name -> {metric -> score} Returns: bool: whether the verification succeeds or not
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/evaluation/testing.py:28
↓ 7 callersMethodvisualize
(self, image_bgr: Image, densepose_result: Optional[DensePoseResult])
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/vis/densepose.py:12
↓ 6 callersMethod__init__
(self, block, layers, num_classes)
imagdressing/preprocess/humanparsing/networks/AugmentCE2P.py:297
↓ 6 callersMethod_create_tensors
(self, N)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/layers/test_nms_rotated.py:65
↓ 6 callersFunction_extract_at_points_packed
Extract ground truth values z_gt for valid point indices and estimated values z_est using bilinear interpolation over top-left (y_lo, x_lo),
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/densepose_head.py:684
↓ 6 callersMethodclose
(self)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/events.py:107
↓ 6 callersFunctioncreate_small_table
Create a small table using the keys of small_dict as headers. This is only suitable for small dictionaries. Args: small_dict (di
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/logger.py:201
↓ 6 callersMethoddraw_dataset_dict
Draw annotations/segmentaions in Detectron2 Dataset format. Args: dic (dict): annotation/segmentation data of one image,
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:475
↓ 6 callersMethoddraw_instance_predictions
Draw instance-level prediction results on an image. Args: predictions (Instances): the output of an instance detection/s
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/utils/visualizer.py:330
↓ 6 callersFunctionget_pb_arg_vals
(pb, arg_name, default_val)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/shared.py:194
↓ 6 callersFunctionnms_rotated
Performs non-maximum suppression (NMS) on the rotated boxes according to their intersection-over-union (IoU). Rotated NMS iteratively re
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/layers/nms.py:31
↓ 6 callersFunctionpairwise_iou
Given two lists of boxes of size N and M, compute the IoU (intersection over union) between __all__ N x M pairs of boxes. The box ord
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/boxes.py:308
↓ 6 callersFunctionpermute_to_N_HWA_K
Transpose/reshape a tensor from (N, (A x K), H, W) to (N, (HxWxA), K)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/meta_arch/retinanet.py:25
↓ 6 callersMethodto
(self, device: str)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/structures/masks.py:104
↓ 5 callersMethod__init__
(self, inplace=True, cmap=cv2.COLORMAP_PARULA, alpha=0.7)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/vis/densepose.py:324
↓ 5 callersMethod__init__
(self, arg1, arg2, arg3=3)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/test_config.py:65
↓ 5 callersFunction_broadcast_params
If one size (or aspect ratio) is specified and there are multiple feature maps, we "broadcast" anchors of that single size (or aspect ratio)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/anchor_generator.py:58
↓ 5 callersFunction_cast_to_f32
(f64)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/export/caffe2_modeling.py:97
↓ 5 callersMethod_convert_xy_to_wh
(self, x)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/structures/test_boxes.py:12
↓ 5 callersFunction_get_base_config_dir
Return the base directory for configurations
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/tests/common.py:19
↓ 5 callersFunction_maybe_prepend_base_path
Prepends the provided path with a base path prefix if: 1) base path is not None; 2) path is a local path
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/densepose/data/datasets/coco.py:80
↓ 5 callersMethod_random_data
(self)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/test_visualizer.py:15
↓ 5 callersMethod_simple_roialign
RoiAlign with scale 1.0 and 0 sample ratio.
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/tests/layers/test_roi_align.py:62
↓ 5 callersMethodadd_arguments
(cls: type, parser: argparse.ArgumentParser)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/apply_net.py:43
↓ 5 callersMethodadd_arguments
(cls: type, parser: argparse.ArgumentParser)
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/projects/DensePose/query_db.py:41
↓ 5 callersMethodapply_deltas
Apply transformation `deltas` (dx, dy, dw, dh) to `boxes`. Args: deltas (Tensor): transformation deltas of shape (N, k*4
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/modeling/box_regression.py:99
↓ 5 callersFunctionbuild_detection_train_loader
A data loader is created by the following steps: 1. Use the dataset names in config to query :class:`DatasetCatalog`, and obtain a list of d
imagdressing/preprocess/humanparsing/mhp_extension/detectron2/detectron2/data/build.py:256
↓ 5 callersFunctionconv3x3
3x3 convolution with padding
imagdressing/preprocess/humanparsing/networks/backbone/resnet.py:32
next →1–100 of 2,064, ranked by callers