Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent-Hunyuan/HunyuanVideo-I2V
/ functions
Functions
333 in github.com/Tencent-Hunyuan/HunyuanVideo-I2V
⨍
Functions
333
◇
Types & classes
54
Method
forward
(self, x: torch.Tensor, condition_type=None, token_replace_vec=None)
hyvideo/modules/modulate_layers.py:27
Method
fuse_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
Method
get_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
Function
get_lin_function
( x1: float = 256, y1: float = 0.5, x2: float = 4096, y2: float = 1.15 )
hyvideo/diffusion/flow/transport.py:51
Function
get_module_diffusers_state_dict
(module, dtype, adapter_name="default")
hyvideo/utils/train_utils.py:447
Method
get_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
Method
get_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
Method
guidance_rescale
(self)
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:659
Method
guidance_scale
(self)
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:655
Method
interrupt
(self)
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:683
Method
kl
(self, other: "DiagonalGaussianDistribution" = None)
hyvideo/vae/vae.py:324
Function
log_state
(state)
hyvideo/diffusion/flow/utils.py:20
Function
new_forward
( self, x: torch.Tensor, t: torch.Tensor, # Should be in range(0, 1000). text
hyvideo/inference.py:115
Method
nll
(self, sample: torch.Tensor, dims: Tuple[int, ...] = [1, 2, 3])
hyvideo/vae/vae.py:344
Method
noise_ode
(x, t, model, **model_kwargs)
hyvideo/diffusion/flow/transport.py:244
Method
num_timesteps
(self)
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:679
Function
parse
(x)
hyvideo/utils/helpers.py:88
Method
parse_size
(size)
hyvideo/inference.py:508
Function
resolve_resume_path
(resume, results_dir)
hyvideo/utils/file_utils.py:35
Method
sample
(self, x, model, **model_kwargs)
hyvideo/diffusion/flow/integrators.py:103
Method
sample_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
Method
sample_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
Method
sample_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
Method
sample_with_step_fn
(self, x, step_fn)
hyvideo/diffusion/flow/integrators.py:118
Method
score_ode
(x, t, model, **model_kwargs)
hyvideo/diffusion/flow/transport.py:239
Method
set_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
Method
set_default_attn_processor
Disables custom attention processors and sets the default attention implementation.
hyvideo/vae/autoencoder_kl_causal_3d.py:244
Method
set_input_tensor
(self, input_tensor)
hyvideo/modules/models.py:841
Function
set_reproducibility
(enable, global_seed=None)
hyvideo/utils/train_utils.py:228
Method
step_index
The index counter for current timestep. It will increase 1 after each scheduler step.
hyvideo/diffusion/schedulers/scheduling_flow_match_discrete.py:98
Function
time_shift
(mu: float, sigma: float, t: th.Tensor)
hyvideo/diffusion/flow/transport.py:59
Method
unfuse_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
Method
velocity_ode
(x, t, model, **model_kwargs)
hyvideo/diffusion/flow/transport.py:251
← previous
301–333 of 333, ranked by callers