MCPcopy Create free account

hub / github.com/MyNiuuu/AniCrafter / functions

Functions5,947 in github.com/MyNiuuu/AniCrafter

↓ 5 callersFunctionconvert_coco_to_output
(coco, is_wholebody=False)
engine/pose_estimation/third-party/ViTPose/tests/test_datasets/test_bottom_up_dataset.py:10
↓ 5 callersFunctioncreate_mask
tensor shape: [b, c, h, w] paddings: [2 x 2] shape list, the first row indicates up and down paddings the second row indicates left and r
ProPainter/model/modules/flow_comp_raft.py:142
↓ 5 callersMethoddenoising_model
(self)
diffsynth/pipelines/sd_image.py:31
↓ 5 callersFunctiondistance
(p1, p2)
engine/SegmentAPI/SAM.py:54
↓ 5 callersMethodencode_image
(self, image, num_frames, height, width)
diffsynth/pipelines/wan_video_v2v_combine.py:1266
↓ 5 callersMethodencode_prompt
(self, prompt, positive=True)
diffsynth/pipelines/wan_video.py:151
↓ 5 callersFunctionflip_feature_maps
Flip the feature maps and swap the channels. Args: feature_maps (list[Tensor]): Feature maps. flip_index (list[int] | None): Chan
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/bottom_up_eval.py:46
↓ 5 callersFunctionfliplr_regression
Flip human joints horizontally. Note: - batch_size: N - num_keypoint: K Args: regression (np.ndarray([..., K, C])):
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/post_transforms.py:54
↓ 5 callersMethodforward_dummy
Used for computing network FLOPs. See ``tools/get_flops.py``. Args: img (torch.Tensor[N,C,imgH,imgW], or list|tuple of t
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/posewarper.py:211
↓ 5 callersMethodforward_dummy
Used for computing network FLOPs.
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/multiview_pose.py:681
↓ 5 callersMethodget_box
(self)
LHM/utils/bbox.py:67
↓ 5 callersFunctionget_eye_keypoint_ids
A helpfer function to get the keypoint indices of left and right eyes from the model config. Args: model_cfg (Config): pose model con
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/pose.py:9
↓ 5 callersMethodget_text_features
(self, *args, **kwargs)
diffsynth/extensions/ImageQualityMetric/trainer/models/clip_model.py:110
↓ 5 callersFunctionget_warp_matrix
Calculate the transformation matrix under the constraint of unbiased. Paper ref: Huang et al. The Devil is in the Details: Delving into Unbiased
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/post_transforms.py:312
↓ 5 callersFunctioninverse_perspective_projection
This function computes the inverse perspective projection of a set of points given an estimated distance. Input: points (bs, N, 2): 2
engine/pose_estimation/pose_utils/camera.py:28
↓ 5 callersFunctionkeypoint_3d_auc
Calculate the Area Under the Curve (3DAUC) computed for a range of 3DPCK thresholds. Paper ref: `Monocular 3D Human Pose Estimation In The Wi
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/pose3d_eval.py:114
↓ 5 callersFunctionkeypoint_mpjpe
Calculate the mean per-joint position error (MPJPE) and the error after rigid alignment with the ground truth (P-MPJPE). Note: - batc
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/pose3d_eval.py:7
↓ 5 callersFunctionload_file_from_url
Load file form http url, will download models if necessary. Ref:https://github.com/1adrianb/face-alignment/blob/master/face_alignment/utils.py
ProPainter/utils/download_util.py:83
↓ 5 callersFunctionload_url_dist
In distributed setting, this function only download checkpoint at local rank 0.
engine/pose_estimation/third-party/ViTPose/mmcv_custom/checkpoint.py:115
↓ 5 callersFunctionmodulate
(x, shift=None, scale=None, tr_shift=None, tr_scale=None, tr_token=None)
diffsynth/models/hunyuan_video_dit.py:285
↓ 5 callersFunctionmultilabel_classification_accuracy
Get multi-label classification accuracy. Note: - batch size: N - label number: L Args: pred (np.ndarray[N, L, 2]): m
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/top_down_eval.py:658
↓ 5 callersFunctionoks_iou
Calculate oks ious. Args: g: Ground truth keypoints. d: Detected keypoints. a_g: Area of the ground truth object.
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/nms.py:51
↓ 5 callersMethodparse
Group keypoints into poses given heatmap and tag. Note: batch size: N number of keypoints: K heatmap heig
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/group.py:360
↓ 5 callersFunctionpose_pck_accuracy
Calculate the pose accuracy of PCK for each individual keypoint and the averaged accuracy across all keypoints from heatmaps. Note: P
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/top_down_eval.py:136
↓ 5 callersMethodquery
model_name: query model_name
LHM/utils/model_download_utils.py:76
↓ 5 callersMethodremove
(self, module)
ProPainter/model/modules/spectral_norm.py:98
↓ 5 callersMethodrender_mesh
(self, vertices, background, colors=[0.8, 0.8, 0.8])
engine/pose_estimation/pose_utils/render.py:219
↓ 5 callersFunctionresize
(input, size=None, scale_factor=None, mode="nearest", align_corners=None, warning=False)
LHM/models/encoders/dinov2/hub/depth/ops.py:11
↓ 5 callersFunctionresize
(input, size=None, scale_factor=None, mode="nearest", align_corners=None, warning=False)
engine/pose_estimation/dinov2/dinov2/hub/depth/ops.py:11
↓ 5 callersFunctionresize
(input, size=None, scale_factor=None, mode='nearest', align_corner
engine/pose_estimation/third-party/ViTPose/mmpose/models/utils/ops.py:8
↓ 5 callersMethodsetdefault
(self, *args, **kwargs)
LHM/outputs/base.py:69
↓ 5 callersMethodsetdefault
(self, *args, **kwargs)
engine/ouputs.py:69
↓ 5 callersFunctionsetup_logging
Setup logging. Args: output: A file name or a directory to save log files. If None, log files will not be saved. If outp
engine/pose_estimation/dinov2/dinov2/logging/__init__.py:82
↓ 5 callersFunctionto_tensors
()
ProPainter/core/utils.py:94
↓ 5 callersMethodupdate
(self, source_guide, target_guide, source_style, target_style, nnf, err, upd_nnf)
diffsynth/extensions/FastBlend/patch_match.py:158
↓ 5 callersMethodupdate
(self, val, n=1)
engine/pose_estimation/pose_utils/training.py:214
↓ 5 callersMethodvalue
(self)
engine/pose_estimation/dinov2/dinov2/logging/helpers.py:184
↓ 5 callersFunctionwindow_partition
Args: x: shape is (B, T, H, W, C) window_size (tuple[int]): window size Returns: windows: (B, num_windows_h, num_wind
ProPainter/model/modules/sparse_transformer.py:104
↓ 4 callersMethod__init__
(self, inplanes, planes, stride=1, downsample=None, use_se=True)
LHM/models/arcface_utils.py:87
↓ 4 callersMethod__init__
(self, num_inference_steps, rel_l1_thresh, model_id)
diffsynth/pipelines/wan_video.py:341
↓ 4 callersMethod__init__
(self, hidden_size, patch_size, out_channels)
diffsynth/models/omnigen.py:239
↓ 4 callersMethod__init__
(self)
diffsynth/models/lora.py:16
↓ 4 callersMethod__init__
(self, aug_params=None, root='datasets/HD1k')
ProPainter/RAFT/datasets.py:181
↓ 4 callersMethod__init__
(self, depth, in_channels=3, stem_channels=64,
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/resnet.py:486
↓ 4 callersMethod__init__
(self, fc_layers, use_dropout, drop_prob, use_activation)
engine/pose_estimation/third-party/ViTPose/mmpose/models/misc/discriminator.py:29
↓ 4 callersFunction_block_cls
(**kwargs)
LHM/models/encoders/dinov2/models/vision_transformer.py:376
↓ 4 callersFunction_box2cs
This encodes bbox(x,y,w,h) into (center, scale) Args: x, y, w, h Returns: tuple: A tuple containing center and scale.
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference.py:86
↓ 4 callersMethod_cal_distance
calculate the distance of points p1 and p2.
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/nodes/valentinemagic_node.py:68
↓ 4 callersFunction_chunked_feed_forward
( ff: nn.Module, hidden_states: torch.Tensor, chunk_dim: int, chunk_size: int )
LHM/models/transformer_dit.py:170
↓ 4 callersFunction_clean_tag
(tag: str)
diffsynth/extensions/ImageQualityMetric/open_clip/pretrained.py:235
↓ 4 callersFunction_config_to_kwargs
(args)
diffsynth/models/kolors_text_encoder.py:710
↓ 4 callersMethod_encode_image
(self, images, normalize=True)
diffsynth/extensions/ImageQualityMetric/open_clip/coca_model.py:131
↓ 4 callersMethod_get_deconv_cfg
Get configurations for deconv layers.
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/deconv_head.py:232
↓ 4 callersFunction_get_joints
(anno, ann_info, int_sigma)
engine/pose_estimation/third-party/ViTPose/tests/test_pipelines/test_bottom_up_pipelines.py:40
↓ 4 callersMethod_get_scale
(self, image_size, resized_size)
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/pipelines/bottom_up_transform.py:427
↓ 4 callersMethod_gram_mat
Calculate Gram matrix. Args: x (torch.Tensor): Tensor with shape of (n, c, h, w). Returns: torch.Tensor: Gra
ProPainter/core/loss.py:101
↓ 4 callersFunction_make_dinov2_dpt_depther
( *, arch_name: str = "vit_large", pretrained: bool = True, weights: Union[Weights, str] = Wei
LHM/models/encoders/dinov2/hub/depthers.py:180
↓ 4 callersFunction_make_dinov2_dpt_depther
( *, arch_name: str = "vit_large", pretrained: bool = True, weights: Union[Weights, str] = Wei
engine/pose_estimation/dinov2/dinov2/hub/depthers.py:180
↓ 4 callersFunction_make_dinov2_linear_depther
( *, arch_name: str = "vit_large", layers: int = 4, pretrained: bool = True, weights: Unio
LHM/models/encoders/dinov2/hub/depthers.py:70
↓ 4 callersFunction_make_dinov2_linear_depther
( *, arch_name: str = "vit_large", layers: int = 4, pretrained: bool = True, weights: Unio
engine/pose_estimation/dinov2/dinov2/hub/depthers.py:70
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size=None, use_conv1=True)
LHM/models/encoders/dinov2_dpt.py:13
↓ 4 callersMethod_make_layer
(self, block, planes, num_blocks, stride=1)
LHM/models/arcface_utils.py:277
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
diffsynth/extensions/ImageQualityMetric/open_clip/modified_resnet.py:132
↓ 4 callersMethod_parse_losses
Parse the raw outputs (losses) of the network. Args: losses (dict): Raw output of the network, which usually contain
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/base.py:38
↓ 4 callersMethod_sort_and_unique_bboxes
sort kpts and remove the repeated ones.
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/datasets/top_down/topdown_mpii_dataset.py:267
↓ 4 callersFunction_xyxy2xywh
Transform the bbox format from x1y1x2y2 to xywh. Args: bbox_xyxy (np.ndarray): Bounding boxes (with scores), shaped (n, 4) or
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference.py:51
↓ 4 callersFunctionaggregate_scale
Aggregate multi-scale outputs. Note: batch size: N keypoints num : K heatmap width: W heatmap height: H Args
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/bottom_up_eval.py:254
↓ 4 callersFunctionall_zeros
Check if the weight(and bias) is all zero.
engine/pose_estimation/third-party/ViTPose/tests/test_backbones/test_resnet.py:20
↓ 4 callersFunctionapply_gate
(x, gate, tr_gate=None, tr_token=None)
diffsynth/models/hunyuan_video_dit.py:394
↓ 4 callersMethodapply_nnf_to_image
(self, nnf, source)
diffsynth/extensions/FastBlend/patch_match.py:43
↓ 4 callersMethodbackward
(ctx, g)
LHM/models/rendering/utils/utils.py:106
↓ 4 callersMethodbroadcast
(tensors, dim=-1)
diffsynth/models/cog_dit.py:168
↓ 4 callersFunctionbuild_optimizer
Creates the optimizer
LHM/models/rendering/smplx/transfer_model/optimizers/optim_factory.py:29
↓ 4 callersFunctioncharbonnier_loss
Compute the generalized charbonnier loss of the difference tensor x All positions where mask == 0 are not taken into account x: a tensor
ProPainter/model/modules/flow_comp_raft.py:94
↓ 4 callersFunctioncheck_state_dict
(state_dict, unwanted_prefixes=['_orig_mod.', 'module.'])
engine/BiRefNet/utils.py:29
↓ 4 callersMethodclamp_bound
(self, nnf)
diffsynth/extensions/FastBlend/patch_match.py:89
↓ 4 callersFunctioncompose_extrinsic_RT
Compose the standard form extrinsic matrix from RT. Batched I/O.
LHM/datasets/cam_utils.py:36
↓ 4 callersFunctionconv3x3
A simple wrapper for 3x3 convolution with padding. Args: inplanes (int): Channel number of inputs. outplanes (int): Channel numbe
LHM/models/arcface_utils.py:20
↓ 4 callersFunctioncreate_intrinsics
return: (3, 2)
LHM/datasets/cam_utils.py:183
↓ 4 callersFunctiondownload_pretrained_from_hf
( model_id: str, filename: str = 'open_clip_pytorch_model.bin', revision=None,
diffsynth/extensions/ImageQualityMetric/open_clip/pretrained.py:337
↓ 4 callersMethodenable_vram_management
(self, num_persistent_param_in_dit=None)
diffsynth/pipelines/wan_video.py:39
↓ 4 callersMethodencode_prompt
(self, prompt, positive=True, t5_sequence_length=512)
diffsynth/pipelines/flux_image.py:187
↓ 4 callersMethodencode_prompt
(self, prompt, positive=True)
diffsynth/pipelines/wan_video_v2v_combine.py:1261
↓ 4 callersMethodencode_video
(self, processed_images, tiled=False, tile_size=64, tile_stride=32)
diffsynth/pipelines/sd_video.py:133
↓ 4 callersMethodextra_repr
(self)
LHM/models/rendering/smplx/smplx/body_models.py:312
↓ 4 callersMethodextra_repr
(self)
LHM/models/rendering/smplx_gsavatar/body_models.py:290
↓ 4 callersFunctionextract_features
(model, dataset, batch_size, num_workers, gather_on_cpu=False)
engine/pose_estimation/dinov2/dinov2/eval/utils.py:98
↓ 4 callersMethodfetch_models
(self, model_manager: ModelManager)
diffsynth/pipelines/wan_video.py:127
↓ 4 callersFunctionfind_dynamic_lmk_idx_and_bcoords
Compute the faces, barycentric coordinates for the dynamic landmarks To do so, we first compute the rotation of the neck around the y-axis a
LHM/models/rendering/smplx/smplx/lbs.py:29
↓ 4 callersFunctionfind_dynamic_lmk_idx_and_bcoords
Compute the faces, barycentric coordinates for the dynamic landmarks To do so, we first compute the rotation of the neck around the y-axis
LHM/models/rendering/smplx_gsavatar/lbs.py:30
↓ 4 callersFunctionflash_attention
(q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, num_heads: int, compatibility_mode=False)
diffsynth/models/wan_video_dit.py:27
↓ 4 callersFunctionfliplr_joints
Flip human joints horizontally. Note: - num_keypoints: K Args: joints_3d (np.ndarray([K, 3])): Coordinates of keypoints.
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/post_transforms.py:13
↓ 4 callersFunctionflowread
Read an optical flow map. Args: flow_path (ndarray or str): Flow path. quantize (bool): whether to read quantized pair, if set to
ProPainter/utils/flow_util.py:28
↓ 4 callersMethodforward_dummy
(self, x)
engine/pose_estimation/third-party/ViTPose/tests/test_onnx.py:20
↓ 4 callersMethodgelu
(self, gate: torch.Tensor)
diffsynth/models/stepvideo_dit.py:576
↓ 4 callersFunctiongetProjectionMatrix_refine
(K: torch.Tensor, H, W, znear=0.001, zfar=1000)
graphics_utils.py:82
↓ 4 callersFunctiongetWorld2View2
(R, t, translate=np.array([.0, .0, .0]), scale=1.0)
graphics_utils.py:38
↓ 4 callersFunctionget_args_parser
( description: Optional[str] = None, parents: Optional[List[argparse.ArgumentParser]] = None, add_
engine/pose_estimation/dinov2/dinov2/run/submit.py:24
↓ 4 callersFunctionget_gaussian_kernel1d
r"""Function that returns Gaussian filter coefficients. Args: kernel_size: filter size. It should be odd and positive. sigma: gau
ProPainter/model/canny/kernels.py:346
↓ 4 callersMethodget_image_features
(self, *args, **kwargs)
diffsynth/extensions/ImageQualityMetric/trainer/models/clip_model.py:113
← previousnext →301–400 of 5,947, ranked by callers