MCPcopy Create free account

hub / github.com/MyNiuuu/AniCrafter / functions

Functions5,947 in github.com/MyNiuuu/AniCrafter

↓ 2 callersMethodprocess
(self)
diffsynth/prompters/omost.py:198
↓ 2 callersMethodprocess_entity_masks
(self, hidden_states, prompt_emb, entity_prompt_emb, entity_masks, text_ids, image_ids)
diffsynth/models/flux_dit.py:376
↓ 2 callersMethodprocess_ff
(self, hidden_states, attn_output, mod, mod_tr=None, tr_token=None)
diffsynth/models/hunyuan_video_dit.py:444
↓ 2 callersMethodprocess_images
(self, images)
diffsynth/extensions/RIFE/__init__.py:139
↓ 2 callersMethodprocess_images
(self, images)
diffsynth/processors/RIFE.py:33
↓ 2 callersFunctionprocess_mmdet_results
Process mmdet results, and return a list of bboxes. Args: mmdet_results (list|tuple): mmdet results. cat_id (int): category id (d
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference.py:938
↓ 2 callersMethodprocess_qkv
(self, hidden_states, to_qkv, norm_q, norm_k)
diffsynth/models/sd3_dit.py:122
↓ 2 callersMethodprocess_response
(self, output, history)
diffsynth/models/kolors_text_encoder.py:1257
↓ 2 callersMethodprocess_tensors
(self, input_tensor, scale=1.0, batch_size=4)
diffsynth/extensions/RIFE/__init__.py:208
↓ 2 callersMethodprocess_tensors
(self, input_tensor, scale=1.0, batch_size=4)
diffsynth/processors/RIFE.py:43
↓ 2 callersMethodproject_joints
Project 3D joint coordinates to 2D image plane using camera intrinsic parameters. Args: x (torch.Tensor[N, K, 3]): 3D joi
engine/pose_estimation/third-party/ViTPose/mmpose/models/losses/regression_loss.py:396
↓ 2 callersMethodproject_points
Perform orthographic projection of 3D points using the camera parameters, return projected 2D points in image plane. Note:
engine/pose_estimation/third-party/ViTPose/mmpose/models/losses/mesh_loss.py:148
↓ 2 callersFunctionpytorch2onnx
Convert pytorch model to onnx model. Args: model (:obj:`nn.Module`): The pytorch model to be exported. input_shape (tuple[int]):
engine/pose_estimation/third-party/ViTPose/tools/deployment/pytorch2onnx.py:44
↓ 2 callersFunctionquantize
Replace fp16 linear with quantized linear
diffsynth/models/kolors_text_encoder.py:187
↓ 2 callersMethodquery_voxel_skinning_weights
using voxel-based skinning method vs: [B n c]
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:933
↓ 2 callersFunctionrandom_move_control_points
(X, Y, imageHeight,
ProPainter/core/utils.py:336
↓ 2 callersMethodraw_data
(self)
diffsynth/extensions/FastBlend/data.py:110
↓ 2 callersFunctionread_smplx_param
(smplx_data_root, shape_param_file, batch_size=1, device="cuda")
LHM/models/rendering/smpl_x.py:1082
↓ 2 callersMethodrebuild_mesh
(self, v, vertices_id, faces_id, num_dense_samples)
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:513
↓ 2 callersFunctionregression_mlp
Return a fully connected network.
engine/pose_estimation/model.py:796
↓ 2 callersMethodreset
(self)
ProPainter/core/prefetch_dataloader.py:80
↓ 2 callersMethodreset_classifier
(self, num_classes, global_pool="")
engine/BiRefNet/models/backbones/pvt_v2.py:465
↓ 2 callersFunctionreshape_for_broadcast
( freqs_cis, x: torch.Tensor, head_first=False, )
diffsynth/models/hunyuan_video_dit.py:301
↓ 2 callersFunctionresize_pos_embed
(state_dict, model, interpolation: str = 'bicubic', antialias: bool = True)
diffsynth/extensions/ImageQualityMetric/open_clip/model.py:430
↓ 2 callersFunctionresolve
(path)
LHM/models/rendering/smplx/transfer_model/view_pkl.py:130
↓ 2 callersMethodresume
(self, checkpoint, resume_optimizer=True, map_location='default')
engine/pose_estimation/third-party/ViTPose/mmcv_custom/apex_runner/apex_iter_based_runner.py:68
↓ 2 callersFunctionrope_apply
(x, freqs, num_heads)
diffsynth/distributed/xdit_context_parallel.py:27
↓ 2 callersFunctionrope_apply
(x, freqs, num_heads)
diffsynth/models/wan_video_dit.py:89
↓ 2 callersFunctionrotate_half
(x)
diffsynth/models/hunyuan_video_dit.py:347
↓ 2 callersMethodrotate_half
(self, x)
diffsynth/models/hunyuan_dit.py:21
↓ 2 callersFunctionrotate_point
Rotate a point by an angle. Args: pt (list[float]): 2 dimensional point to be rotated angle_rad (float): rotation angle by radian
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/post_transforms.py:293
↓ 2 callersFunctionrow
(A)
LHM/models/rendering/smplx/transfer_model/utils/mesh_utils.py:21
↓ 2 callersMethodrun_model
(self, planes, decoder, sample_coordinates, sample_directions, options)
LHM/models/rendering/utils/renderer.py:186
↓ 2 callersMethods_object
(self, pred: np.ndarray, gt: np.ndarray)
engine/BiRefNet/evaluation/metrics.py:268
↓ 2 callersFunctionsafe_normalize
normalize an array (along the last dim). Args: x (Union[Tensor, ndarray]): x, [..., C] eps (float, optional): eps. Defaults to 1e
LHM/models/rendering/mesh_utils.py:30
↓ 2 callersMethodsample_stratified
Return depths of approximately uniformly spaced samples along rays.
LHM/models/rendering/utils/renderer.py:219
↓ 2 callersMethodsave_ply
(self, path)
LHM/models/rendering/gs_renderer.py:213
↓ 2 callersMethodsave_pretrained
(self, dest)
diffsynth/extensions/ImageQualityMetric/open_clip/tokenizer.py:195
↓ 2 callersFunctionsave_video
(frames_path, video_path, num_frames, fps)
diffsynth/extensions/FastBlend/data.py:23
↓ 2 callersMethodscale
scale bbox with scale factor
LHM/utils/bbox.py:100
↓ 2 callersMethodscale
(self, scale, width, height)
engine/pose_estimation/video2motion.py:115
↓ 2 callersFunctionscale_intrs
(intrs, ratio_x, ratio_y)
LHM/runners/infer/utils.py:34
↓ 2 callersFunctionsearch_parameter
(param, state_dict)
diffsynth/models/utils.py:101
↓ 2 callersMethodset_grad_checkpointing
(self, enable=True)
diffsynth/extensions/ImageQualityMetric/open_clip/model.py:224
↓ 2 callersMethodset_length
(self, length)
diffsynth/extensions/FastBlend/data.py:116
↓ 2 callersMethodset_less_adapter
(self)
diffsynth/models/sd_ipadapter.py:30
↓ 2 callersFunctionset_requires_grad
Set requies_grad for all the networks. Args: nets (nn.Module | list[nn.Module]): A list of networks or a single network.
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/mesh.py:14
↓ 2 callersMethodset_shape
(self, height, width)
diffsynth/extensions/FastBlend/data.py:119
↓ 2 callersMethodsinkhorn_knopp_teacher
(self, teacher_output, teacher_temp, n_iterations=3)
engine/pose_estimation/dinov2/dinov2/loss/dino_clstoken_loss.py:35
↓ 2 callersFunctionsizeof_fmt
Get human readable file size. Args: size (int): File size. suffix (str): Suffix. Default: 'B'. Return: str: Formated
ProPainter/utils/download_util.py:8
↓ 2 callersFunctionsmoothing_factor
(t_e, cutoff)
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/one_euro_filter.py:10
↓ 2 callersMethodsmoothing_factor
(self, cutoff)
engine/pose_estimation/pose_utils/postprocess.py:82
↓ 2 callersFunctionsoft_oks_nms
Soft OKS NMS implementations. Args: kpts_db thr: retain oks overlap < thr. max_dets: max number of detections to keep.
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/nms.py:155
↓ 2 callersMethodsoftmax_center_teacher
(self, teacher_output, teacher_temp)
engine/pose_estimation/dinov2/dinov2/loss/dino_clstoken_loss.py:29
↓ 2 callersFunctionsplit_state_dict_with_prefix
(state_dict)
diffsynth/models/utils.py:164
↓ 2 callersMethodstore
(self, hidden_states)
diffsynth/pipelines/hunyuan_video.py:287
↓ 2 callersFunctionsurrounding_views_linspace
n_views: number of surrounding views radius: camera dist to center height: height of the camera return: (M, 3, 4)
LHM/datasets/cam_utils.py:161
↓ 2 callersMethodsynchronize_between_processes
(self)
engine/pose_estimation/dinov2/dinov2/logging/helpers.py:46
↓ 2 callersFunctiontensor2np
(array)
ProPainter/scripts/evaluate_flow_completion.py:51
↓ 2 callersMethodtensor2video
(self, frames)
diffsynth/pipelines/hunyuan_video.py:118
↓ 2 callersFunctionternary_transform
(image, max_distance=1)
ProPainter/model/modules/flow_loss_utils.py:89
↓ 2 callersMethodtile_process
It will first crop input images to tiles, and then process each tile. Finally, all the processed tiles are merged into one images. Mo
LHM/models/ESRGANer_utils.py:158
↓ 2 callersFunctiontimestep_embedding
(t, dim, max_period=10000, repeat_only=False)
diffsynth/models/hunyuan_dit.py:193
↓ 2 callersMethodto_tensor
(self, order)
engine/SegmentAPI/base.py:184
↓ 2 callersMethodto_whwh
(self)
engine/SegmentAPI/base.py:91
↓ 2 callersMethodto_xywh
(self)
engine/pose_estimation/video2motion.py:77
↓ 2 callersMethodto_xywh
(self)
engine/SegmentAPI/base.py:77
↓ 2 callersMethodtrack_step
(self, nnf, d)
diffsynth/extensions/FastBlend/patch_match.py:125
↓ 2 callersMethodtrain
Convert the model into training mode.
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/hrnet.py:597
↓ 2 callersMethodtrain
Convert the model into training mode.
engine/pose_estimation/third-party/ViTPose/mmpose/models/backbones/litehrnet.py:978
↓ 2 callersMethodtrain
Convert the model into training mode while keep layers freezed.
engine/BiRefNet/models/backbones/swin_v1.py:734
↓ 2 callersFunctiontrain_for_C
(*, C, max_iter, train_features, train_labels, dtype=torch.float64, device=_CPU_DEVICE)
engine/pose_estimation/dinov2/dinov2/eval/log_regression.py:153
↓ 2 callersMethodtrain_step
Train step function. In this function, the detector will finish the train step following the pipeline: 1. get fake and r
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/mesh.py:84
↓ 2 callersMethodtransform_to_posed_verts
_summary_ Args: smplx_data (_type_): e.g., body_pose:[B*Nv, 21, 3], betas:[B*Nv, 100]
LHM/models/rendering/smpl_x.py:1059
↓ 2 callersMethodtransform_to_posed_verts_from_neutral_pose
Transform the mean 3D vertices to posed vertices from the neutral pose. mean_3d (torch.Tensor): Mean 3D vertices with shape [B*N
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:1122
↓ 2 callersFunctionunpatch
(data, patch_size=14, c=3, img_size=224)
engine/pose_estimation/pose_utils/image.py:79
↓ 2 callersMethodupdate
(self, hidden_states)
diffsynth/pipelines/hunyuan_video.py:291
↓ 2 callersMethodupdate
(self, value, num=1)
engine/pose_estimation/dinov2/dinov2/logging/helpers.py:146
↓ 2 callersMethodupdate
(self, val, n=1)
engine/BiRefNet/utils.py:75
↓ 2 callersMethodupdate_center
(self, teacher_output)
engine/pose_estimation/dinov2/dinov2/loss/dino_clstoken_loss.py:77
↓ 2 callersMethodval_step
Forward function for evaluation. Args: data_batch (dict): Contain data for forward. Returns: dict: Contain t
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/mesh.py:207
↓ 2 callersFunctionvertices2joints
Calculates the 3D joint locations from the vertices Parameters ---------- J_regressor : torch.tensor JxV The regressor array that
LHM/models/rendering/smplx/smplx/lbs.py:268
↓ 2 callersFunctionvideo_to_pil_images
(video_path, height=None, width=None)
engine/pose_estimation/video2motion.py:163
↓ 2 callersMethodvocab_size
(self)
diffsynth/prompters/kolors_prompter.py:141
↓ 2 callersMethodwait_and_handle
(self, event_name: str = None, is_keyboard: Optional[bool] = F
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/event.py:52
↓ 2 callersFunctionwarp
(tenInput, tenFlow, device)
diffsynth/extensions/RIFE/__init__.py:8
↓ 2 callersFunctionweights_to_cpu
Copy a model state_dict to cpu. Args: state_dict (OrderedDict): Model weights on GPU. Returns: OrderedDict: Model weights on
engine/pose_estimation/third-party/ViTPose/mmcv_custom/checkpoint.py:411
↓ 2 callersFunctionwhitespace_clean
(text)
diffsynth/prompters/wan_prompter.py:17
↓ 2 callersFunctionwhitespace_clean
(text)
diffsynth/extensions/ImageQualityMetric/open_clip/tokenizer.py:69
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
engine/BiRefNet/models/backbones/swin_v1.py:48
↓ 2 callersFunctionwrap_model_hub
(model_cls: nn.Module)
LHM/utils/hf_hub.py:20
↓ 1 callersMethodC
(self, n, m)
diffsynth/extensions/FastBlend/patch_match.py:134
↓ 1 callersFunctionFB_blur_fusion_foreground_estimator_2
(image, alpha, r=90)
engine/BiRefNet/image_proc.py:17
↓ 1 callersFunctionHunyuanVideoRope
(latents)
diffsynth/models/hunyuan_video_dit.py:10
↓ 1 callersFunctionPILtoTorch
(pil_image)
run_pipeline_with_preprocess_usp.py:83
↓ 1 callersFunctionPILtoTorch
(pil_image)
run_pipeline_usp.py:83
↓ 1 callersFunctionPILtoTorch
(pil_image)
run_pipeline.py:82
↓ 1 callersFunctionPILtoTorch
(pil_image)
run_pipeline_with_preprocess.py:82
↓ 1 callersFunctionRGB2SH
(rgb)
LHM/models/rendering/utils/sh_utils.py:123
↓ 1 callersFunctionSH2RGB
(sh)
LHM/models/rendering/utils/sh_utils.py:127
← previousnext →1,001–1,100 of 5,947, ranked by callers