Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent-Hunyuan/HunyuanVideo-I2V
/ types & classes
Types & classes
54 in github.com/Tencent-Hunyuan/HunyuanVideo-I2V
⨍
Functions
333
◇
Types & classes
54
↓ 9 callers
Class
CausalConv3d
Implements a causal 3D convolution layer where each position only depends on previous timesteps and current spatial locations. This maintai
hyvideo/vae/unet_causal_3d_blocks.py:48
↓ 6 callers
Class
TextEncoder
hyvideo/text_encoder/__init__.py:119
↓ 4 callers
Class
DecoderOutput
r""" Output of decoding method. Args: sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)`):
hyvideo/vae/vae.py:20
↓ 4 callers
Class
ResnetBlockCausal3D
r""" A Resnet block.
hyvideo/vae/unet_causal_3d_blocks.py:249
↓ 4 callers
Class
TextEncoderModelOutput
Base class for model's outputs that also contains a pooling of the last hidden states. Args: hidden_state (`torch.FloatTensor` of sh
hyvideo/text_encoder/__init__.py:96
↓ 3 callers
Class
DiagonalGaussianDistribution
hyvideo/vae/vae.py:294
↓ 3 callers
Class
MLP
MLP as used in Vision Transformer, MLP-Mixer and related networks
hyvideo/modules/mlp_layers.py:13
↓ 3 callers
Class
ModulateDiT
Modulation layer for DiT.
hyvideo/modules/modulate_layers.py:7
↓ 3 callers
Class
TimestepEmbedder
Embeds scalar timesteps into vector representations.
hyvideo/modules/embed_layers.py:120
↓ 2 callers
Class
DecoderOutput2
hyvideo/vae/autoencoder_kl_causal_3d.py:48
↓ 2 callers
Class
DownsampleCausal3D
A 3D downsampling layer with an optional convolution.
hyvideo/vae/unet_causal_3d_blocks.py:185
↓ 2 callers
Class
FlowMatchDiscreteScheduler
Euler scheduler. This model inherits from [`SchedulerMixin`] and [`ConfigMixin`]. Check the superclass documentation for the generic met
hyvideo/diffusion/schedulers/scheduling_flow_match_discrete.py:48
↓ 2 callers
Class
RMSNorm
hyvideo/modules/norm_layers.py:5
↓ 2 callers
Class
TextProjection
Projects text embeddings. Also handles dropout for classifier-free guidance. Adapted from https://github.com/PixArt-alpha/PixArt-alpha/blob/
hyvideo/modules/embed_layers.py:62
↓ 2 callers
Class
Transport
hyvideo/diffusion/flow/transport.py:63
↓ 2 callers
Class
UNetMidBlockCausal3D
A 3D UNet mid-block [`UNetMidBlockCausal3D`] with multiple residual blocks and optional attention blocks.
hyvideo/vae/unet_causal_3d_blocks.py:526
↓ 2 callers
Class
UpsampleCausal3D
A 3D upsampling layer with an optional convolution.
hyvideo/vae/unet_causal_3d_blocks.py:77
↓ 2 callers
Class
VideoDataset
hyvideo/dataset/video_loader.py:13
↓ 2 callers
Class
ode
ODE solver class
hyvideo/diffusion/flow/integrators.py:78
↓ 1 callers
Class
CycleStates
train_image2video_lora.py:202
↓ 1 callers
Class
DecoderCausal3D
r""" The `DecoderCausal3D` layer of a variational autoencoder that decodes its latent representation into an output sample.
hyvideo/vae/vae.py:136
↓ 1 callers
Class
DownEncoderBlockCausal3D
hyvideo/vae/unet_causal_3d_blocks.py:631
↓ 1 callers
Class
EncoderCausal3D
r""" The `EncoderCausal3D` layer of a variational autoencoder that encodes its input into a latent representation.
hyvideo/vae/vae.py:32
↓ 1 callers
Class
FinalLayer
The final layer of DiT.
hyvideo/modules/mlp_layers.py:76
↓ 1 callers
Class
FlowMatchDiscreteSchedulerOutput
Output class for the scheduler's `step` function output. Args: prev_sample (`torch.FloatTensor` of shape `(batch_size, num_channels,
hyvideo/diffusion/schedulers/scheduling_flow_match_discrete.py:35
↓ 1 callers
Class
HYVideoDiffusionTransformer
HunyuanVideo Transformer backbone Inherited from ModelMixin and ConfigMixin for compatibility with diffusers' sampler StableDiffusionPipelin
hyvideo/modules/models.py:463
↓ 1 callers
Class
HunyuanVideoPipeline
r""" Pipeline for text-to-video generation using HunyuanVideo. This model inherits from [`DiffusionPipeline`]. Check the superclass documenta
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:145
↓ 1 callers
Class
HunyuanVideoPipelineOutput
hyvideo/diffusion/pipelines/pipeline_hunyuan_video.py:141
↓ 1 callers
Class
IndividualTokenRefiner
hyvideo/modules/token_refiner.py:103
↓ 1 callers
Class
IndividualTokenRefinerBlock
hyvideo/modules/token_refiner.py:16
↓ 1 callers
Class
MLPEmbedder
copied from https://github.com/black-forest-labs/flux/blob/main/src/flux/modules/layers.py
hyvideo/modules/mlp_layers.py:63
↓ 1 callers
Class
MMDoubleStreamBlock
A multimodal dit block with seperate modulation for text and image/video, see more details (SD3): https://arxiv.org/abs/2403.03206
hyvideo/modules/models.py:23
↓ 1 callers
Class
MMSingleStreamBlock
A DiT block with parallel linear layers as described in https://arxiv.org/abs/2302.05442 and adapted modulation interface. Also refer to
hyvideo/modules/models.py:298
↓ 1 callers
Class
MultiBucketDataset
hyvideo/hyvae_extract/dataset.py:30
↓ 1 callers
Class
PatchEmbed
2D Image to Patch Embedding Image to Patch Embedding using Conv2d A convolution based approach to patchifying a 2D image w/ embedding projec
hyvideo/modules/embed_layers.py:9
↓ 1 callers
Class
ScalarStates
train_image2video_lora.py:174
↓ 1 callers
Class
SingleTokenRefiner
A single token refiner block for llm text embedding refine.
hyvideo/modules/token_refiner.py:164
↓ 1 callers
Class
UpDecoderBlockCausal3D
hyvideo/vae/unet_causal_3d_blocks.py:697
↓ 1 callers
Class
VideoDataset
hyvideo/hyvae_extract/dataset.py:86
↓ 1 callers
Class
sde
SDE solver class
hyvideo/diffusion/flow/integrators.py:4
↓ 1 callers
Class
set_worker_seed_builder
hyvideo/utils/train_utils.py:220
Class
AutoencoderKLCausal3D
r""" A VAE model with KL loss for encoding images/videos into latents and decoding latent representations into images/videos. This model i
hyvideo/vae/autoencoder_kl_causal_3d.py:53
Class
EasyDict
hyvideo/diffusion/flow/utils.py:4
Class
EventsMonitor
hyvideo/utils/helpers.py:22
Class
GVPCPlan
hyvideo/diffusion/flow/path.py:188
Class
HunyuanVideoSampler
hyvideo/inference.py:519
Class
ICPlan
Linear Coupling Plan
hyvideo/diffusion/flow/path.py:15
Class
Inference
hyvideo/inference.py:176
Class
ModelType
Which type of output the model predicts.
hyvideo/diffusion/flow/transport.py:16
Class
PathType
Which type of path to use.
hyvideo/diffusion/flow/transport.py:26
Class
SNRType
hyvideo/diffusion/flow/transport.py:46
Class
Sampler
Sampler class for the transport model
hyvideo/diffusion/flow/transport.py:291
Class
VPCPlan
class for VP path flow matching
hyvideo/diffusion/flow/path.py:150
Class
WeightType
Which type of weighting to use.
hyvideo/diffusion/flow/transport.py:36