MCPcopy Create free account

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

Functions508 in github.com/Francis-Rings/FlashPortrait

Methodforward
(self, x, feat_cache=None, feat_idx=[0])
wan/models/wan_vae.py:105
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
wan/models/wan_vae.py:206
Methodforward
(self, x)
wan/models/wan_vae.py:244
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
wan/models/wan_vae.py:322
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
wan/models/wan_vae.py:427
Methodforward
(self, x)
wan/models/wan_vae.py:514
Methodforward
(self, x)
wan/models/wan_image_encoder.py:45
Methodforward
(self, x)
wan/models/wan_image_encoder.py:51
Methodforward
x: [B, L, C].
wan/models/wan_image_encoder.py:76
Methodforward
(self, x)
wan/models/wan_image_encoder.py:148
Methodforward
x: [B, L, C].
wan/models/wan_image_encoder.py:188
Methodforward
(self, x, interpolation=False, use_31_block=False)
wan/models/wan_image_encoder.py:281
Methodforward
(self, ids)
wan/models/wan_image_encoder.py:317
Methodforward
imgs: [B, 3, H, W] of torch.float32. - mean: [0.48145466, 0.4578275, 0.40821073] - std: [0.26862954, 0.2613025
wan/models/wan_image_encoder.py:408
Methodforward
(self, videos)
wan/models/wan_image_encoder.py:513
Methodforward
(self, x)
wan/models/wan_vae_tiny.py:18
Methodforward
(self, x, past)
wan/models/wan_vae_tiny.py:29
Methodforward
(self, x)
wan/models/wan_vae_tiny.py:39
Methodforward
(self, x)
wan/models/wan_vae_tiny.py:50
Methodforward
(self, x, cache_x=None)
wan/models/wan_vae3_8.py:39
Methodforward
(self, x)
wan/models/wan_vae3_8.py:62
Methodforward
Fix bfloat16 support for nearest neighbor interpolation.
wan/models/wan_vae3_8.py:69
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
wan/models/wan_vae3_8.py:117
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
wan/models/wan_vae3_8.py:219
Methodforward
(self, x)
wan/models/wan_vae3_8.py:260
Methodforward
(self, x: torch.Tensor)
wan/models/wan_vae3_8.py:340
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
wan/models/wan_vae3_8.py:452
Methodforward
(self, x, feat_cache=None, feat_idx=[0], first_chunk=False)
wan/models/wan_vae3_8.py:494
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
wan/models/wan_vae3_8.py:564
Methodforward
(self, x, feat_cache=None, feat_idx=[0], first_chunk=False)
wan/models/wan_vae3_8.py:677
Methodforward
(self, x, scale=[0, 1])
wan/models/wan_vae3_8.py:783
Methodforward_feature
(self, x)
wan/models/pdf.py:438
Methodfrom_pretrained
( cls, pretrained_model_path, subfolder=None, transformer_additional_kwargs={}, low_cpu_mem_us
wan/models/wan_transformer3d.py:1221
Methodfrom_pretrained
(cls, pretrained_model_path, additional_kwargs={}, low_cpu_mem_usage=False, torch_dtype=torch.bfloat16)
wan/models/wan_text_encoder.py:307
Methodfrom_pretrained
(cls, pretrained_model_path, additional_kwargs={})
wan/models/wan_vae.py:839
Methodfrom_pretrained
(cls, pretrained_model_path, transformer_additional_kwargs={})
wan/models/wan_image_encoder.py:531
Methodfrom_pretrained
(cls, pretrained_model_path, additional_kwargs={})
wan/models/wan_vae3_8.py:1070
Functiongenerate_timestep_with_lognorm
(low, high, shape, device="cpu", generator=None)
train_portrait.py:168
Functionget_autocast_dtype
()
wan/utils/utils.py:442
Functionget_image
(ref_image=None)
wan/utils/utils.py:343
Functionget_image_latent
(ref_image=None, sample_size=None, padding=False)
wan/utils/utils.py:321
Functionget_image_to_video_latent
(validation_image_start, validation_image_end, video_length, sample_size)
wan/utils/utils.py:164
Functionget_random_downsample_ratio
(sample_size, image_ratio=[], all_choices=False, rng=None)
train_portrait.py:84
Functionget_random_mask
(shape, image_start_only=False)
wan/data/utils.py:29
Functionget_resize_crop_region_for_grid
(src, tgt_width, tgt_height)
wan/models/wan_transformer3d.py:117
Methodget_trainable_params
(self)
wan/utils/lora_utils.py:326
Functionget_video_reader_batch
(video_reader, batch_index)
wan/data/utils.py:123
Functionget_video_to_video_latent
(input_video_path, video_length, sample_size, fps=None, validation_video_mask=None, ref_image=None)
wan/utils/utils.py:260
Functionget_width_and_height_from_image_and_base_resolution
(image, base_resolution)
wan/utils/utils.py:23
Methodguidance_scale
(self)
wan/pipeline/pipeline_wan_fun_inpaint.py:454
Methodguidance_scale
(self)
wan/pipeline/pipeline_wan_fun_control.py:453
Methodguidance_scale
(self)
wan/pipeline/pipeline_wan.py:369
Methodguidance_scale
(self)
wan/pipeline/pipeline_wan_long.py:501
Methodinfer_image
(self, img_input)
wan/models/face_det.py:315
Methodinit_weight
(self, conv)
wan/models/wan_vae.py:166
Methodinit_weight
(self, conv)
wan/models/wan_vae3_8.py:176
Methodinit_weight2
(self, conv)
wan/models/wan_vae.py:178
Methodinit_weight2
(self, conv)
wan/models/wan_vae3_8.py:187
Functioninit_weights
(m)
wan/models/wan_text_encoder.py:21
Methodinitialize_missing_parameters
(missing_keys, model_state_dict, torch_dtype=None)
wan/models/wan_transformer3d.py:1292
Functioninner
(*args, **kwargs)
wan/models/__init__.py:31
Methodinterrupt
(self)
wan/pipeline/pipeline_wan_fun_inpaint.py:466
Methodinterrupt
(self)
wan/pipeline/pipeline_wan_fun_control.py:465
Methodinterrupt
(self)
wan/pipeline/pipeline_wan.py:381
Methodinterrupt
(self)
wan/pipeline/pipeline_wan_long.py:513
Methodload_weights
(self, file)
wan/utils/lora_utils.py:289
Functionmerge_video_audio
Merge the video and audio into a new video, with the duration set to the shorter of the two, and overwrite the original video file. Para
wan/utils/utils.py:104
Methodnum_timesteps
(self)
wan/pipeline/pipeline_wan_fun_inpaint.py:458
Methodnum_timesteps
(self)
wan/pipeline/pipeline_wan_fun_control.py:457
Methodnum_timesteps
(self)
wan/pipeline/pipeline_wan.py:373
Methodnum_timesteps
(self)
wan/pipeline/pipeline_wan_long.py:505
Functionoverlay_bbox_cv
Draw result boxes Copy from nanodet/util/visualization.py
wan/models/face_det.py:81
Functionpadding_image
(images, new_width, new_height)
wan/data/utils.py:143
Methodparam_groups
(self)
wan/models/wan_image_encoder.py:420
Functionpatched_decode
(latents, **kwargs)
wan/models/wan_vae_tiny_pipeline.py:62
Methodprepare_optimizer_params
(self, text_encoder_lr, unet_lr, default_lr)
wan/utils/lora_utils.py:299
Functionprocess_pose_file
Modified from https://github.com/hehao13/CameraCtrl/blob/main/inference.py
wan/data/utils.py:279
Functionprocess_pose_params
Modified from https://github.com/hehao13/CameraCtrl/blob/main/inference.py
wan/data/utils.py:318
Methodqkv_fn
(x)
wan/models/wan_transformer3d.py:241
Methodreparameterize
(self, mu, log_var)
wan/models/wan_vae3_8.py:851
Functionresize_frame
(frame, target_short_side)
wan/data/utils.py:127
Functionresize_image_with_target_area
将 PIL 图像缩放到接近指定像素面积(target_area),保持原始宽高比, 并确保新宽度和高度均为 32 的整数倍。 参数: img (PIL.Image.Image): 输入图像 target_area (int): 目标像素总面
wan/data/utils.py:171
Functionresize_mask
(mask, latent, process_first_frame_only=True)
wan/pipeline/pipeline_wan_fun_control.py:100
Functionretrieve_timesteps
( scheduler, num_inference_steps=None, device=None, timesteps=None, sigmas=None, **kwa
wan/utils/fm_solvers.py:29
Methodsample
(self, imgs, deterministic=False)
wan/models/wan_vae3_8.py:856
Functionsave_results
()
fast_infer.py:607
Functionsave_results
()
infer.py:430
Methodsave_weights
(self, file, dtype, metadata)
wan/utils/lora_utils.py:329
Methodscale_model_input
Scale model input.
wan/utils/step_distill_scheduler.py:295
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
wan/utils/fm_solvers_unipc.py:740
Functionselective_checkpointing
(submodule)
wan/utils/ac_handle.py:49
Methodset_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_index
wan/utils/fm_solvers.py:216
Methodset_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
wan/utils/fm_solvers_unipc.py:148
Methodset_multiplier
(self, multiplier)
wan/utils/lora_utils.py:284
Methodset_timesteps
Set timesteps - routes to distill or original scheduler.
wan/utils/step_distill_scheduler.py:276
Methodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`):
wan/utils/fm_solvers_unipc.py:159
Methodshare_cfg_skip
( self, transformer = None, )
wan/models/wan_transformer3d.py:805
Methodshare_teacache
( self, transformer = None, )
wan/models/wan_transformer3d.py:786
Methodstep
Perform scheduler step.
wan/utils/step_distill_scheduler.py:288
Methodstep_index
The current step index.
wan/utils/step_distill_scheduler.py:77
← previousnext →401–500 of 508, ranked by callers