MCPcopy Create free account

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

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

↓ 178 callersMethodget
Access an attribute and return its value if exists. Otherwise return default.
detectron2/data/catalog.py:170
↓ 95 callersMethodcat
Concatenates a list of Boxes into a single Boxes Arguments: boxes_list (list[Boxes]) Returns: Boxes
detectron2/structures/boxes.py:279
↓ 74 callersMethodto
(self, device: torch.device)
detectron2/structures/boxes.py:168
↓ 68 callersMethodto
(self, device: torch.device)
densepose/structures/mesh.py:81
↓ 64 callersMethodhas
(self, name)
detectron2/export/c10.py:73
↓ 49 callersMethodget
(self, rank: int, record_id: int)
densepose/evaluation/tensor_storage.py:180
↓ 45 callersFunction$
(a)
resource/js/fontawesome.all.min.js:5
↓ 45 callersMethodupdate
Args: predictions: D2 Instances for predictions of the current frame Return: D2 Instances for predictions of
detectron2/tracking/base_tracker.py:32
↓ 43 callersFunctionget_norm
Args: norm (str or callable): either one of BN, SyncBN, FrozenBN, GN; or a callable that takes a channel number and returns
detectron2/layers/batch_norm.py:169
↓ 35 callersMethodclone
Clone the Boxes. Returns: Boxes
detectron2/structures/boxes.py:159
↓ 34 callersMethodset
Set multiple metadata with kwargs.
detectron2/data/catalog.py:162
↓ 33 callersFunctionn
(t,e)
resource/js/bulma-carousel.min.js:1
↓ 32 callersFunction__webpack_require__
(moduleId)
resource/js/bulma-carousel.js:16
↓ 31 callersFunctioni
(t)
resource/js/bulma-carousel.min.js:1
↓ 30 callersMethodremove
Alias of ``pop``.
detectron2/data/catalog.py:69
↓ 29 callersFunctioncat
Efficient version of torch.cat that avoids a copy if there is only a single element in a list
detectron2/layers/wrappers.py:65
↓ 29 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
detectron2/structures/boxes.py:44
↓ 27 callersMethodput_scalar
Add a scalar `value` to the `HistoryBuffer` associated with `name`. Args: smoothing_hint (bool): a 'hint' on whether thi
detectron2/utils/events.py:356
↓ 27 callersMethodwrite
(self)
detectron2/utils/events.py:115
↓ 26 callersFunctiondefineProperties
(target, props)
resource/js/bulma-carousel.js:273
↓ 25 callersMethodsave
Save a config object to a yaml file. Note that when the config dictionary contains complex objects (e.g. lambda), it can't be
detectron2/config/lazy.py:252
↓ 23 callersMethodclip
Clip (in place) the boxes by limiting x coordinates to the range [0, width] and y coordinates to the range [0, height]. Args
detectron2/structures/boxes.py:183
↓ 22 callersFunctionget_event_storage
Returns: The :class:`EventStorage` object that's currently being used. Throws an error if no :class:`EventStorage` is currently e
detectron2/utils/events.py:28
↓ 22 callersMethodresize
(self, img)
eval.py:47
↓ 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
detectron2/export/shared.py:24
↓ 19 callersMethoddevice
(self)
detectron2/structures/boxes.py:299
↓ 18 callersMethod_init
(self, params=None)
detectron2/data/transforms/augmentation.py:109
↓ 17 callersFunctionc
()
resource/js/fontawesome.all.min.js:5
↓ 17 callersMethodconvert
Convert an instance to the destination type using some registered converter. Does recursive lookup for base classes, so there's no ne
densepose/converters/base.py:66
↓ 17 callersMethodload
Load a config file. Args: filename: absolute path or relative path w.r.t. the current working directory keys
detectron2/config/lazy.py:197
↓ 17 callersFunctionpart_mask_of
(part: Union[str, list], parse: np.ndarray, mapping: dict)
model/cloth_masker.py:130
↓ 16 callersMethodflatten
(cls, obj)
detectron2/export/flatten.py:37
↓ 15 callersFunctionalias
(x, name, is_backward=False)
detectron2/export/shared.py:598
↓ 15 callersMethodregister_sampler
Register sampler for a field Args: prediction_attr (str): field to replace with a sampled value gt_attr (Optiona
densepose/data/samplers/prediction_to_gt.py:69
↓ 14 callersFunctionmaybe_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
densepose/data/utils.py:16
↓ 14 callersMethodset
Set the field named `name` to `value`. The length of `value` must be the number of instances, and must agree with other exist
detectron2/structures/instances.py:69
↓ 13 callersFunction_classCallCheck
(instance, Constructor)
resource/js/bulma-carousel.js:277
↓ 13 callersFunctioncheck_set_pb_arg
(pb, arg_name, arg_attr, arg_value, allow_override=False)
detectron2/export/shared.py:209
↓ 13 callersFunctionconv2d
Helper for building a conv2d layer.
detectron2/modeling/backbone/regnet.py:28
↓ 12 callersMethod__init__
Args: shape: (h, w) tuple or a int interp: PIL interpolation method
detectron2/data/transforms/augmentation_impl.py:117
↓ 12 callersFunctionz
(c)
resource/js/fontawesome.all.min.js:5
↓ 11 callersMethodinterp2d
Bilinear interpolation method to be used for upscaling Args: tensor_nchw (tensor): tensor of shape (N, C, H, W)
densepose/modeling/predictors/chart.py:68
↓ 11 callersMethodnorm
(c)
detectron2/modeling/meta_arch/retinanet.py:350
↓ 11 callersMethodoutput_shape
(self)
detectron2/modeling/backbone/fpn.py:169
↓ 11 callersMethodregister
Args: name (str): the name that identifies a dataset, e.g. "coco_2014_train". func (callable): a callable which takes
detectron2/data/catalog.py:29
↓ 10 callersMethod__init__
(self, w_in, w_se, activation_class)
detectron2/modeling/backbone/regnet.py:94
↓ 10 callersMethodarea
Computes the area of all the boxes. Returns: torch.Tensor: a vector with areas of each box.
detectron2/structures/boxes.py:172
↓ 10 callersMethodextract_at_points
Extract ground truth values z_gt for valid point indices and estimated values z_est using bilinear interpolation over top-left (y_lo,
densepose/modeling/losses/utils.py:160
↓ 10 callersFunctionget_pb_arg
(pb, arg_name)
detectron2/export/shared.py:172
↓ 10 callersFunctionresize_and_crop
(image, size)
utils.py:350
↓ 9 callersMethodclose
(self)
detectron2/utils/events.py:137
↓ 9 callersMethodfrom_pretrained
(cls, pretrained_model_name_or_path, subfolder=None, **kwargs)
model/flux/pipeline_flux_tryon.py:71
↓ 9 callersFunctionget_world_size
()
detectron2/utils/comm.py:21
↓ 9 callersFunctionmove_device_like
Tracing friendly way to cast tensor to another tensor's device. Device will be treated as constant during tracing, scripting the casting proc
detectron2/layers/wrappers.py:172
↓ 9 callersMethodoverlay_instances
Args: boxes (Boxes, RotatedBoxes or ndarray): either a :class:`Boxes`, or an Nx4 numpy array of XYXY_ABS format f
detectron2/utils/visualizer.py:621
↓ 8 callersFunction_rename
(cfg: CN, old: str, new: str)
detectron2/config/compat.py:116
↓ 8 callersMethoddump
Returns: str: a yaml string representation of the config
detectron2/config/config.py:87
↓ 8 callersMethodfrom_tensors
Args: tensors: a tuple or list of `torch.Tensor`, each of shape (Hi, Wi) or (C_1, ..., C_K, Hi, Wi) where K >= 1.
detectron2/structures/image_list.py:59
↓ 8 callersMethodload
Args: io: (str or binary file-like object): input file to load data from Returns: An instance of `DensePoseTr
densepose/structures/transform_data.py:54
↓ 8 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 order m
detectron2/structures/boxes.py:336
↓ 8 callersMethodpreprocess
(self, image)
model/SCHP/__init__.py:121
↓ 8 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.
detectron2/utils/logger.py:43
↓ 8 callersMethodstep
User should either: (1) Call this function to increment storage.iter when needed. Or (2) Set `storage.iter` to the correct iteration
detectron2/utils/events.py:498
↓ 8 callersMethodto
(self, *args: Any, **kwargs: Any)
detectron2/structures/masks.py:111
↓ 7 callersFunctiona
(c)
resource/js/fontawesome.all.min.js:5
↓ 7 callersMethodapply_deltas
Apply transformation `deltas` (dx, dy, dw, dh) to `boxes`. Args: deltas (Tensor): transformation deltas of shape (N, k*4
detectron2/modeling/box_regression.py:78
↓ 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
detectron2/modeling/postprocessing.py:9
↓ 7 callersFunctionget_pb_arg_vali
(pb, arg_name, default_val)
detectron2/export/shared.py:194
↓ 7 callersFunctionl
(l)
resource/js/fontawesome.all.min.js:5
↓ 7 callersMethodnonempty
Find boxes that are non-empty. A box is considered empty, if either of its side is no larger than threshold. Returns:
detectron2/structures/boxes.py:199
↓ 7 callersFunctionto_device_if_tensor
(var: Any)
densepose/structures/cse_confidence.py:69
↓ 6 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.0 )
detectron2/modeling/backbone/swin.py:29
↓ 6 callersFunctionbc
(c)
resource/js/fontawesome.all.min.js:5
↓ 6 callersFunctioncreate_mesh
(mesh_name: str, device: Optional[torch.device] = None)
densepose/structures/mesh.py:171
↓ 6 callersMethodfake_value
Fake segmentation loss used when no suitable ground truth data was found in a batch. The loss has a value 0 and is primarily used to
densepose/modeling/losses/mask.py:113
↓ 6 callersMethodget
(name)
detectron2/checkpoint/catalog.py:58
↓ 6 callersMethodget_fields
like `get_fields` in the Instances object, but return each field in tensor representations
detectron2/export/c10.py:59
↓ 6 callersFunctionget_pb_arg_vals
(pb, arg_name, default_val)
detectron2/export/shared.py:199
↓ 6 callersFunctionget_rank
()
detectron2/utils/comm.py:29
↓ 6 callersMethodhistory
Returns: HistoryBuffer: the scalar history for name
detectron2/utils/events.py:427
↓ 6 callersFunctionnonzero_tuple
A 'as_tuple=True' version of torch.nonzero to support torchscript. because of https://github.com/pytorch/pytorch/issues/38718
detectron2/layers/wrappers.py:158
↓ 6 callersMethodreset
Preparation for a new round of evaluation. Should be called before starting a round of evaluation.
detectron2/evaluation/evaluator.py:26
↓ 6 callersFunctionresize_and_padding
(image, size)
utils.py:368
↓ 6 callersFunctionslice_if_not_none
(data, item)
densepose/structures/chart_confidence.py:55
↓ 6 callersFunctionsquared_euclidean_distance_matrix
Get squared Euclidean Distance Matrix Computes pairwise squared Euclidean distances between points Args: pts1: Tensor [M x D], M
densepose/modeling/cse/utils.py:9
↓ 6 callersFunctionto_device_if_tensor
(var: Any)
densepose/structures/chart_confidence.py:84
↓ 6 callersMethodtrain
Args: start_iter, max_iter (int): See docs above
detectron2/engine/train_loop.py:139
↓ 6 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
detectron2/modeling/backbone/swin.py:49
↓ 5 callersMethod__init__
(self, block, layers, num_classes)
model/SCHP/networks/AugmentCE2P.py:267
↓ 5 callersMethod__init__
(self, in_channels, atrous_rates, out_channels)
densepose/modeling/roi_heads/deeplab.py:111
↓ 5 callersMethod_benchmark
(self, iterator, num_iter, warmup, msg=None)
detectron2/data/benchmark.py:100
↓ 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)
detectron2/modeling/anchor_generator.py:58
↓ 5 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
detectron2/utils/visualizer.py:1194
↓ 5 callersFunction_convert_target_to_string
Inverse of ``locate()``. Args: t: any object with ``__module__`` and ``__qualname__``
detectron2/utils/registry.py:15
↓ 5 callersFunctionbatched_nms
Same as torchvision.ops.boxes.batched_nms, but with float().
detectron2/layers/nms.py:11
↓ 5 callersFunctionbuild_backbone
Build a backbone from `cfg.MODEL.BACKBONE.NAME`. Returns: an instance of :class:`Backbone`
detectron2/modeling/backbone/build.py:20
↓ 5 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
detectron2/utils/logger.py:233
↓ 5 callersFunctiondefault_X_scheduler
Returns the config for a default multi-step LR scheduler such as "1x", "3x", commonly referred to in papers, where every 1x has the total len
detectron2/model_zoo/configs/common/coco_schedule.py:7
↓ 5 callersFunctionextract_boxes_xywh_from_instances
(instances: Instances, select=None)
densepose/vis/extractor.py:32
↓ 5 callersFunctionfc
(c,l)
resource/js/fontawesome.all.min.js:5
next →1–100 of 2,283, ranked by callers