MCPcopy Create free account

hub / github.com/MyNiuuu/AniCrafter / functions

Functions5,947 in github.com/MyNiuuu/AniCrafter

↓ 3 callersFunctionbuild_backbone
(bb_name, pretrained=True, params_settings="")
engine/BiRefNet/models/backbones/build_backbone.py:31
↓ 3 callersMethodbuild_chat_input
(self, query, history=None, role="user")
diffsynth/prompters/kolors_prompter.py:203
↓ 3 callersFunctionbuild_metric
(metric_type: MetricType, *, num_classes: int, ks: Optional[tuple] = None)
engine/pose_estimation/dinov2/dinov2/eval/metrics.py:43
↓ 3 callersFunctioncalc_new_tgt_size_by_aspect
(cur_hw, aspect_standard, tgt_size, multiply)
LHM/runners/infer/utils.py:55
↓ 3 callersFunctioncalc_out_
(in_size, padding, dilation, kernel, stride)
diffsynth/models/stepvideo_vae.py:115
↓ 3 callersFunctioncenter_crop_according_to_mask
img: [H, W, 3] mask: [H, W]
LHM/runners/infer/utils.py:111
↓ 3 callersFunctioncheck_norm_state
Check if norm layer is in correct train state.
engine/pose_estimation/third-party/ViTPose/tests/test_backbones/test_resnet.py:33
↓ 3 callersFunctioncollect_env
()
engine/pose_estimation/third-party/ViTPose/mmpose/utils/collect_env.py:8
↓ 3 callersMethodcompute_pad
(self, dim, s)
ProPainter/core/metrics.py:196
↓ 3 callersMethodcompute_pad
(self, dim, s)
ProPainter/core/metrics.py:258
↓ 3 callersMethodcreate_renderer
(self)
engine/pose_estimation/pose_utils/render.py:166
↓ 3 callersMethoddecode_image
(self, latent, tiled=False, tile_size=64, tile_stride=32)
diffsynth/pipelines/sd_image.py:75
↓ 3 callersMethoddecode_naive
(self, z, is_init=True)
diffsynth/models/stepvideo_vae.py:983
↓ 3 callersFunctiondot
dot product (along the last dim). Args: x (Union[Tensor, ndarray]): x, [..., C] y (Union[Tensor, ndarray]): y, [..., C] Retu
LHM/models/rendering/mesh_utils.py:43
↓ 3 callersFunctiondownload_extract_tar_from_url
(url, save_path='./')
LHM/utils/download_utils.py:62
↓ 3 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
engine/pose_estimation/dinov2/dinov2/layers/drop_path.py:14
↓ 3 callersMethodencode_decode
Encode images with backbone and decode into a depth estimation map of the same size as input.
LHM/models/encoders/dinov2/hub/depth/encoder_decoder.py:51
↓ 3 callersMethodencode_decode
Encode images with backbone and decode into a depth estimation map of the same size as input.
engine/pose_estimation/dinov2/dinov2/hub/depth/encoder_decoder.py:51
↓ 3 callersMethodencode_image
(self, image, tiled=False, tile_size=64, tile_stride=32)
diffsynth/pipelines/sd_image.py:70
↓ 3 callersMethodencode_prompt
(self, prompt, positive=True, t5_sequence_length=77)
diffsynth/pipelines/sd3_image.py:62
↓ 3 callersMethodencode_prompt
(self, prompt, clip_skip=1, clip_skip_2=1, positive=True)
diffsynth/pipelines/hunyuan_image.py:177
↓ 3 callersMethodencode_prompt
(self, prompt, clip_skip=1, clip_skip_2=2, positive=True)
diffsynth/pipelines/sdxl_image.py:95
↓ 3 callersMethodestimate_nnf
(self, source_guide, target_guide, source_style, nnf)
diffsynth/extensions/FastBlend/patch_match.py:191
↓ 3 callersFunctionevaluate
( model: nn.Module, data_loader, postprocessors: Dict[str, nn.Module], metrics: Dict[str, Metr
engine/pose_estimation/dinov2/dinov2/eval/utils.py:48
↓ 3 callersFunctionevaluate_linear_classifiers
( feature_model, linear_classifiers, data_loader, metric_type, metrics_file_path, trai
engine/pose_estimation/dinov2/dinov2/eval/linear.py:260
↓ 3 callersFunctionexists
(val)
diffsynth/extensions/ImageQualityMetric/trainer/models/cross_modeling.py:8
↓ 3 callersFunctionexists
Code modified from https://github.com/shubham-goel/4D-Humans/blob/a0def798c7eac811a63c8220fcc22d983b39785e/hmr2/models/components/pose_transformer.py#
engine/pose_estimation/blocks/cross_attn_transformer.py:60
↓ 3 callersFunctionextract_pose_sequence
Extract the target frame from 2D pose results, and pad the sequence to a fixed length. Args: pose_results (list[list[dict]]): Multi-f
engine/pose_estimation/third-party/ViTPose/mmpose/apis/inference_3d.py:12
↓ 3 callersMethodfetch_models
(self, model_manager: ModelManager)
diffsynth/pipelines/wan_video_v2v_combine.py:1153
↓ 3 callersFunctionfilter2d
r"""Convolve a tensor with a 2d kernel. The function applies a given kernel to a tensor. The kernel is applied independently at each depth ch
ProPainter/model/canny/filter.py:32
↓ 3 callersMethodforward_animate_gs
( self, gs_attr_list, query_points, smplx_data, c2w, intrinsic
LHM/models/rendering/gs_renderer.py:1355
↓ 3 callersMethodforward_gs
( self, gs_hidden_features: Float[Tensor, "B Np Cp"], query_points: Float[Tensor, "B N
LHM/models/rendering/gs_renderer.py:1320
↓ 3 callersFunctionfreeze_batch_norm_2d
Converts all `BatchNorm2d` and `SyncBatchNorm` layers of provided module into `FrozenBatchNorm2d`. If `module` is itself an instance of eithe
diffsynth/extensions/ImageQualityMetric/open_clip/utils.py:8
↓ 3 callersFunctiongaussian_filter_1d
(data, kernel_size=3, sigma=1.0, weight=None)
engine/pose_estimation/pose_utils/postprocess.py:17
↓ 3 callersFunctiongenerate_smpl_weight_file
Generate a SMPL model weight file to initialize SMPL model, and generate a 3D joints regressor file.
engine/pose_estimation/third-party/ViTPose/tests/utils/mesh_utils.py:9
↓ 3 callersFunctionget_cluster_type
(cluster_type: Optional[ClusterType] = None)
engine/pose_estimation/dinov2/dinov2/utils/cluster.py:31
↓ 3 callersMethodget_detection_results
Get detection results of the message. Args: tag (str, optional): If given, only the results with the tag will be
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/message.py:127
↓ 3 callersFunctionget_focalLength_from_fieldOfView
Compute the focal length of the camera lens by assuming a certain FOV for the entire image Args: - fov: float, expressed in degree
engine/pose_estimation/pose_utils/camera.py:49
↓ 3 callersFunctionget_fsdp_modules
(x)
engine/pose_estimation/dinov2/dinov2/fsdp/__init__.py:72
↓ 3 callersFunctionget_group_preds
Transform the grouped joints back to the image. Args: grouped_joints (list): Grouped person joints. center (np.ndarray[2, ]): Cen
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/bottom_up_eval.py:293
↓ 3 callersMethodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
engine/pose_estimation/dinov2/dinov2/models/vision_transformer.py:298
↓ 3 callersMethodget_logits
(self, image_features, text_features, logit_scale)
diffsynth/extensions/ImageQualityMetric/open_clip/loss.py:103
↓ 3 callersFunctionget_model_config
(model_name)
diffsynth/extensions/ImageQualityMetric/open_clip/factory.py:70
↓ 3 callersMethodget_neutral_pose_human
( self, jaw_zero_pose, use_id_info, shape_param, device, face_offset, joint_offset )
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:1388
↓ 3 callersMethodget_query_points
transform_mat_neutral_pose is function to warp pre-defined posed to zero-pose
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:1229
↓ 3 callersFunctionget_random_velocity
(max_speed=3, dist='uniform')
ProPainter/core/utils.py:324
↓ 3 callersFunctionget_requirements
(path: str = HERE / "requirements.txt")
engine/pose_estimation/dinov2/setup.py:29
↓ 3 callersFunctionget_tokenizer
(model_name, open_clip_bpe_path=None)
diffsynth/extensions/ImageQualityMetric/open_clip/factory.py:77
↓ 3 callersFunctionimshow_keypoints_3d
Draw 3D keypoints and links in 3D coordinates. Args: pose_result (list[dict]): 3D pose results containing: - "keypoints_3d" (
engine/pose_estimation/third-party/ViTPose/mmpose/core/visualization/image.py:205
↓ 3 callersMethodinfer_architecture
(self, state_dict)
diffsynth/models/sd3_dit.py:390
↓ 3 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
LHM/models/encoders/dinov2/hub/depth/encoder_decoder.py:153
↓ 3 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
engine/pose_estimation/dinov2/dinov2/hub/depth/encoder_decoder.py:153
↓ 3 callersMethodinference_model
Inference function. Returns: output_regression (np.ndarray): Output regression. Args: x (torch.Tensor[N, K,
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/temporal_regression_head.py:202
↓ 3 callersMethodinit_weights
(self)
diffsynth/models/wan_video_image_encoder.py:582
↓ 3 callersMethodinit_weights
initialize network's weights init_type: normal | xavier | kaiming | orthogonal https://github.com/junyanz/pytorch-CycleGAN-an
ProPainter/model/modules/base_module.py:22
↓ 3 callersMethodinit_weights
Weight initialization for model.
engine/pose_estimation/third-party/ViTPose/mmpose/models/detectors/mesh.py:77
↓ 3 callersMethodinit_weights
Initialize model weights.
engine/pose_estimation/third-party/ViTPose/mmpose/models/misc/discriminator.py:100
↓ 3 callersMethodinit_weights
Initialize the weights.
engine/pose_estimation/third-party/ViTPose/mmpose/models/heads/temporal_regression_head.py:313
↓ 3 callersMethodis_set
(self, event_name: str = None, is_keyboard: Optional[bool] = False)
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/event.py:33
↓ 3 callersMethodlbs
(self, xyz, transform_mat_vertex, trans)
LHM/models/rendering/smpl_x_voxel_dense_sampling.py:1103
↓ 3 callersFunctionlength_sq
(x)
ProPainter/model/propainter.py:19
↓ 3 callersFunctionlets_dance
( unet: SDUNet, motion_modules: SDMotionModel = None, controlnet: MultiControlNetManager = None,
diffsynth/pipelines/dancer.py:7
↓ 3 callersFunctionlets_dance_flux
( dit: FluxDiT, controlnet: FluxMultiControlNetManager = None, hidden_states=None, timestep=No
diffsynth/pipelines/flux_image.py:515
↓ 3 callersFunctionload_model_from_single_file
(state_dict, model_names, model_classes, model_resource, torch_dtype, device)
diffsynth/models/model_manager.py:56
↓ 3 callersMethodlock
lock modules Args: unlocked_groups (int): leave last n layer groups unlocked (default: 0)
diffsynth/extensions/ImageQualityMetric/open_clip/timm_model.py:85
↓ 3 callersMethodmake_linear
(self, dim_in, dim_out, is_first, is_last, bias=True)
LHM/models/rendering/utils/utils.py:82
↓ 3 callersFunctionnormalize_kernel2d
r"""Normalize both derivative and smoothing kernel.
ProPainter/model/canny/kernels.py:8
↓ 3 callersFunctionoks_nms
OKS NMS implementations. Args: kpts_db: keypoints. thr: Retain overlap < thr. sigmas: standard deviation of keypoint labe
engine/pose_estimation/third-party/ViTPose/mmpose/core/post_processing/nms.py:89
↓ 3 callersFunctionpad
(x, padlen, dim)
engine/pose_estimation/pose_utils/tensor_manip.py:28
↓ 3 callersFunctionpatches2image
( patches, grid_h=2, grid_w=2, patch_ref=None, transformation="(b hg wg) c h w -> b c (hg
engine/BiRefNet/models/birefnet.py:35
↓ 3 callersFunctionprecompute_freqs_cis
(dim: int, end: int = 1024, theta: float = 10000.0)
diffsynth/models/wan_video_dit.py:80
↓ 3 callersMethodpreload
(self)
ProPainter/core/prefetch_dataloader.py:105
↓ 3 callersMethodprepare_image_ids
(self, latents)
diffsynth/models/flux_dit.py:305
↓ 3 callersMethodpreprocess
(self, image_path: str, save_path: str, rmbg: bool = True, recenter: bool = True, size: int = 512, border_rati
LHM/utils/preprocess.py:32
↓ 3 callersMethodprocess_multi_modal_prompt
(self, text, input_images)
diffsynth/prompters/omnigen_prompter.py:75
↓ 3 callersMethodput_force
Force to put an item into the buffer. If the buffer is already full, the earliest item in the buffer will be remove to make room for
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/buffer.py:36
↓ 3 callersMethodremove
(self)
engine/pose_estimation/third-party/ViTPose/mmpose/utils/hooks.py:42
↓ 3 callersFunctionremove_ddp_wrapper
(m: nn.Module)
engine/pose_estimation/dinov2/dinov2/eval/linear.py:159
↓ 3 callersFunctionrender_smplx_mesh
( smplx_params, render_intrs, human_model_path="./pretrained_models/human_model_files" )
LHM/runners/infer/utils.py:308
↓ 3 callersMethodreport
Report timing information. Returns: dict: The key is the timer name and the value is the \ corresponding average
engine/pose_estimation/third-party/ViTPose/mmpose/utils/timer.py:80
↓ 3 callersMethodresample_image
(self, images, level)
diffsynth/extensions/FastBlend/patch_match.py:234
↓ 3 callersMethodreshape_weight_to_matrix
(self, weight)
ProPainter/model/modules/spectral_norm.py:30
↓ 3 callersFunctionresolve
(path)
LHM/models/rendering/smplx/transfer_model/write_obj.py:188
↓ 3 callersMethodreturn_to_timestep
(self, timestep, sample, sample_stablized)
diffsynth/schedulers/ddim.py:81
↓ 3 callersMethodset_image
Set the frame image to the message.
engine/pose_estimation/third-party/ViTPose/tools/webcam/webcam_apis/utils/message.py:111
↓ 3 callersFunctionset_seed
(seed)
engine/BiRefNet/utils.py:94
↓ 3 callersFunctionsetup
Create configs and perform basic setups.
engine/pose_estimation/dinov2/dinov2/utils/config.py:63
↓ 3 callersFunctionsetup_and_build_model
(args)
engine/pose_estimation/dinov2/dinov2/eval/setup.py:70
↓ 3 callersMethodshift_nnf
(self, nnf, d)
diffsynth/extensions/FastBlend/patch_match.py:116
↓ 3 callersFunctionsinusoidal_embedding_1d
(dim, position)
diffsynth/models/wan_video_dit.py:65
↓ 3 callersFunctionspatial_gradient
r"""Compute the first order image derivative in both x and y using a Sobel operator. .. image:: _static/img/spatial_gradient.png Args:
ProPainter/model/canny/sobel.py:8
↓ 3 callersFunctionsplit_ae_outputs
Split multi-stage outputs into heatmaps & tags. Args: outputs (list(Tensor)): Outputs of network num_joints (int): Number of join
engine/pose_estimation/third-party/ViTPose/mmpose/core/evaluation/bottom_up_eval.py:9
↓ 3 callersFunctionsummary_closure
(gt_vertices, var_dict, body_model, mask_ids=None)
LHM/models/rendering/smplx/transfer_model/transfer_model.py:34
↓ 3 callersFunctiontest
()
LHM/models/rendering/gs_renderer.py:1465
↓ 3 callersMethodtimeit
Timing a code snippet with an assigned name. Args: timer_name (str): The unique name of the interested code snippet to
engine/pose_estimation/third-party/ViTPose/mmpose/utils/timer.py:60
↓ 3 callersMethodto_numpy
(self, type_mode="uint8", order="RGB")
engine/SegmentAPI/base.py:169
↓ 3 callersMethodto_xywh
(self)
LHM/utils/bbox.py:23
↓ 3 callersFunctiontokenize_long_prompt
(tokenizer, prompt, max_length=None)
diffsynth/prompters/base_prompter.py:6
↓ 3 callersMethodupconv_block
(self, in_channels, out_channels)
LHM/models/encoders/xunet_wrapper.py:49
↓ 3 callersMethodupdate
(self, *args, **kwargs)
engine/ouputs.py:79
← previousnext →501–600 of 5,947, ranked by callers