MCPcopy Create free account

hub / github.com/Tencent-Hunyuan/HunyuanVideo-I2V / functions

Functions333 in github.com/Tencent-Hunyuan/HunyuanVideo-I2V

Methodforward
(self, x: torch.Tensor, condition_type=None, token_replace_vec=None)
hyvideo/modules/modulate_layers.py:27
Methodfuse_qkv_projections
Enables fused QKV projections. For self-attention modules, all projection matrices (i.e., query, key, value) are fused. For cross-a
hyvideo/vae/autoencoder_kl_causal_3d.py:568
Methodget_guidance_scale_embedding
See https://github.com/google-research/vdm/blob/dc27b98a554f65cdc654b800da5aa1846545d41b/model_vdm.py#L298 Args: w (`tor
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:621
Functionget_lin_function
( x1: float = 256, y1: float = 0.5, x2: float = 4096, y2: float = 1.15 )
hyvideo/diffusion/flow/transport.py:51
Functionget_module_diffusers_state_dict
(module, dtype, adapter_name="default")
hyvideo/utils/train_utils.py:447
Methodget_noise_from_velocity
Wrapper function: transfrom velocity prediction model to denoiser Args: velocity: [batch_dim, ...] shaped tensor; velocity model o
hyvideo/diffusion/flow/path.py:91
Methodget_velocity_from_score
Wrapper function: transfrom score prediction model to velocity Args: score: [batch_dim, ...] shaped tensor; score model output
hyvideo/diffusion/flow/path.py:107
Methodguidance_rescale
(self)
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:659
Methodguidance_scale
(self)
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:655
Methodinterrupt
(self)
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:683
Methodkl
(self, other: "DiagonalGaussianDistribution" = None)
hyvideo/vae/vae.py:324
Functionlog_state
(state)
hyvideo/diffusion/flow/utils.py:20
Functionnew_forward
( self, x: torch.Tensor, t: torch.Tensor, # Should be in range(0, 1000). text
hyvideo/inference.py:115
Methodnll
(self, sample: torch.Tensor, dims: Tuple[int, ...] = [1, 2, 3])
hyvideo/vae/vae.py:344
Methodnoise_ode
(x, t, model, **model_kwargs)
hyvideo/diffusion/flow/transport.py:244
Methodnum_timesteps
(self)
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:679
Functionparse
(x)
hyvideo/utils/helpers.py:88
Methodparse_size
(size)
hyvideo/inference.py:508
Functionresolve_resume_path
(resume, results_dir)
hyvideo/utils/file_utils.py:35
Methodsample
(self, x, model, **model_kwargs)
hyvideo/diffusion/flow/integrators.py:103
Methodsample_ode
returns a sampling function with given ODE settings Args: - sampling_method: type of sampler used in solving the ODE; default to be Do
hyvideo/diffusion/flow/transport.py:416
Methodsample_ode_likelihood
returns a sampling function for calculating likelihood with given ODE settings Args: - sampling_method: type of sampler used in solvin
hyvideo/diffusion/flow/transport.py:463
Methodsample_sde
returns a sampling function with given SDE settings Args: - sampling_method: type of sampler used in solving the SDE; default to be Eu
hyvideo/diffusion/flow/transport.py:355
Methodsample_with_step_fn
(self, x, step_fn)
hyvideo/diffusion/flow/integrators.py:118
Methodscore_ode
(x, t, model, **model_kwargs)
hyvideo/diffusion/flow/transport.py:239
Methodset_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
hyvideo/diffusion/schedulers/scheduling_flow_match_discrete.py:112
Methodset_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
hyvideo/vae/autoencoder_kl_causal_3d.py:244
Methodset_input_tensor
(self, input_tensor)
hyvideo/modules/models.py:841
Functionset_reproducibility
(enable, global_seed=None)
hyvideo/utils/train_utils.py:228
Methodstep_index
The index counter for current timestep. It will increase 1 after each scheduler step.
hyvideo/diffusion/schedulers/scheduling_flow_match_discrete.py:98
Functiontime_shift
(mu: float, sigma: float, t: th.Tensor)
hyvideo/diffusion/flow/transport.py:59
Methodunfuse_qkv_projections
Disables the fused QKV projection if enabled. <Tip warning={true}> This API is 🧪 experimental. </Tip>
hyvideo/vae/autoencoder_kl_causal_3d.py:592
Methodvelocity_ode
(x, t, model, **model_kwargs)
hyvideo/diffusion/flow/transport.py:251
← previous301–333 of 333, ranked by callers