MCPcopy Create free account

hub / github.com/Vchitect/Latte / types & classes

Types & classes88 in github.com/Vchitect/Latte

↓ 12 callersClassLatte
Diffusion model with a Transformer backbone.
models/latte.py:204
↓ 12 callersClassLatte
Diffusion model with a Transformer backbone.
models/latte_img.py:207
↓ 3 callersClassAttention
models/latte.py:35
↓ 2 callersClassFaceForensicsImages
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 callersClassFeedForward
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 callersClassFullyConnectedLayer
tools/utils/layers.py:109
↓ 2 callersClassProgressMonitor
tools/metrics/metric_utils.py:144
↓ 2 callersClassSky
datasets/sky_datasets.py:15
↓ 2 callersClassSkyImages
datasets/sky_image_datasets.py:14
↓ 2 callersClassTaichi
datasets/taichi_datasets.py:16
↓ 2 callersClassTaichiImages
datasets/taichi_image_datasets.py:16
↓ 2 callersClassUCF101
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 callersClassUCF101Images
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 callersClasssuppress_tracer_warnings
tools/torch_utils/misc.py:69
↓ 1 callersClassAdaLayerNormSingle
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 callersClassAttention
models/latte_img.py:39
↓ 1 callersClassBasicTransformerBlock_
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 callersClassDecordInit
Using Decord(https://github.com/dmlc/decord) to initialize the video_reader.
datasets/ffs_datasets.py:98
↓ 1 callersClassDecordInit
Using Decord(https://github.com/dmlc/decord) to initialize the video_reader.
datasets/ucf101_image_datasets.py:114
↓ 1 callersClassDecordInit
Using Decord(https://github.com/dmlc/decord) to initialize the video_reader.
datasets/ucf101_datasets.py:113
↓ 1 callersClassDecordInit
Using Decord(https://github.com/dmlc/decord) to initialize the video_reader.
datasets/ffs_image_datasets.py:102
↓ 1 callersClassFaceForensics
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 callersClassFeatureStats
tools/metrics/metric_utils.py:64
↓ 1 callersClassFinalLayer
The final layer of Latte.
models/latte.py:184
↓ 1 callersClassFinalLayer
The final layer of Latte.
models/latte_img.py:187
↓ 1 callersClassFixedTimeEncoder
tools/utils/layers.py:302
↓ 1 callersClassFrozenCLIPEmbedder
Uses the CLIP transformer encoder for text (from Hugging Face)
models/clip.py:32
↓ 1 callersClassGatedSelfAttentionDense
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 callersClassGaussianDiffusion
Utilities for training and sampling diffusion models. Original ported from this codebase: https://github.com/hojonathanho/diffusion/bl
diffusion/gaussian_diffusion.py:144
↓ 1 callersClassGroupNorm32
models/utils.py:137
↓ 1 callersClassLabelEmbedder
Embeds class labels into vector representations. Also handles label dropout for classifier-free guidance.
models/latte.py:126
↓ 1 callersClassLabelEmbedder
Embeds class labels into vector representations. Also handles label dropout for classifier-free guidance.
models/latte_img.py:129
↓ 1 callersClassLattePipeline
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 callersClassLatteTrainingModule
train_with_img_pl.py:30
↓ 1 callersClassLatteTrainingModule
train_pl.py:30
↓ 1 callersClassLossSecondMomentResampler
diffusion/timestep_sampler.py:120
↓ 1 callersClassRandomHorizontalFlipVideo
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 callersClassSpacedDiffusion
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 callersClassTemporalInput
tools/utils/layers.py:231
↓ 1 callersClassTemporalRandomCrop
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 callersClassTextEmbedder
Embeds text prompt into vector representations. Also handles text dropout for classifier-free guidance.
models/clip.py:62
↓ 1 callersClassTimestepEmbedder
Embeds scalar timesteps into vector representations.
models/latte.py:84
↓ 1 callersClassTimestepEmbedder
Embeds scalar timesteps into vector representations.
models/latte_img.py:87
↓ 1 callersClassToTensorVideo
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 callersClassTransformer3DModelOutput
The output of [`Transformer2DModel`]. Args: sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)` or `(ba
models/latte_t2v.py:431
↓ 1 callersClassTransformerBlock
A Latte tansformer block with adaptive layer norm zero (adaLN-Zero) conditioning.
models/latte.py:160
↓ 1 callersClassTransformerBlock
A Latte block with adaptive layer norm zero (adaLN-Zero) conditioning.
models/latte_img.py:163
↓ 1 callersClassUCFCenterCropVideo
First scale to the specified size in equal proportion to the short edge, then center cropping
datasets/video_transforms.py:249
↓ 1 callersClassUniformSampler
diffusion/timestep_sampler.py:62
↓ 1 callersClassVideoPipelineOutput
sample/pipeline_latte.py:67
↓ 1 callersClass_WrappedModel
diffusion/respace.py:118
ClassAbstractEncoder
models/clip.py:24
ClassBiasActCuda
tools/torch_utils/ops/bias_act.py:145
ClassBiasActCudaGrad
tools/torch_utils/ops/bias_act.py:178
ClassCenterCropResizeVideo
First use the short side for cropping length, center crop video, then resize to the specified size
datasets/video_transforms.py:214
ClassCenterCropVideo
datasets/video_transforms.py:308
ClassCheckpointFunction
models/utils.py:42
ClassCollector
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
ClassCommaSeparatedList
tools/calc_metrics_for_dataset.py:81
ClassConv2d
tools/torch_utils/ops/conv2d_gradfix.py:107
ClassConv2dGradWeight
tools/torch_utils/ops/conv2d_gradfix.py:140
ClassConv2dLayer
tools/utils/layers.py:143
ClassDataset
tools/utils/dataset.py:37
ClassDecorator
tools/torch_utils/persistence.py:99
ClassEasyDict
Convenience class that behaves like a dict but allows access with the attribute syntax.
tools/dnnlib/util.py:40
ClassEqLRConv1d
tools/utils/layers.py:332
ClassGenInput
tools/utils/layers.py:202
ClassImageFolderDataset
tools/utils/dataset.py:174
ClassInfiniteSampler
tools/torch_utils/misc.py:110
ClassKineticsRandomCropResizeVideo
Slide along the long edge, with the short edge as crop size. And resie to the desired size.
datasets/video_transforms.py:284
ClassLatteT2V
models/latte_t2v.py:444
ClassLogger
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
ClassLossAwareSampler
diffusion/timestep_sampler.py:71
ClassLossType
diffusion/gaussian_diffusion.py:46
ClassMappingNetwork
tools/utils/layers.py:23
ClassMetricOptions
tools/metrics/metric_utils.py:24
ClassModelMeanType
Which type of output the model predicts.
diffusion/gaussian_diffusion.py:23
ClassModelVarType
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
ClassNormalizeVideo
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
ClassRandomCropVideo
datasets/video_transforms.py:178
ClassScheduleSampler
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
ClassSiLU
models/utils.py:132
ClassTemporalDifferenceEncoder
tools/utils/layers.py:255
ClassUpfirdn2dCuda
tools/torch_utils/ops/upfirdn2d.py:228
ClassVideoFramesFolderDataset
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