MCPcopy Create free account

hub / github.com/MyNiuuu/AniCrafter / functions

Functions5,947 in github.com/MyNiuuu/AniCrafter

↓ 13 callersFunctioncast_to
(weight, dtype, device)
diffsynth/vram_management/layers.py:5
↓ 13 callersFunctionget_track_id
Get track id for each person instance on the current frame. Args: results (list[dict]): The bbox & pose results of the current frame
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference_tracking.py:167
↓ 13 callersFunctionvis_pose_result
Visualize the detection results on the image. Args: model (nn.Module): The loaded detector. img (str | np.ndarray): Image filenam
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference.py:674
↓ 12 callersMethodget_pose_results
Get pose estimation results of the message. Args: tag (str, optional): If given, only the results with the tag wi
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/message.py:161
↓ 12 callersFunctionhash_state_dict_keys
(state_dict, with_shape=True)
diffsynth/models/utils.py:179
↓ 12 callersMethodinit_weights
(self, pretrained=None)
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/shufflenet_v1.py:260
↓ 12 callersMethodinit_weights
(self, pretrained=None)
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/mobilenet_v2.py:232
↓ 12 callersMethodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/resnet.py:638
↓ 12 callersFunctionload
(module, prefix='')
engine/pose_estimation/third-party/ViTPose/mmcv_custom/checkpoint.py:73
↓ 12 callersFunctionload_checkpoint
Load checkpoint from a file or URI. Args: model (Module): Module to load checkpoint. filename (str): Accept local filepath, URL,
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/utils/utils.py:7
↓ 11 callersMethod__init__
(self, embed_dim=512, image_size=224, patch_size=16,
diffsynth/models/wan_video_image_encoder.py:483
↓ 11 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
engine/BiRefNet/models/backbones/pvt_v2.py:14
↓ 11 callersFunction_make_dinov2_model
( *, arch_name: str = "vit_large", img_size: int = 518, patch_size: int = 14, init_values:
LHM/models/encoders/dinov2/hub/backbones.py:18
↓ 11 callersFunction_make_dinov2_model
( *, arch_name: str = "vit_large", img_size: int = 518, patch_size: int = 14, init_values:
engine/pose_estimation/dinov2/dinov2/hub/backbones.py:18
↓ 11 callersMethod_report_metric
Keypoint evaluation. Report mean per joint position error (MPJPE) and mean per joint position error after rigid alignment (MPJPE-PA)
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/datasets/mesh/mesh_h36m_dataset.py:61
↓ 11 callersMethodget_command
(self, token)
diffsynth/prompters/kolors_prompter.py:114
↓ 11 callersMethodinit_weights
Initialize model weights.
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/ae_higher_resolution_head.py:240
↓ 11 callersMethodsave
Save parameters every eval_epoch
ProPainter/core/trainer.py:274
↓ 11 callersMethodtrain
(self, mode=True)
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/shufflenet_v1.py:323
↓ 11 callersMethodtrain
(self, mode=True)
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/mobilenet_v2.py:269
↓ 10 callersFunction_demo_inputs
Create a superset of inputs needed to run backbone. Args: input_shape (tuple): input batch dimensions. Default: (1, 3, 64, 64
engine/pose_estimation/third-party/ViTPose/tests/test_models/test_bottom_up_head.py:472
↓ 10 callersMethodbuild
(self)
ProPainter/core/metrics.py:544
↓ 10 callersFunctionbuild_posenet
Build posenet.
engine/pose_estimation/third-party/ViTPose/mmpose/models/builder.py:37
↓ 10 callersFunctionconv
(in_planes, out_planes, kernel_size=3, stride=1, padding=1, dilation=1)
diffsynth/extensions/RIFE/__init__.py:26
↓ 10 callersMethodenable_cpu_offload
(self)
diffsynth/pipelines/base.py:91
↓ 10 callersMethodevaluate
Evaluate coco keypoint results. The pose prediction results will be saved in ``${res_folder}/result_keypoints.json``. Note:
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/datasets/bottom_up/bottom_up_coco.py:143
↓ 10 callersMethodforward
Calls either forward_train or forward_test depending on whether return_loss=True. Note this setting will change the expected inputs. W
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/top_down.py:91
↓ 10 callersMethodforward
Calls either forward_train or forward_test depending on whether return_loss=True. Note this setting will change the expected inputs. W
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/posewarper.py:62
↓ 10 callersFunctionget_lora_loaders
()
diffsynth/models/lora.py:374
↓ 10 callersFunctionget_model_path
(model_name)
diffsynth/extensions/ImageQualityMetric/config.py:8
↓ 10 callersMethodinit_weights
(self, pretrained=None)
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/shufflenet_v2.py:262
↓ 10 callersFunctionkeypoint_pck_accuracy
Calculate the pose accuracy of PCK for each individual keypoint and the averaged accuracy across all keypoints for coordinates. Note:
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/top_down_eval.py:179
↓ 10 callersFunctionlbs
Performs Linear Blend Skinning with the given shape and pose parameters Parameters ---------- betas : torch.tensor BxNB The tenso
LHM/models/rendering/smplx/smplx/lbs.py:152
↓ 10 callersFunctionlbs
Performs Linear Blend Skinning with the given shape and pose parameters Parameters ---------- betas : torch.tensor BxNB
LHM/models/rendering/smplx_gsavatar/lbs.py:152
↓ 10 callersFunctionload_image_from_disk_or_url
Load an image file, from disk or url. Args: filename (str): file name on the disk or url link. readFlag (int): readFlag for imdec
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/misc.py:45
↓ 10 callersMethodload_models
(self, file_path_list, model_names=None, device=None, torch_dtype=None)
diffsynth/models/model_manager.py:767
↓ 10 callersMethodpreprocess_images
(self, images)
diffsynth/pipelines/base.py:35
↓ 10 callersMethodprocess_prompt
(self, prompt, positive=True)
diffsynth/prompters/base_prompter.py:57
↓ 10 callersMethodrelease
(self)
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/misc.py:332
↓ 10 callersFunctionspectral_norm
(module, mode=True)
ProPainter/model/propainter.py:529
↓ 10 callersMethodupdate
(self, *args, **kwargs)
LHM/outputs/base.py:79
↓ 9 callersMethod__init__
SMPL model constructor Parameters ---------- model_path: str The path to the folder or to the file where the mode
LHM/models/rendering/smplx/smplx/body_models.py:68
↓ 9 callersMethod__init__
SMPL model constructor Parameters ---------- model_path: str The path to the folder or to the fi
LHM/models/rendering/smplx_gsavatar/body_models.py:49
↓ 9 callersMethod__init__
( self, dim, num_heads=8, qkv_bias=True, scaled_co
diffsynth/extensions/ImageQualityMetric/open_clip/transformer.py:88
↓ 9 callersMethod__init__
(self, embed_dim=1536, num_layers=24, use_rms_norm=False, num_dual_blocks=0, pos_embed_max_size=192)
diffsynth/models/sd3_dit.py:327
↓ 9 callersMethod__init__
(self, dim_in, dim_out)
diffsynth/models/sd_unet.py:22
↓ 9 callersMethod__init__
(self, disable_guidance_embedder=False)
diffsynth/models/flux_dit.py:279
↓ 9 callersFunction_demo_mm_inputs
Create a superset of inputs needed to run test or train batches. Args: input_shape (tuple): input batch dimensions nu
engine/pose_estimation/third-party/ViTPose/tests/test_models/test_top_down_forward.py:465
↓ 9 callersFunctioncast_tensor_type
Recursively convert Tensor in inputs from src_type to dst_type. Args: inputs: Inputs that to be casted. src_type (torch.dtype): S
engine/pose_estimation/third-party/ViTPose/mmpose/core/fp16/utils.py:8
↓ 9 callersMethodevaluate
Evaluate PCKh for MPII dataset. Adapted from https://github.com/leoxiaobin/deep-high-resolution-net.pytorch Copyright (c) Microsoft, u
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/datasets/top_down/topdown_mpii_dataset.py:142
↓ 9 callersMethodforward
(self, x)
engine/pose_estimation/third-party/ViTPose/tests/test_onnx.py:17
↓ 9 callersFunctionget_root_logger
Use `get_logger` method in mmcv to get the root logger. The logger will be initialized if it has not been initialized. By default a StreamHan
engine/pose_estimation/third-party/ViTPose/mmpose/utils/logger.py:7
↓ 9 callersMethodinit_weights
(self, pretrained=None)
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/mobilenet_v3.py:144
↓ 9 callersMethodinit_weights
(self, pretrained=None)
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/vgg.py:148
↓ 9 callersFunctionnms
Greedily select boxes with high confidence and overlap <= thr. Args: dets: [[x1, y1, x2, y2, score]]. thr: Retain overlap < thr.
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/nms.py:9
↓ 9 callersFunctionto_np
(array, dtype=np.float32)
LHM/models/rendering/smplx/smplx/utils.py:114
↓ 9 callersFunctionto_np
(array, dtype=np.float32)
LHM/models/rendering/smplx_gsavatar/utils.py:116
↓ 9 callersMethodtrain
(self, mode=True)
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/shufflenet_v2.py:296
↓ 9 callersMethodtrain
Convert the model into training mode.
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/resnet.py:679
↓ 9 callersFunctionvis_pose_tracking_result
Visualize the pose tracking results on the image. Args: model (nn.Module): The loaded detector. img (str | np.ndarray): Image fil
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference_tracking.py:217
↓ 8 callersMethod__init__
(self, input_transform="resize_concat", in_index=(0, 1, 2, 3), upsample=1, **kwargs)
LHM/models/encoders/dinov2/hub/depth/decode_heads.py:226
↓ 8 callersMethod__init__
(self, input_ids, cu_input_ids, attention_mask, cu_seqlens, max_seq_len)
diffsynth/models/stepvideo_text_encoder.py:185
↓ 8 callersMethod__init__
(self, dim, channel_first=True, images=True, bias=False)
diffsynth/models/wan_video_vae.py:57
↓ 8 callersMethod__init__
(self, dim: int, fn: Callable, norm: str = "layer", norm_cond_dim: int = -1)
engine/pose_estimation/blocks/cross_attn_transformer.py:76
↓ 8 callersMethod__init__
(self, input_transform="resize_concat", in_index=(0, 1, 2, 3), upsample=1, **kwargs)
engine/pose_estimation/dinov2/dinov2/hub/depth/decode_heads.py:226
↓ 8 callersMethod__init__
(self, name: str, frame_buffer: str, output_buffer: Union[s
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/nodes/frame_effect_node.py:696
↓ 8 callersFunction_ceil_to_multiples_of
Transform x to the integral multiple of the base.
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/pipelines/bottom_up_transform.py:11
↓ 8 callersFunction_make_dinov2_linear_classifier
( *, arch_name: str = "vit_large", layers: int = 4, pretrained: bool = True, weights: Unio
LHM/models/encoders/dinov2/hub/classifiers.py:86
↓ 8 callersFunction_make_dinov2_linear_classifier
( *, arch_name: str = "vit_large", layers: int = 4, pretrained: bool = True, weights: Unio
engine/pose_estimation/dinov2/dinov2/hub/classifiers.py:86
↓ 8 callersMethod_to_tuple
(self, x)
diffsynth/pipelines/hunyuan_image.py:20
↓ 8 callersMethoddecode
(self, t: List[int])
diffsynth/prompters/kolors_prompter.py:59
↓ 8 callersMethodencode
(self, x, scale)
diffsynth/models/wan_video_vae.py:525
↓ 8 callersMethodenhance
(self, img, outscale=None, alpha_upsampler="realesrgan")
LHM/models/ESRGANer_utils.py:255
↓ 8 callersMethodfetch_tokenizer
(self, tokenizer_path=None)
diffsynth/prompters/wan_prompter.py:92
↓ 8 callersFunctionflip_back
Flip the flipped heatmaps back to the original form. Note: - batch_size: N - num_keypoints: K - heatmap height: H
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/post_transforms.py:110
↓ 8 callersFunctionfocal2fov
(focal, pixels)
graphics_utils.py:107
↓ 8 callersMethodget_accuracy
Calculate accuracy for hand type. Args: output (list[Tensor]): a list of outputs from multiple heads. target (list[Te
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/interhand_3d_head.py:365
↓ 8 callersMethodget_query_points
transform_mat_neutral_pose is function to warp pre-defined posed to zero-pose
LHM/models/rendering/smpl_x.py:1041
↓ 8 callersFunctionimage2patches
( image, grid_h=2, grid_w=2, patch_ref=None, transformation="b c (hg h) (wg w) -> (b hg wg
engine/BiRefNet/models/birefnet.py:19
↓ 8 callersFunctionimshow_bboxes
Draw bboxes with labels (optional) on an image. This is a wrapper of mmcv.imshow_bboxes. Args: img (str or ndarray): The image to be
engine/pose_estimation/third-party/ViTPose/mmpose/core/visualization/image.py:27
↓ 8 callersFunctionimshow_keypoints
Draw keypoints and links on an image. Args: img (str or Tensor): The image to draw poses on. If an image array is giv
engine/pose_estimation/third-party/ViTPose/mmpose/core/visualization/image.py:107
↓ 8 callersFunctioninference_pose_lifter_model
Inference 3D pose from 2D pose sequences using a pose lifter model. Args: model (nn.Module): The loaded pose lifter model pose_re
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference_3d.py:212
↓ 8 callersFunctionis_norm
Check if is one of the norms.
engine/pose_estimation/third-party/ViTPose/tests/test_backbones/test_shufflenet_v1.py:18
↓ 8 callersMethodload_prompt_refiners
(self, model_manager: ModelManager, refiner_classes=[])
diffsynth/prompters/base_prompter.py:45
↓ 8 callersFunctionmake_dataset
(dir, target_camera_list)
engine/pose_estimation/video2motion.py:726
↓ 8 callersFunctionmatrix_to_axis_angle
Convert rotations given as rotation matrices to axis/angle. Args: matrix: Rotation matrices as tensor of shape (..., 3, 3). Ret
LHM/utils/rot6d.py:111
↓ 8 callersFunctionmodel_fn_wan_video
( dit: WanModel, x: torch.Tensor, timestep: torch.Tensor, context: torch.Tensor, clip_feat
diffsynth/pipelines/wan_video.py:393
↓ 8 callersMethodpop
(self, *args, **kwargs)
LHM/outputs/base.py:74
↓ 8 callersMethodprocess_image
(self, image)
diffsynth/processors/RIFE.py:24
↓ 8 callersMethodput
(self, name, item, block=True, timeout=None)
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/buffer.py:76
↓ 8 callersMethodsave
(self, path)
diffsynth/extensions/ImageQualityMetric/trainer/models/clip_model.py:144
↓ 8 callersMethodscatter
Scatter function. Args: inputs (Tensor): Input Tensor. kwargs (dict): Args for ``mmcv.parallel.scatte
engine/pose_estimation/third-party/ViTPose/mmpose/core/distributed_wrapper.py:97
↓ 8 callersMethodstem
(self, x)
diffsynth/extensions/ImageQualityMetric/open_clip/modified_resnet.py:166
↓ 8 callersMethodto
(self, device)
diffsynth/models/stepvideo_text_encoder.py:191
↓ 8 callersMethodto
(self, device)
engine/pose_estimation/pose_estimator.py:58
↓ 8 callersMethodtrain
(self, mode=True)
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/mobilenet_v3.py:182
↓ 8 callersMethodtrain
(self, mode=True)
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/vgg.py:186
↓ 7 callersMethod__init__
(self, in_channels, num_heads, head_dim, n
diffsynth/models/hunyuan_video_vae_decoder.py:120
↓ 7 callersMethod__init__
(self, in_dim, out_dim)
diffsynth/models/wan_video_dit.py:216
↓ 7 callersMethod__init__
(self, *args, **kwargs)
engine/pose_estimation/third-party/ViTPose/mmpose/deprecated.py:176
← previousnext →101–200 of 5,947, ranked by callers