MCPcopy Create free account

hub / github.com/Francis-Rings/StableAnimator / functions

Functions480 in github.com/Francis-Rings/StableAnimator

Methodforward
Args: x (torch.Tensor): image features shape (b, n1, D) latent (torch.Tensor): latent features
animation/modules/id_encoder.py:28
Methodforward
(self, latents, x)
animation/modules/id_encoder.py:100
Methodforward
(self, id_embeds, clip_embeds, shortcut=False, scale=1.0)
animation/modules/id_encoder.py:134
Methodforward
(self, imgs)
animation/helper/onnx_helper.py:206
Methodforward
Parameters: ---------- local_embeddings: torch.Tensor feature embeddings on each GPU(Rank). local_labels:
animation/helper/partial_fc_v2.py:106
Methodforward
animation/helper/partial_fc_v2.py:177
Methodforward
(self, logit_part, label_part)
animation/helper/partial_fc_v2.py:226
Methodforward
(ctx, tensor, *gather_list)
animation/helper/partial_fc_v2.py:234
Methodforward
(self, logits, labels)
animation/helper/losses.py:27
Methodforward
(self, logits: torch.Tensor, labels: torch.Tensor)
animation/helper/losses.py:74
Methodforward
(self, logits: torch.Tensor, labels: torch.Tensor)
animation/helper/losses.py:94
Methodforward
(self, x)
animation/helper/lr_scheduler.py:52
Methodforward
(self, x)
animation/helper/backbones/vit.py:31
Methodforward
(self, x)
animation/helper/backbones/vit.py:54
Methodforward
(self, x)
animation/helper/backbones/vit.py:107
Methodforward
(self, x)
animation/helper/backbones/vit.py:127
Methodforward
(self, x)
animation/helper/backbones/vit.py:277
Methodforward
(self, x)
animation/helper/backbones/iresnet.py:60
Methodforward
(self, x)
animation/helper/backbones/iresnet.py:148
Methodforward
(self, x)
animation/helper/backbones/iresnet2060.py:50
Methodforward
(self, x)
animation/helper/backbones/iresnet2060.py:151
Methodforward
(self, x)
animation/helper/backbones/mobilefacenet.py:12
Methodforward
(self, x)
animation/helper/backbones/mobilefacenet.py:25
Methodforward
(self, x)
animation/helper/backbones/mobilefacenet.py:37
Methodforward
(self, x)
animation/helper/backbones/mobilefacenet.py:51
Methodforward
(self, x)
animation/helper/backbones/mobilefacenet.py:71
Methodforward
(self, x)
animation/helper/backbones/mobilefacenet.py:84
Methodforward
(self, x)
animation/helper/backbones/mobilefacenet.py:134
Functiongenerate
( image_input: str, pose_input: str, width: int, height: int, guidance_scale: flo
app.py:87
Methodget_classifier
(self)
animation/helper/backbones/vit.py:221
Methodget_face_masks
(self, pil_img)
animation/dataset/animation_dataset.py:58
Functionget_image_pose
(ref_image_path)
DWPose/skeleton_extraction.py:181
Methodget_lr
(self)
animation/helper/lr_scheduler.py:14
Methodget_prepare_faceid
(self, face_image)
animation/pipelines/inference_pipeline_animation.py:113
Methodget_prepare_faceid
(self, face_image)
animation/pipelines/validation_pipeline_animation.py:141
Methodget_prepare_faceid
(self, face_image)
animation/pipelines/inference_pipeline_animation_pro.py:141
Methodget_velocity
(self, sample: torch.Tensor, noise: torch.Tensor, timesteps: torch.Tensor)
animation/pipelines/euler_discrete_pro.py:775
Methodguidance_scale
(self)
animation/pipelines/inference_pipeline_animation.py:329
Methodguidance_scale
(self)
animation/pipelines/pipeline_animation.py:350
Methodguidance_scale
(self)
animation/pipelines/validation_pipeline_animation.py:357
Methodguidance_scale
(self)
animation/pipelines/inference_pipeline_animation_pro.py:332
FunctionhandDetect
(candidate, subset, oriImg)
DWPose/dwpose_utils/util.py:155
Methodinit_noise_sigma
(self)
animation/pipelines/euler_discrete_pro.py:338
Functionload_bin
(path, image_size)
animation/helper/eval/verification.py:200
Methodmeta_info
(self)
animation/helper/onnx_helper.py:202
Methodno_weight_decay
(self)
animation/helper/backbones/vit.py:218
Functionnpmax
(array)
DWPose/dwpose_utils/util.py:292
Methodnum_timesteps
(self)
animation/pipelines/inference_pipeline_animation.py:342
Methodnum_timesteps
(self)
animation/pipelines/pipeline_animation.py:363
Methodnum_timesteps
(self)
animation/pipelines/validation_pipeline_animation.py:370
Methodnum_timesteps
(self)
animation/pipelines/inference_pipeline_animation_pro.py:345
FunctionpadRightDownCorner
(img, stride, padValue)
DWPose/dwpose_utils/util.py:38
Functionpatch_geglu_inplace
Patch GEGLU with inplace multiplication to save GPU memory.
animation/utils/geglu_patch.py:4
Functionrand_log_normal
Draws samples from an lognormal distribution.
train.py:212
Functionrand_log_normal
Draws samples from an lognormal distribution.
train_single.py:215
Functionread_image_feature
(path)
animation/helper/eval_ijbc.py:145
Functionread_image_feature
(path)
animation/helper/onnx_ijbc.py:94
Functionread_score
(path)
animation/helper/eval_ijbc.py:306
Functionread_worker
(args, q_in)
animation/helper/scripts/shuffle_rec.py:10
Methodrelease_memory
(self)
DWPose/dwpose_utils/dwpose_detector.py:15
Functionsave_combined_frames
(batch_output, validation_images, validation_control_images,output_folder)
train.py:96
Functionsave_combined_frames
(batch_output, validation_images, validation_control_images, output_folder)
train_single.py:99
Functionsave_frames_as_mp4
(frames, output_mp4_path, fps)
inference_basic.py:47
Functionsave_to_mp4
(frames, save_path, fps=7)
animation/utils/utils.py:81
Methodset_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_
animation/pipelines/euler_discrete_pro.py:361
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
animation/modules/unet.py:318
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
animation/modules/refined_vae.py:292
Methodset_ip_adapter
(self)
animation/pipelines/inference_pipeline_animation.py:122
Methodset_ip_adapter
(self)
animation/pipelines/validation_pipeline_animation.py:150
Methodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`i
animation/pipelines/euler_discrete_pro.py:395
Functionsmart_resize
(x, s)
DWPose/dwpose_utils/util.py:10
Functionsmart_resize_k
(x, fx, fy)
DWPose/dwpose_utils/util.py:24
Methodstep_index
The index counter for current timestep. It will increase 1 after each scheduler step.
animation/pipelines/euler_discrete_pro.py:347
Functiontensor2vid_scheduler
(video, processor, output_type="np")
animation/pipelines/euler_discrete_pro.py:76
Functiontest
(data_set, backbone, batch_size, nfolds=10)
animation/helper/eval/verification.py:227
Functiontransfer
(model, model_weights)
DWPose/dwpose_utils/util.py:61
Functionverification2
(template_norm_feats=None, unique_templates=None, p1=None,
animation/helper/eval_ijbc.py:282
Functionverification2
(template_norm_feats=None, unique_templates=None, p1=None,
animation/helper/onnx_ijbc.py:148
Functionworker_init_fn
(worker_id, num_workers, rank, seed)
animation/helper/utils/utils_distributed_sampler.py:25
Functionwrite_worker
(args, q_out)
animation/helper/scripts/shuffle_rec.py:30
← previous401–480 of 480, ranked by callers