Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vchitect/Latte
/ types & classes
Types & classes
88 in github.com/Vchitect/Latte
⨍
Functions
555
◇
Types & classes
88
↓ 12 callers
Class
Latte
Diffusion model with a Transformer backbone.
models/latte.py:204
↓ 12 callers
Class
Latte
Diffusion model with a Transformer backbone.
models/latte_img.py:207
↓ 3 callers
Class
Attention
models/latte.py:35
↓ 2 callers
Class
FaceForensicsImages
Load the FaceForensics video files Args: target_video_len (int): the number of video frames will be load. align_transform (ca
datasets/ffs_image_datasets.py:128
↓ 2 callers
Class
FeedForward
r""" A feed-forward layer. Parameters: dim (`int`): The number of channels in the input. dim_out (`int`, *optional*): The num
models/latte_t2v.py:69
↓ 2 callers
Class
FullyConnectedLayer
tools/utils/layers.py:109
↓ 2 callers
Class
ProgressMonitor
tools/metrics/metric_utils.py:144
↓ 2 callers
Class
Sky
datasets/sky_datasets.py:15
↓ 2 callers
Class
SkyImages
datasets/sky_image_datasets.py:14
↓ 2 callers
Class
Taichi
datasets/taichi_datasets.py:16
↓ 2 callers
Class
TaichiImages
datasets/taichi_image_datasets.py:16
↓ 2 callers
Class
UCF101
Load the UCF101 video files Args: target_video_len (int): the number of video frames will be load. align_transform (calla
datasets/ucf101_datasets.py:138
↓ 2 callers
Class
UCF101Images
Load the UCF101 video files Args: target_video_len (int): the number of video frames will be load. align_transform (callable)
datasets/ucf101_image_datasets.py:139
↓ 2 callers
Class
suppress_tracer_warnings
tools/torch_utils/misc.py:69
↓ 1 callers
Class
AdaLayerNormSingle
r""" Norm layer adaptive layer norm single (adaLN-single). As proposed in PixArt-Alpha (see: https://arxiv.org/abs/2310.00426; Section 2.3).
models/latte_t2v.py:398
↓ 1 callers
Class
Attention
models/latte_img.py:39
↓ 1 callers
Class
BasicTransformerBlock_
r""" A basic Transformer block. Parameters: dim (`int`): The number of channels in the input and output. num_attention_heads
models/latte_t2v.py:126
↓ 1 callers
Class
DecordInit
Using Decord(https://github.com/dmlc/decord) to initialize the video_reader.
datasets/ffs_datasets.py:98
↓ 1 callers
Class
DecordInit
Using Decord(https://github.com/dmlc/decord) to initialize the video_reader.
datasets/ucf101_image_datasets.py:114
↓ 1 callers
Class
DecordInit
Using Decord(https://github.com/dmlc/decord) to initialize the video_reader.
datasets/ucf101_datasets.py:113
↓ 1 callers
Class
DecordInit
Using Decord(https://github.com/dmlc/decord) to initialize the video_reader.
datasets/ffs_image_datasets.py:102
↓ 1 callers
Class
FaceForensics
Load the FaceForensics video files Args: target_video_len (int): the number of video frames will be load. align_transform
datasets/ffs_datasets.py:124
↓ 1 callers
Class
FeatureStats
tools/metrics/metric_utils.py:64
↓ 1 callers
Class
FinalLayer
The final layer of Latte.
models/latte.py:184
↓ 1 callers
Class
FinalLayer
The final layer of Latte.
models/latte_img.py:187
↓ 1 callers
Class
FixedTimeEncoder
tools/utils/layers.py:302
↓ 1 callers
Class
FrozenCLIPEmbedder
Uses the CLIP transformer encoder for text (from Hugging Face)
models/clip.py:32
↓ 1 callers
Class
GatedSelfAttentionDense
r""" A gated self-attention dense layer that combines visual features and object features. Parameters: query_dim (`int`): The number
models/latte_t2v.py:29
↓ 1 callers
Class
GaussianDiffusion
Utilities for training and sampling diffusion models. Original ported from this codebase: https://github.com/hojonathanho/diffusion/bl
diffusion/gaussian_diffusion.py:144
↓ 1 callers
Class
GroupNorm32
models/utils.py:137
↓ 1 callers
Class
LabelEmbedder
Embeds class labels into vector representations. Also handles label dropout for classifier-free guidance.
models/latte.py:126
↓ 1 callers
Class
LabelEmbedder
Embeds class labels into vector representations. Also handles label dropout for classifier-free guidance.
models/latte_img.py:129
↓ 1 callers
Class
LattePipeline
r""" Pipeline for text-to-image generation using PixArt-Alpha. This model inherits from [`DiffusionPipeline`]. Check the superclass documenta
sample/pipeline_latte.py:71
↓ 1 callers
Class
LatteTrainingModule
train_with_img_pl.py:30
↓ 1 callers
Class
LatteTrainingModule
train_pl.py:30
↓ 1 callers
Class
LossSecondMomentResampler
diffusion/timestep_sampler.py:120
↓ 1 callers
Class
RandomHorizontalFlipVideo
Flip the video clip along the horizontal direction with a given probability Args: p (float): probability of the clip being flipped
datasets/video_transforms.py:386
↓ 1 callers
Class
SpacedDiffusion
A diffusion process which can skip steps in a base diffusion process. :param use_timesteps: a collection (sequence or set) of timesteps fro
diffusion/respace.py:65
↓ 1 callers
Class
TemporalInput
tools/utils/layers.py:231
↓ 1 callers
Class
TemporalRandomCrop
Temporally crop the given frame indices at a random location. Args: size (int): Desired length of frames will be seen in the model.
datasets/video_transforms.py:413
↓ 1 callers
Class
TextEmbedder
Embeds text prompt into vector representations. Also handles text dropout for classifier-free guidance.
models/clip.py:62
↓ 1 callers
Class
TimestepEmbedder
Embeds scalar timesteps into vector representations.
models/latte.py:84
↓ 1 callers
Class
TimestepEmbedder
Embeds scalar timesteps into vector representations.
models/latte_img.py:87
↓ 1 callers
Class
ToTensorVideo
Convert tensor data type from uint8 to float, divide value by 255.0 and permute the dimensions of clip tensor
datasets/video_transforms.py:364
↓ 1 callers
Class
Transformer3DModelOutput
The output of [`Transformer2DModel`]. Args: sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)` or `(ba
models/latte_t2v.py:431
↓ 1 callers
Class
TransformerBlock
A Latte tansformer block with adaptive layer norm zero (adaLN-Zero) conditioning.
models/latte.py:160
↓ 1 callers
Class
TransformerBlock
A Latte block with adaptive layer norm zero (adaLN-Zero) conditioning.
models/latte_img.py:163
↓ 1 callers
Class
UCFCenterCropVideo
First scale to the specified size in equal proportion to the short edge, then center cropping
datasets/video_transforms.py:249
↓ 1 callers
Class
UniformSampler
diffusion/timestep_sampler.py:62
↓ 1 callers
Class
VideoPipelineOutput
sample/pipeline_latte.py:67
↓ 1 callers
Class
_WrappedModel
diffusion/respace.py:118
Class
AbstractEncoder
models/clip.py:24
Class
BiasActCuda
tools/torch_utils/ops/bias_act.py:145
Class
BiasActCudaGrad
tools/torch_utils/ops/bias_act.py:178
Class
CenterCropResizeVideo
First use the short side for cropping length, center crop video, then resize to the specified size
datasets/video_transforms.py:214
Class
CenterCropVideo
datasets/video_transforms.py:308
Class
CheckpointFunction
models/utils.py:42
Class
Collector
r"""Collects the scalars broadcasted by `report()` and `report0()` and computes their long-term averages (mean and standard deviation) over us
tools/torch_utils/training_stats.py:113
Class
CommaSeparatedList
tools/calc_metrics_for_dataset.py:81
Class
Conv2d
tools/torch_utils/ops/conv2d_gradfix.py:107
Class
Conv2dGradWeight
tools/torch_utils/ops/conv2d_gradfix.py:140
Class
Conv2dLayer
tools/utils/layers.py:143
Class
Dataset
tools/utils/dataset.py:37
Class
Decorator
tools/torch_utils/persistence.py:99
Class
EasyDict
Convenience class that behaves like a dict but allows access with the attribute syntax.
tools/dnnlib/util.py:40
Class
EqLRConv1d
tools/utils/layers.py:332
Class
GenInput
tools/utils/layers.py:202
Class
ImageFolderDataset
tools/utils/dataset.py:174
Class
InfiniteSampler
tools/torch_utils/misc.py:110
Class
KineticsRandomCropResizeVideo
Slide along the long edge, with the short edge as crop size. And resie to the desired size.
datasets/video_transforms.py:284
Class
LatteT2V
models/latte_t2v.py:444
Class
Logger
Redirect stderr to stdout, optionally print stdout to a file, and optionally force flushing on both stdout and the file.
tools/dnnlib/util.py:59
Class
LossAwareSampler
diffusion/timestep_sampler.py:71
Class
LossType
diffusion/gaussian_diffusion.py:46
Class
MappingNetwork
tools/utils/layers.py:23
Class
MetricOptions
tools/metrics/metric_utils.py:24
Class
ModelMeanType
Which type of output the model predicts.
diffusion/gaussian_diffusion.py:23
Class
ModelVarType
What is used as the model's output variance. The LEARNED_RANGE option has been added to allow the model to predict values between FIXE
diffusion/gaussian_diffusion.py:33
Class
NormalizeVideo
Normalize the video clip by mean subtraction and division by standard deviation Args: mean (3-tuple): pixel RGB mean std
datasets/video_transforms.py:339
Class
RandomCropVideo
datasets/video_transforms.py:178
Class
ScheduleSampler
A distribution over timesteps in the diffusion process, intended to reduce variance of the objective. By default, samplers perform unb
diffusion/timestep_sampler.py:27
Class
SiLU
models/utils.py:132
Class
TemporalDifferenceEncoder
tools/utils/layers.py:255
Class
Upfirdn2dCuda
tools/torch_utils/ops/upfirdn2d.py:228
Class
VideoFramesFolderDataset
tools/utils/dataset.py:260
Class
_FusedMultiplyAdd
tools/torch_utils/ops/fma.py:20
Class
_GridSample2dBackward
tools/torch_utils/ops/grid_sample_gradfix.py:61
Class
_GridSample2dForward
tools/torch_utils/ops/grid_sample_gradfix.py:44