MCPcopy Create free account

hub / github.com/MyNiuuu/AniCrafter / functions

Functions5,947 in github.com/MyNiuuu/AniCrafter

↓ 4 callersMethodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
LHM/models/encoders/dinov2/models/vision_transformer.py:331
↓ 4 callersFunctionimage_transform
( image_size: int, is_train: bool, mean: Optional[Tuple[float, ...]] = None, s
diffsynth/extensions/ImageQualityMetric/open_clip/transform.py:77
↓ 4 callersMethodimg_propagation
(self, masked_frames, completed_flows, masks, interpolation='nearest')
ProPainter/model/propainter.py:315
↓ 4 callersFunctionimwrite
Write image to file. Args: img (ndarray): Image array to be written. file_path (str): Image file path. params (None or li
ProPainter/utils/img_util.py:135
↓ 4 callersMethodinfer
(self, image_path, save_gaussian_path=None)
lhm_runner.py:418
↓ 4 callersFunctioninference_interhand_3d_model
Inference a single image with a list of hand bounding boxes. Note: - num_bboxes: N - num_keypoints: K Args: model (n
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference_3d.py:469
↓ 4 callersMethodinit_weights
Weight initialization for model.
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/top_down.py:82
↓ 4 callersMethodinit_weights
Initialize model weights.
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/interhand_3d_head.py:176
↓ 4 callersFunctionis_enabled
Returns: True if distributed training is enabled
engine/pose_estimation/dinov2/dinov2/distributed/__init__.py:19
↓ 4 callersFunctionlets_dance_xl
( unet: SDXLUNet, motion_modules: SDXLMotionModel = None, controlnet: MultiControlNetManager = Non
diffsynth/pipelines/dancer.py:119
↓ 4 callersMethodload_lora_v2_combine
(self, file_path="", state_dict={}, lora_alpha=1.0, is_final = True)
diffsynth/models/model_manager.py:571
↓ 4 callersFunctionload_state_dict
Load state_dict to a module. This method is modified from :meth:`torch.nn.Module.load_state_dict`. Default value for ``strict`` is set to ``F
engine/pose_estimation/third-party/ViTPose/mmcv_custom/checkpoint.py:47
↓ 4 callersMethodlog_every
(self, iterable, print_freq, header=None, n_iterations=None, start_iteration=0)
engine/pose_estimation/dinov2/dinov2/logging/helpers.py:66
↓ 4 callersFunctionminimize
Helper function for running an optimization process Args: - optimizer: The PyTorch optimizer object - closure: The fu
LHM/models/rendering/smplx/transfer_model/optimizers/minimize.py:26
↓ 4 callersMethodnext
(self)
ProPainter/core/prefetch_dataloader.py:74
↓ 4 callersMethodnms
Non-Maximum Suppression for heatmaps. Args: heatmap(torch.Tensor): Heatmaps before nms. Returns: torch.Tenso
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/group.py:155
↓ 4 callersMethodpad_image
(self, image)
diffsynth/extensions/FastBlend/patch_match.py:37
↓ 4 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path to r
engine/pose_estimation/third-party/ViTPose/setup.py:31
↓ 4 callersMethodpatch_multiple_resolutions
(self, latents, padding_latent=None, is_input_images:bool=False)
diffsynth/models/omnigen.py:451
↓ 4 callersFunctionpath_to_image
(path, size=(1024, 1024), color_type=['rgb', 'gray'][0])
engine/BiRefNet/utils.py:11
↓ 4 callersFunctionperspective_projection
This function computes the perspective projection of a set of points assuming the extrinsinc params have already been applied Args: -
engine/pose_estimation/pose_utils/camera.py:12
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
LHM/models/encoders/dinov2/models/vision_transformer.py:236
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
engine/pose_estimation/dinov2/dinov2/models/vision_transformer.py:213
↓ 4 callersMethodprocess_mllm_input
(self, mllm_inputs, target_img_size)
diffsynth/prompters/omnigen_prompter.py:259
↓ 4 callersFunctionrankstr
()
engine/pose_estimation/dinov2/dinov2/fsdp/__init__.py:81
↓ 4 callersMethodregister
(self, module)
engine/pose_estimation/third-party/ViTPose/mmpose/utils/hooks.py:13
↓ 4 callersFunctionrender_mesh
(mesh, face, cam_param, bkg, blend_ratio=1.0, return_bg_mask=False)
LHM/models/rendering/smplx/vis_utils.py:73
↓ 4 callersFunctionresize_flow
(flow, newh, neww)
ProPainter/utils/flow_util.py:6
↓ 4 callersFunctionrotation_6d_to_axis_angle
(d6: torch.Tensor)
engine/pose_estimation/pose_utils/rot6d.py:424
↓ 4 callersFunctionrotation_6d_to_matrix
Converts 6D rotation representation by Zhou et al. [1] to rotation matrix using Gram--Schmidt orthogonalisation per Section B of [1]. Arg
engine/pose_estimation/pose_utils/rot6d.py:378
↓ 4 callersFunctionsafe_str
(x)
diffsynth/prompters/omost.py:95
↓ 4 callersMethodscale
(self, scale, width, height)
engine/SegmentAPI/base.py:115
↓ 4 callersMethodset_full_adapter
(self)
diffsynth/models/sd_ipadapter.py:26
↓ 4 callersMethodshape
(self)
diffsynth/extensions/FastBlend/data.py:129
↓ 4 callersMethodshow_result
Visualize the results.
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/base.py:129
↓ 4 callersMethodsmpl_forward
Apply a specific SMPL model with given model parameters. Note: B: batch size V: number of vertices K: num
engine/pose_estimation/third-party/ViTPose/mmpose/models/utils/smpl.py:63
↓ 4 callersMethodssim
(self, pred: np.ndarray, gt: np.ndarray)
engine/BiRefNet/evaluation/metrics.py:321
↓ 4 callersFunctionsubmit_jobs
(task_class, args, name: str)
engine/pose_estimation/dinov2/dinov2/run/submit.py:92
↓ 4 callersMethodtrain
training entry
ProPainter/core/trainer.py:321
↓ 4 callersMethodunpatchify
x: (N, T, patch_size**2 * C) imgs: (N, H, W, C)
diffsynth/models/omnigen.py:413
↓ 4 callersFunctionvertices2landmarks
Calculates landmarks by barycentric interpolation Parameters ---------- vertices: torch.tensor BxVx3, dtype = torch.float32 The t
LHM/models/rendering/smplx/smplx/lbs.py:105
↓ 4 callersFunctionvertices2landmarks
Calculates landmarks by barycentric interpolation Parameters ---------- vertices: torch.tensor BxVx3, dtype = torch.float32
LHM/models/rendering/smplx_gsavatar/lbs.py:108
↓ 4 callersFunctionvis_3d_pose_result
Visualize the 3D pose estimation results. Args: model (nn.Module): The loaded model. result (list[dict])
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference_3d.py:359
↓ 4 callersFunctionwarp_affine_joints
Apply affine transformation defined by the transform matrix on the joints. Args: joints (np.ndarray[..., 2]): Origin coordinate of jo
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/post_transforms.py:343
↓ 3 callersMethod__getitem__
(self, item)
diffsynth/data/video.py:120
↓ 3 callersMethod__init__
( self, dim: int, num_heads: int, # num_attention_heads: int, # attent
LHM/models/transformer_dit.py:64
↓ 3 callersMethod__init__
(self, num_inference_steps, rel_l1_thresh, model_id)
diffsynth/pipelines/wan_video_v2v_combine.py:37
↓ 3 callersMethod__init__
(self, num_feat, num_grow_ch=32)
diffsynth/extensions/ESRGAN/__init__.py:29
↓ 3 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
diffsynth/extensions/ImageQualityMetric/BLIP/vit.py:22
↓ 3 callersMethod__init__
( self, in_channels: int = 3, out_channels: int = 16, eps=1e-6, dropou
diffsynth/models/hunyuan_video_vae_encoder.py:70
↓ 3 callersMethod__init__
(self, disable_guidance_embedder=False, num_joint_blocks=5, num_single_blocks=10, num_mode=0, mode_dict={}, ad
diffsynth/models/flux_controlnet.py:9
↓ 3 callersMethod__init__
(self)
diffsynth/models/cog_dit.py:109
↓ 3 callersMethod__init__
(self)
diffsynth/models/sdxl_ipadapter.py:44
↓ 3 callersMethod__init__
(self, model_path='weights/raft-things.pth', device='cuda')
ProPainter/model/modules/flow_comp_raft.py:29
↓ 3 callersMethod__init__
(self, output_dim=128, norm_fn='batch', dropout=0.0)
ProPainter/RAFT/extractor.py:119
↓ 3 callersMethod__init__
(self, depth, groups=1, width_per_group=4,
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/resnest.py:315
↓ 3 callersMethod__init__
Project layer to get voxel feature. Adapted from https://github.com/microsoft/voxelpose- pytorch/blob/main/lib/models/project_layer.py
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/multiview_pose.py:17
↓ 3 callersMethod__init__
(self, in_channels, out_channels, depth_size=64,
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/interhand_3d_head.py:33
↓ 3 callersMethod__init__
(self, out_channels, norm_cfg=dict(type='BN'))
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/topdown_heatmap_multi_stage_head.py:333
↓ 3 callersMethod__init__
(self, channels)
engine/BiRefNet/models/birefnet.py:233
↓ 3 callersMethod__init__
(self, in_channels=64, out_channels=None, output_stride=16)
engine/BiRefNet/models/modules/aspp.py:34
↓ 3 callersMethod__init__
(self, num_channels: int, eps: float = 1e-6)
engine/BiRefNet/models/modules/prompt_encoder.py:222
↓ 3 callersMethod__init__
(self, in_channels=3 + 1)
engine/BiRefNet/models/refinement/refiner.py:65
↓ 3 callersFunction_build_text_tower
( embed_dim: int, text_cfg: CLIPTextCfg, quick_gelu: bool = False, cast_dtype:
diffsynth/extensions/ImageQualityMetric/open_clip/model.py:137
↓ 3 callersFunction_build_vision_tower
( embed_dim: int, vision_cfg: CLIPVisionCfg, quick_gelu: bool = False, cast_dt
diffsynth/extensions/ImageQualityMetric/open_clip/model.py:75
↓ 3 callersFunction_calc_distances
Calculate the normalized distances between preds and target. Note: batch_size: N num_keypoints: K dimension of keypoints:
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/top_down_eval.py:10
↓ 3 callersFunction_create_inputs
(joint_num_in, joint_channel_in, joint_num_out, joint
engine/pose_estimation/third-party/ViTPose/tests/test_models/test_pose_lifter_forward.py:9
↓ 3 callersMethod_denormalize_joints
Denormalize joint coordinates with given statistics mean and std. Args: x (np.ndarray[N, K, 3]): Normalized joint coordinates.
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/temporal_regression_head.py:265
↓ 3 callersMethod_forward
(self, img, bbox=None, sup_res=True)
engine/SegmentAPI/SAM.py:438
↓ 3 callersMethod_freeze_stages
Freeze parameters.
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/vit.py:249
↓ 3 callersFunction_get_multi_scale_size
Get the size for multi-scale training. Args: image: Input image. input_size (np.ndarray[2]): Size (w, h) of the image input.
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/pipelines/bottom_up_transform.py:16
↓ 3 callersFunction_load_checkpoint
Load checkpoint from somewhere (modelzoo, file, url). Args: filename (str): Accept local filepath, URL, ``torchvision://xxx``,
engine/pose_estimation/third-party/ViTPose/mmcv_custom/checkpoint.py:231
↓ 3 callersFunction_load_pose
(pose)
LHM/runners/infer/utils.py:66
↓ 3 callersFunction_make_input
Make zero inputs for AE loss. Args: t (torch.Tensor): input requires_grad (bool): Option to use requires_grad. device: to
engine/pose_estimation/third-party/ViTPose/mmpose/models/losses/multi_loss_factory.py:12
↓ 3 callersMethod_make_layer
(self, dim, stride=1)
ProPainter/RAFT/extractor.py:159
↓ 3 callersMethod_make_layer
(self, dim, stride=1)
ProPainter/RAFT/extractor.py:235
↓ 3 callersMethod_make_stage
Make stage.
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/hrnet.py:476
↓ 3 callersMethod_make_transition_layer
Make transition layer.
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/hrnet.py:394
↓ 3 callersMethod_parse_h36m_imgname
Parse imgname to get information of subject, action and camera. A typical h36m image filename is like: S1_Directions_1.54138969_00000
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/datasets/body3d/body3d_h36m_dataset.py:150
↓ 3 callersMethod_pixel2cam
Transform the joints from their pixel coordinates to their camera coordinates. Note: N: number of joints Args:
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/datasets/base/kpt_3d_sview_rgb_img_top_down_dataset.py:148
↓ 3 callersMethod_report_mpjpe
Cauculate mean per joint position error (MPJPE) or its variants like P-MPJPE or N-MPJPE. Args: keypoint_results (list): K
engine/pose_estimation/third-party/ViTPose/mmpose/datasets/datasets/body3d/body3d_h36m_dataset.py:276
↓ 3 callersMethod_restore_global_position
Restore global position of the root-centered joints. Args: x (np.ndarray[N, K, 3]): root-centered joint coordinates r
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/temporal_regression_head.py:279
↓ 3 callersFunction_run
(command)
engine/pose_estimation/dinov2/dinov2/utils/utils.py:49
↓ 3 callersFunction_xywh2xyxy
Transform the bbox format from xywh to x1y1x2y2. Args: bbox_xywh (ndarray): Bounding boxes (with scores), shaped (n, 4) or (n
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference.py:69
↓ 3 callersMethodadd_summary
Add tensorboard summary.
ProPainter/core/trainer_flow_w_edge.py:136
↓ 3 callersFunctionall_gather_and_flatten
(tensor_rank)
engine/pose_estimation/dinov2/dinov2/eval/utils.py:86
↓ 3 callersFunctionapply_bugeye_effect
Apply bug-eye effect. Args: img (np.ndarray): Image data. pose_results (list[dict]): The pose estimation results containing:
engine/pose_estimation/third-party/ViTPose/mmpose/core/visualization/effects.py:6
↓ 3 callersFunctionapply_rotary_emb
( xq: torch.Tensor, xk: torch.Tensor, freqs_cis, head_first: bool = False, )
diffsynth/models/hunyuan_video_dit.py:354
↓ 3 callersFunctionapply_sunglasses_effect
Apply sunglasses effect. Args: img (np.ndarray): Image data. pose_results (list[dict]): The pose estimation results containing:
engine/pose_estimation/third-party/ViTPose/mmpose/core/visualization/effects.py:60
↓ 3 callersMethodattention
(self, x, is_init=True)
diffsynth/models/stepvideo_vae.py:478
↓ 3 callersFunctionavaliable_device
()
engine/SegmentAPI/SAM.py:37
↓ 3 callersFunctionbase_conv3d
(x, conv_layer, channel_last=False, residual=None, only_return_output=False)
diffsynth/models/stepvideo_vae.py:74
↓ 3 callersFunctionbase_group_norm
(x, norm_layer, act_silu=False, channel_last=False)
diffsynth/models/stepvideo_vae.py:32
↓ 3 callersFunctionbase_group_norm_with_zero_pad
(x, norm_layer, act_silu=True, pad_size=2)
diffsynth/models/stepvideo_vae.py:405
↓ 3 callersFunctionbasic_clean
(text)
diffsynth/prompters/wan_prompter.py:11
↓ 3 callersFunctionbatch_rodrigues
Convert axis-angle representation to rotation matrix. Args: theta: size = [B, 3] Returns: Rotation matrix corresponding to the
engine/pose_estimation/third-party/ViTPose/mmpose/models/utils/geometry.py:25
↓ 3 callersMethodbinary_mask
(self, mask, th=0.1)
ProPainter/model/propainter.py:98
↓ 3 callersFunctionblend_shapes
Calculates the per vertex displacement due to the blend shapes Parameters ---------- betas : torch.tensor Bx(num_betas) Blend s
LHM/models/rendering/smplx_gsavatar/lbs.py:275
↓ 3 callersMethodbuild_1d_mask
(self, length, left_bound, right_bound, border_width)
diffsynth/models/hunyuan_video_vae_decoder.py:408
↓ 3 callersMethodbuild_1d_mask
(self, length, left_bound, right_bound, border_width)
diffsynth/models/hunyuan_video_vae_encoder.py:207
← previousnext →401–500 of 5,947, ranked by callers