MCPcopy Create free account

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

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

Method__init__
( self, channels: int, use_conv: bool = False, out_channels: Optional[int]
hyvideo/vae/unet_causal_3d_blocks.py:190
Method__init__
( self, *, in_channels: int, out_channels: Optional[int] = None,
hyvideo/vae/unet_causal_3d_blocks.py:254
Method__init__
( self, in_channels: int, temb_channels: int, dropout: float = 0.0,
hyvideo/vae/unet_causal_3d_blocks.py:531
Method__init__
( self, in_channels: int, out_channels: int, dropout: float = 0.0,
hyvideo/vae/unet_causal_3d_blocks.py:632
Method__init__
( self, in_channels: int, out_channels: int, resolution_idx: Optional[int]
hyvideo/vae/unet_causal_3d_blocks.py:698
Method__init__
( self, in_channels: int = 3, out_channels: int = 3, down_block_types: Tup
hyvideo/vae/autoencoder_kl_causal_3d.py:64
Method__init__
( self, text_encoder_type: str, max_length: int, text_encoder_precision: Optio
hyvideo/text_encoder/__init__.py:120
Method__init__
( self, drift, diffusion, *, t0, t1, num_steps,
hyvideo/diffusion/flow/integrators.py:7
Method__init__
( self, drift, *, t0, t1, sampler_type, num_steps,
hyvideo/diffusion/flow/integrators.py:81
Method__init__
(self, sigma_min=0.1, sigma_max=20.0, reverse=False)
hyvideo/diffusion/flow/path.py:153
Method__init__
(self, sigma=0.0, reverse=False)
hyvideo/diffusion/flow/path.py:189
Method__init__
(self, sub_dict)
hyvideo/diffusion/flow/utils.py:5
Method__init__
(self, *, model_type, path_type, loss_type, train_eps, sample_eps, snr_type, training_timeste
hyvideo/diffusion/flow/transport.py:64
Method__init__
Constructor for a general sampler; supporting different sampling methods Args: - transport: an tranport object specify model predictio
hyvideo/diffusion/flow/transport.py:294
Method__init__
( self, vae: AutoencoderKL, text_encoder: TextEncoder, transformer: HYVideoDif
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:170
Method__init__
( self, num_train_timesteps: int = 1000, shift: float = 1.0, reverse: bool = T
hyvideo/diffusion/schedulers/scheduling_flow_match_discrete.py:71
Method__init__
Initialize the RMSNorm normalization layer. Args: dim (int): The dimension of the input tensor. eps (float,
hyvideo/modules/norm_layers.py:6
Method__init__
(self, in_channels, hidden_size, act_layer, dtype=None, device=None)
hyvideo/modules/embed_layers.py:69
Method__init__
( self, hidden_size, act_layer, frequency_embedding_size=256, max_peri
hyvideo/modules/embed_layers.py:125
Method__init__
( self, hidden_size: int, heads_num: int, mlp_width_ratio: float = 4.0,
hyvideo/modules/models.py:306
Method__init__
( self, args: Any, patch_size: list = [1, 2, 2], in_channels: int = 4, # Shou
hyvideo/modules/models.py:516
Method__init__
( self, hidden_size, heads_num, mlp_width_ratio: str = 4.0, mlp_drop_r
hyvideo/modules/token_refiner.py:17
Method__init__
( self, hidden_size, heads_num, depth, mlp_width_ratio: float = 4.0,
hyvideo/modules/token_refiner.py:104
Method__init__
(self, in_dim: int, hidden_dim: int, device=None, dtype=None)
hyvideo/modules/mlp_layers.py:65
Method__init__
( self, hidden_size, patch_size, out_channels, act_layer, device=None, dtype=None )
hyvideo/modules/mlp_layers.py:79
Method__init__
( self, hidden_size: int, factor: int, act_layer: Callable, dtype=None
hyvideo/modules/modulate_layers.py:9
Method__init__
(self, events_root, rank)
hyvideo/utils/helpers.py:23
Method__init__
(self, global_rank)
hyvideo/utils/train_utils.py:221
Method__init__
_summary_ Args: data_jsons_path (str): input data json path sample_n_frames (int, optional): training video length. D
hyvideo/dataset/video_loader.py:14
Method__init__
(self, source: Dataset, batch_size: int, max_buf = 64)
hyvideo/hyvae_extract/dataset.py:31
Method__iter__
(self)
hyvideo/hyvae_extract/dataset.py:47
Method__len__
(self)
hyvideo/diffusion/schedulers/scheduling_flow_match_discrete.py:256
Method__len__
(self)
hyvideo/dataset/video_loader.py:93
Method__len__
(self)
hyvideo/hyvae_extract/dataset.py:243
Method__repr__
(self)
hyvideo/text_encoder/__init__.py:218
Method_fn
(t, x)
hyvideo/diffusion/flow/integrators.py:107
Method_likelihood_drift
(x, t, model, **model_kwargs)
hyvideo/diffusion/flow/transport.py:481
Method_sample
(init, model, **model_kwargs)
hyvideo/diffusion/flow/transport.py:404
Method_sample_fn
(x, model, **model_kwargs)
hyvideo/diffusion/flow/transport.py:511
Method_set_gradient_checkpointing
(self, module, value=False)
hyvideo/vae/autoencoder_kl_causal_3d.py:134
Method_sigma_to_t
(self, sigma)
hyvideo/diffusion/schedulers/scheduling_flow_match_discrete.py:122
Functionadd_train_args
(parser: argparse.ArgumentParser)
hyvideo/config.py:138
Functionalign_floor_to
align hight, width according to alignment Args: value (int): height or width alignment (int): target alignment factor Return
hyvideo/utils/data_utils.py:89
Functionas_list_of_2tuple
(x)
hyvideo/utils/helpers.py:114
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
hyvideo/vae/autoencoder_kl_causal_3d.py:183
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
hyvideo/diffusion/schedulers/scheduling_flow_match_discrete.py:105
Methodbody_fn
(x, t, model, **model_kwargs)
hyvideo/diffusion/flow/transport.py:262
Functionbuild_pretraining_data_loader
()
hyvideo/utils/file_utils.py:24
Functionckpt_forward
(*inputs)
hyvideo/modules/modulate_layers.py:100
Methodclip_skip
(self)
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:663
Methodcollate_fn
(samples)
hyvideo/hyvae_extract/dataset.py:40
Methodcompute_alpha_t
Compute coefficient of x1
hyvideo/diffusion/flow/path.py:164
Methodcompute_alpha_t
Compute coefficient of x1
hyvideo/diffusion/flow/path.py:194
Methodcompute_d_alpha_alpha_ratio_t
Special purposed function for computing numerical stabled d_alpha_t / alpha_t
hyvideo/diffusion/flow/path.py:178
Methodcompute_d_alpha_alpha_ratio_t
Special purposed function for computing numerical stabled d_alpha_t / alpha_t
hyvideo/diffusion/flow/path.py:206
Methodcompute_drift
Compute the drift term of the SDE
hyvideo/diffusion/flow/path.py:182
Methodcompute_sigma_t
Compute coefficient of x0
hyvideo/diffusion/flow/path.py:171
Methodcompute_sigma_t
Compute coefficient of x0
hyvideo/diffusion/flow/path.py:200
Methodcreate_custom_forward
(module)
hyvideo/vae/vae.py:240
Functioncreate_transport
function for creating Transport object **Note**: model prediction defaults to velocity Args: - path_type: type of path to use; default to
hyvideo/diffusion/flow/__init__.py:4
Methodcross_attention_kwargs
(self)
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:675
Methodcustom_forward
(*inputs)
hyvideo/vae/vae.py:241
Methoddecode_latents
(self, latents, enable_tiling=True)
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:459
Methoddiffusion_fn
(x, t)
hyvideo/diffusion/flow/transport.py:313
Methoddisable_deterministic
(self)
hyvideo/modules/models.py:366
Methoddisable_deterministic
(self)
hyvideo/modules/models.py:666
Methoddisable_slicing
r""" Disable sliced VAE decoding. If `enable_slicing` was previously enabled, this method will go back to computing decoding in one
hyvideo/vae/autoencoder_kl_causal_3d.py:174
Methoddisable_tiling
r""" Disable tiled VAE decoding. If `enable_tiling` was previously enabled, this method will go back to computing decoding in one st
hyvideo/vae/autoencoder_kl_causal_3d.py:159
Methoddo_classifier_free_guidance
(self)
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:670
Methodenable_deterministic
(self)
hyvideo/modules/models.py:363
Methodenable_deterministic
(self)
hyvideo/modules/models.py:660
Methodenable_slicing
r""" Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to compute decoding in s
hyvideo/vae/autoencoder_kl_causal_3d.py:167
Functionfilter_
(record)
hyvideo/utils/file_utils.py:29
Methodfn_recursive_add_processors
(name: str, module: torch.nn.Module, processors: Dict[str, AttentionProcessor])
hyvideo/vae/autoencoder_kl_causal_3d.py:192
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
hyvideo/vae/autoencoder_kl_causal_3d.py:230
Functionformat_params
(params)
hyvideo/utils/train_utils.py:359
Methodforward
r"""The forward method of the `EncoderCausal3D` class.
hyvideo/vae/vae.py:115
Methodforward
r"""The forward method of the `DecoderCausal3D` class.
hyvideo/vae/vae.py:227
Methodforward
(self, x)
hyvideo/vae/unet_causal_3d_blocks.py:72
Methodforward
( self, hidden_states: torch.FloatTensor, output_size: Optional[int] = None,
hyvideo/vae/unet_causal_3d_blocks.py:129
Methodforward
(self, hidden_states: torch.FloatTensor, scale: float = 1.0)
hyvideo/vae/unet_causal_3d_blocks.py:236
Methodforward
( self, input_tensor: torch.FloatTensor, temb: torch.FloatTensor, scale: f
hyvideo/vae/unet_causal_3d_blocks.py:348
Methodforward
(self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None)
hyvideo/vae/unet_causal_3d_blocks.py:615
Methodforward
(self, hidden_states: torch.FloatTensor, scale: float = 1.0)
hyvideo/vae/unet_causal_3d_blocks.py:686
Methodforward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None, scale: float = 1.
hyvideo/vae/unet_causal_3d_blocks.py:754
Methodforward
r""" Args: sample (`torch.FloatTensor`): Input sample. sample_posterior (`bool`, *optional*, defaults to `False`):
hyvideo/vae/autoencoder_kl_causal_3d.py:533
Methodforward
( self, text, use_attention_mask=None, output_hidden_states=False, do_
hyvideo/text_encoder/__init__.py:519
Methodforward
Forward pass through the RMSNorm layer. Args: x (torch.Tensor): The input tensor. Returns: torch.Te
hyvideo/modules/norm_layers.py:45
Methodforward
(self, x)
hyvideo/modules/embed_layers.py:54
Methodforward
(self, caption)
hyvideo/modules/embed_layers.py:86
Methodforward
(self, t)
hyvideo/modules/embed_layers.py:152
Methodforward
( self, img: torch.Tensor, txt: torch.Tensor, vec: torch.Tensor, cu_se
hyvideo/modules/models.py:134
Methodforward
( self, x: torch.Tensor, vec: torch.Tensor, txt_len: int, cu_seqlens_q
hyvideo/modules/models.py:369
Methodforward
( self, x: torch.Tensor, t: torch.Tensor, # Should be in range(0, 1000). text
hyvideo/modules/models.py:672
Methodforward
( self, x: torch.Tensor, c: torch.Tensor, # timestep_aware_representations + context_
hyvideo/modules/token_refiner.py:77
Methodforward
( self, x: torch.Tensor, c: torch.LongTensor, mask: Optional[torch.Tensor] = N
hyvideo/modules/token_refiner.py:137
Methodforward
( self, x: torch.Tensor, t: torch.LongTensor, mask: Optional[torch.LongTensor]
hyvideo/modules/token_refiner.py:214
Methodforward
(self, x)
hyvideo/modules/mlp_layers.py:52
Methodforward
(self, x: torch.Tensor)
hyvideo/modules/mlp_layers.py:72
Methodforward
(self, x, c)
hyvideo/modules/mlp_layers.py:114
← previousnext →201–300 of 333, ranked by callers