MCPcopy Create free account

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

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

↓ 5 callersFunctionget_affine_transform
(center, scale, rot, output_size,
model/SCHP/utils/transforms.py:100
↓ 5 callersMethodhas
Returns: bool: whether the field called `name` exists.
detectron2/structures/instances.py:83
↓ 5 callersFunctioninitialize_module_params
(module: nn.Module)
densepose/modeling/utils.py:8
↓ 5 callersFunctionkl
()
resource/js/fontawesome.all.min.js:5
↓ 5 callersFunctionmake_int_box
(box: torch.Tensor)
densepose/converters/base.py:92
↓ 5 callersFunctionnormalize_embeddings
Normalize N D-dimensional embedding vectors arranged in a tensor [N, D] Args: embeddings (tensor [N, D]): N D-dimensional embedding
densepose/modeling/cse/utils.py:27
↓ 5 callersFunctionpc
()
resource/js/fontawesome.all.min.js:5
↓ 5 callersFunctionr
(t)
resource/js/bulma-carousel.min.js:1
↓ 5 callersFunctionr
(t,e)
resource/js/bulma-slider.min.js:1
↓ 5 callersFunctionrandom_color
Args: rgb (bool): whether to return RGB colors or BGR colors. maximum (int): either 255 or 1 Returns: ndarray: a vec
detectron2/utils/colormap.py:112
↓ 5 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
detectron2/data/detection_utils.py:166
↓ 5 callersMethodregister
Registers a converter for the specified type. Can be used as a decorator (if converter is None), or called as a method. Args
densepose/converters/base.py:18
↓ 5 callersMethodreset_image
Args: img: same as in __init__
detectron2/utils/visualizer.py:294
↓ 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()`.
detectron2/utils/memory.py:26
↓ 5 callersFunctions
(t)
resource/js/bulma-carousel.min.js:1
↓ 5 callersMethodstate_dict
Hooks are stateless by default, but can be made checkpointable by implementing `state_dict` and `load_state_dict`.
detectron2/engine/train_loop.py:86
↓ 5 callersMethodtransform
In-place transform all attributes of this class. By "in-place", it means after calling this method, accessing an attribute such
detectron2/data/transforms/augmentation.py:331
↓ 4 callersFunctionH
(c)
resource/js/fontawesome.all.min.js:5
↓ 4 callersFunctionJc
(c)
resource/js/fontawesome.all.min.js:5
↓ 4 callersFunctionTl
()
resource/js/fontawesome.all.min.js:5
↓ 4 callersFunctionWc
()
resource/js/fontawesome.all.min.js:5
↓ 4 callersMethod__init__
Args: img_size (int): Input image size. patch_size (int): Patch size. in_chans (int): Number of input ima
detectron2/modeling/backbone/vit.py:239
↓ 4 callersMethod__init__
Args: stem (nn.Module): a stem module stages (list[list[CNNBlockBase]]): several (typically 4) stages,
detectron2/modeling/backbone/resnet.py:367
↓ 4 callersMethod__init__
Args: op (Callable): operation to be applied to the image, which takes in an ndarray and returns an ndarray.
detectron2/data/transforms/transform.py:258
↓ 4 callersMethod__init__
(self, rank_to_storage: Dict[int, SingleProcessTensorStorage])
densepose/evaluation/tensor_storage.py:177
↓ 4 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
detectron2/modeling/test_time_augmentation.py:162
↓ 4 callersFunction_cast_to_config
(obj)
detectron2/config/lazy.py:84
↓ 4 callersMethod_create_grayscale_image
Create a grayscale version of the original image. The colors in masked area, if given, will be kept.
detectron2/utils/visualizer.py:1183
↓ 4 callersFunction_create_text_labels
Args: classes (list[int] or None): scores (list[float] or None): class_names (list[str] or None): is_crowd (list[
detectron2/utils/visualizer.py:230
↓ 4 callersFunction_dense_box_regression_loss
Compute loss for dense multi-level box regression. Loss is accumulated over ``fg_mask``. Args: anchors: #lvl anchor boxes, each
detectron2/modeling/box_regression.py:310
↓ 4 callersMethod_generate_rlemask_on_image
(self, mask, imgId, data)
densepose/evaluation/densepose_coco_evaluation.py:362
↓ 4 callersFunction_get_builtin_metadata
(dataset_name)
detectron2/data/datasets/builtin_meta.py:283
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilation=1, multi_grid=1)
model/SCHP/networks/AugmentCE2P.py:300
↓ 4 callersFunction_maybe_copy_to_device
( attribute: Optional[torch.Tensor], device: torch.device )
densepose/structures/mesh.py:15
↓ 4 callersMethod_parse_error
(self, msg)
densepose/utils/dbhelper.py:148
↓ 4 callersMethod_transpose_dense_predictions
Transpose the dense per-level predictions. Args: predictions: a list of outputs, each is a list of per-level
detectron2/modeling/meta_arch/dense_detector.py:136
↓ 4 callersFunctionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors). Args: data: any picklable object group: a torch proces
detectron2/utils/comm.py:138
↓ 4 callersFunctionattention_pool
(x, pool, norm=None)
detectron2/modeling/backbone/mvit.py:21
↓ 4 callersFunctionbuild_anchor_generator
Built an anchor generator from `cfg.MODEL.ANCHOR_GENERATOR.NAME`.
detectron2/modeling/anchor_generator.py:385
↓ 4 callersFunctionbuild_batch_data_loader
Build a batched dataloader. The main differences from `torch.utils.data.DataLoader` are: 1. support aspect ratio grouping options 2. use
detectron2/data/build.py:294
↓ 4 callersFunctionbuild_densepose_embedder
Build embedder used to embed mesh vertices into an embedding space. Embedder contains sub-embedders, one for each mesh ID. Args:
densepose/modeling/build.py:77
↓ 4 callersFunctionbuild_model
Build the whole model architecture, defined by ``cfg.MODEL.META_ARCHITECTURE``. Note that it does not load any weights from ``cfg``.
detectron2/modeling/meta_arch/build.py:16
↓ 4 callersFunctioncheck_metadata_consistency
Check that the datasets have consistent metadata. Args: key (str): a metadata key dataset_names (list[str]): a list of datas
detectron2/data/detection_utils.py:602
↓ 4 callersFunctioncompute_vae_encodings
Args: images (torch.Tensor): image to be encoded vae (torch.nn.Module): vae model Returns: torch.Tensor: latent enco
utils.py:99
↓ 4 callersMethodcount_samples
Return the number of samples logged in the past `window_size` iterations.
detectron2/utils/events.py:477
↓ 4 callersFunctiondefineProperties
(target, props)
resource/js/bulma-slider.js:86
↓ 4 callersMethoddraw_dataset_dict
Draw annotations/segmentations in Detectron2 Dataset format. Args: dic (dict): annotation/segmentation data of one image
detectron2/utils/visualizer.py:550
↓ 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
detectron2/utils/visualizer.py:1018
↓ 4 callersFunctionfixup_module_metadata
Fix the __qualname__ of module members to be their exported api name, so when they are referenced in docs, sphinx can find them. Reference:
detectron2/utils/env.py:136
↓ 4 callersFunctionflatten_to_tuple
Flatten an object so it can be used for PyTorch tracing. Also returns how to rebuild the original object from the flattened outputs. Ret
detectron2/export/flatten.py:158
↓ 4 callersFunctionget_class_to_mesh_name_mapping
(cfg: CfgNode)
densepose/data/utils.py:29
↓ 4 callersMethodget_image
Returns: ndarray: the visualized image of shape (H, W, 3) (RGB) in uint8 type. The shape is scale
detectron2/utils/visualizer.py:310
↓ 4 callersMethodget_mesh_name
(self, mesh_id: int)
densepose/data/meshes/catalog.py:47
↓ 4 callersFunctionh
(c)
resource/js/fontawesome.all.min.js:5
↓ 4 callersFunctionimage_grid
(imgs, rows, cols)
app_p2p.py:109
↓ 4 callersMethodinit_weights
(self)
densepose/modeling/hrfpn.py:131
↓ 4 callersMethodlatest
Returns: dict[str -> (float, int)]: mapping from the name of each scalar to the most recent value and the iterati
detectron2/utils/events.py:444
↓ 4 callersMethodload_state_dict
(self, state_dict)
detectron2/engine/hooks.py:370
↓ 4 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
detectron2/utils/logger.py:164
↓ 4 callersMethodmake_stage
Create a list of blocks of the same type that forms one ResNet stage. Args: block_class (type): a subclass of CNNBlockBa
detectron2/modeling/backbone/resnet.py:493
↓ 4 callersFunctionmc
(c,l)
resource/js/fontawesome.all.min.js:5
↓ 4 callersMethodpredict_boxes
Args: predictions: return values of :meth:`forward()`. proposals (list[Instances]): proposals that match the features
detectron2/modeling/roi_heads/fast_rcnn.py:523
↓ 4 callersFunctionprepare_image
(image)
utils.py:181
↓ 4 callersMethodpreprocess_image
Normalize, pad and batch the input images.
detectron2/modeling/meta_arch/rcnn.py:223
↓ 4 callersMethodregister
Args: dataset_type (DatasetType): a DatasetType e.g. DatasetType.VIDEO_LIST factory (Callable[Metadata, CfgNode]): a
densepose/data/build.py:726
↓ 4 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
detectron2/modeling/roi_heads/roi_heads.py:46
↓ 4 callersMethodtest
Args: cfg (CfgNode): model (nn.Module): evaluators (DatasetEvaluator, list[DatasetEvaluator] or None): if
densepose/engine/trainer.py:88
↓ 4 callersMethodto
Transfers all tensors to the given device
densepose/structures/chart_result.py:27
↓ 4 callersFunctionxl
(l,c)
resource/js/fontawesome.all.min.js:5
↓ 4 callersFunctionyc
(h)
resource/js/fontawesome.all.min.js:5
↓ 3 callersFunctionAc
(c)
resource/js/fontawesome.all.min.js:5
↓ 3 callersFunctionBc
(c)
resource/js/fontawesome.all.min.js:5
↓ 3 callersFunctionCl
(c)
resource/js/fontawesome.all.min.js:5
↓ 3 callersFunctionIc
(c)
resource/js/fontawesome.all.min.js:5
↓ 3 callersFunctionLl
(z,a)
resource/js/fontawesome.all.min.js:5
↓ 3 callersFunctionM
(c,z)
resource/js/fontawesome.all.min.js:5
↓ 3 callersFunctionTc
(c,l,h,z)
resource/js/fontawesome.all.min.js:5
↓ 3 callersFunctionXc
()
resource/js/fontawesome.all.min.js:5
↓ 3 callersMethod__call__
(self, values)
detectron2/export/flatten.py:40
↓ 3 callersMethod__init__
Args: optimizer, last_iter: See ``torch.optim.lr_scheduler.LRScheduler``. ``last_iter`` is the same as ``last_epo
detectron2/solver/lr_scheduler.py:95
↓ 3 callersMethod__init__
(self, normalized_shape, eps=1e-6)
detectron2/layers/batch_norm.py:341
↓ 3 callersMethod__init__
(self)
model/flux/transformer_flux.py:31
↓ 3 callersMethod__init__
(self, inplanes, planes, stride=1, downsample=None)
densepose/modeling/hrnet.py:34
↓ 3 callersMethod__init__
( self, inplace=True, cmap=cv2.COLORMAP_PARULA, alpha=0.7, to_visualize=None, **kwargs )
densepose/vis/densepose_outputs_iuv.py:15
↓ 3 callersMethod__init__
(self, densepose_data_to_value_fn=None, cmap=cv2.COLORMAP_PARULA, **kwargs)
densepose/vis/densepose_data_points.py:42
↓ 3 callersFunction_cast_to_f32
(f64)
detectron2/export/caffe2_modeling.py:95
↓ 3 callersMethod_do_register
(cls, from_type: Type, converter: Any)
densepose/converters/base.py:40
↓ 3 callersFunction_find_caller
Returns: str: module name of the caller tuple: a hashable key to be used to identify different callers
detectron2/utils/logger.py:143
↓ 3 callersMethod_forward_keypoint
Forward logic of the keypoint prediction branch. Args: features (dict[str, Tensor]): mapping from feature map names to t
detectron2/modeling/roi_heads/roi_heads.py:848
↓ 3 callersMethod_forward_mask
Forward logic of the mask prediction branch. Args: features (dict[str, Tensor]): mapping from feature map names to tenso
detectron2/modeling/roi_heads/roi_heads.py:818
↓ 3 callersFunction_get_coco_instances_meta
()
detectron2/data/datasets/builtin_meta.py:235
↓ 3 callersMethod_jitter
Randomly modifies given color to produce a slightly different color than the color given. Args: color (tuple[double]): a
detectron2/utils/visualizer.py:1164
↓ 3 callersFunction_log_api_usage
Internal function used to log the usage of different detectron2 components inside facebook's infra.
detectron2/utils/logger.py:256
↓ 3 callersMethod_make_stage
(self, layer_config, num_inchannels, multi_scale_output=True)
densepose/modeling/hrnet.py:407
↓ 3 callersMethod_make_transition_layer
(self, num_channels_pre_layer, num_channels_cur_layer)
densepose/modeling/hrnet.py:343
↓ 3 callersMethod_pack_latents
(latents, batch_size, num_channels_latents, height, width)
model/flux/pipeline_flux_tryon.py:212
↓ 3 callersMethod_postprocess
Rescale the output instances to the target size.
detectron2/modeling/meta_arch/rcnn.py:237
↓ 3 callersMethod_rand_range
Uniform float random number between low and high.
detectron2/data/transforms/augmentation.py:176
↓ 3 callersFunction_rename_versioned_blob_in_proto
In given proto, rename all blobs with matched version
detectron2/export/shared.py:637
↓ 3 callersFunction_toConsumableArray
(arr)
resource/js/bulma-carousel.js:275
← previousnext →101–200 of 2,283, ranked by callers