MCPcopy Create free account

hub / github.com/PixArt-alpha/PixArt-sigma / types & classes

Types & classes71 in github.com/PixArt-alpha/PixArt-sigma

↓ 3 callersClassAspectRatioBatchSampler
A sampler wrapper for grouping images with similar aspect ratio into a same batch. Args: sampler (Sampler): Base sampler. dataset
diffusion/utils/data_sampler.py:10
↓ 3 callersClassPatchEmbed
2D Image to Patch Embedding
diffusion/model/nets/PixArtMS.py:22
↓ 2 callersClassAttentionKVCompress
Multi-head Attention block with KV token compression and qk norm.
diffusion/model/nets/PixArt_blocks.py:61
↓ 2 callersClassCaptionEmbedder
Embeds class labels into vector representations. Also handles label dropout for classifier-free guidance.
diffusion/model/nets/PixArt_blocks.py:378
↓ 2 callersClassDMD
diffusion/data/datasets/dmd.py:20
↓ 2 callersClassDatasetExtract
tools/extract_features.py:36
↓ 2 callersClassDebugUnderflowOverflow
This debug class helps detect and understand where the model starts getting very large or very small, and more importantly `nan` or `inf` wei
diffusion/utils/misc.py:107
↓ 2 callersClassMultiHeadCrossAttention
diffusion/model/nets/PixArt_blocks.py:28
↓ 2 callersClassNoiseScheduleVP
diffusion/model/sa_solver.py:7
↓ 2 callersClassSASolverSampler
diffusion/sa_sampler.py:10
↓ 2 callersClassSimpleTimer
diffusion/utils/misc.py:85
↓ 2 callersClassSizeEmbedder
Embeds scalar timesteps into vector representations.
diffusion/model/nets/PixArt_blocks.py:312
↓ 2 callersClassT2IFinalLayer
The final layer of PixArt.
diffusion/model/nets/PixArt_blocks.py:205
↓ 1 callersClassAttentionPorcessorFP32
scripts/DMD/transformer_train/attention_processor.py:7
↓ 1 callersClassDDIMSolver
train_scripts/train_pixart_lcm.py:77
↓ 1 callersClassDPM_Solver
diffusion/model/dpm_solver.py:339
↓ 1 callersClassDreamboothDataset
train_scripts/train_dreambooth_lora.py:248
↓ 1 callersClassGaussianDiffusion
Utilities for training and sampling diffusion models. Original ported from this codebase: https://github.com/hojonathanho/diffusion/blob/
diffusion/model/gaussian_diffusion.py:145
↓ 1 callersClassLCMScheduler
`LCMScheduler` extends the denoising procedure introduced in denoising diffusion probabilistic models (DDPMs) with non-Markovian guidance.
diffusion/lcm_scheduler.py:122
↓ 1 callersClassLCMSchedulerOutput
Output class for the scheduler's `step` function output. Args: prev_sample (`torch.FloatTensor` of shape `(batch_size, num_channels,
diffusion/lcm_scheduler.py:32
↓ 1 callersClassLlavaMPTModel
diffusion/model/llava/llava_mpt.py:43
↓ 1 callersClassLossSecondMomentResampler
diffusion/model/timestep_sampler.py:120
↓ 1 callersClassMPTBlock
diffusion/model/llava/mpt/blocks.py:20
↓ 1 callersClassMPTMLP
diffusion/model/llava/mpt/blocks.py:8
↓ 1 callersClassMPTModel
diffusion/model/llava/mpt/modeling_mpt.py:27
↓ 1 callersClassPixArt
Diffusion model with a Transformer backbone.
diffusion/model/nets/PixArt.py:63
↓ 1 callersClassPixArtBlock
A PixArt block with adaptive layer norm (adaLN-single) conditioning.
diffusion/model/nets/PixArt.py:25
↓ 1 callersClassPixArtMS
Diffusion model with a Transformer backbone.
diffusion/model/nets/PixArtMS.py:86
↓ 1 callersClassPixArtMSBlock
A PixArt block with adaptive layer norm zero (adaLN-Zero) conditioning.
diffusion/model/nets/PixArtMS.py:49
↓ 1 callersClassSASolver
diffusion/model/sa_solver.py:325
↓ 1 callersClassSpacedDiffusion
A diffusion process which can skip steps in a base diffusion process. :param use_timesteps: a collection (sequence or set) of timesteps from
diffusion/model/respace.py:65
↓ 1 callersClassTimestepEmbedder
Embeds scalar timesteps into vector representations.
diffusion/model/nets/PixArt_blocks.py:267
↓ 1 callersClassUniformSampler
diffusion/model/timestep_sampler.py:62
↓ 1 callersClass_WrappedModel
diffusion/model/respace.py:122
ClassAttention
diffusion/model/nets/PixArt_blocks.py:164
ClassBalancedAspectRatioBatchSampler
diffusion/utils/data_sampler.py:79
ClassCAMEWrapper
diffusion/utils/optimizer.py:243
ClassCaptionEmbedderDoubleBr
Embeds class labels into vector representations. Also handles label dropout for classifier-free guidance.
diffusion/model/nets/PixArt_blocks.py:410
ClassDecoderLayer
The final layer of PixArt.
diffusion/model/nets/PixArt_blocks.py:244
ClassFinalLayer
The final layer of PixArt.
diffusion/model/nets/PixArt_blocks.py:184
ClassGatherLayer
Gather tensors from all process, supporting backward propagation.
diffusion/utils/dist_utils.py:224
ClassGatherLayerWithGroup
Gather tensors from all process, supporting backward propagation.
diffusion/utils/dist_utils.py:250
ClassInternalData
diffusion/data/datasets/InternalData.py:22
ClassInternalDataMS
diffusion/data/datasets/InternalData_ms.py:21
ClassInternalDataMSSigma
diffusion/data/datasets/InternalData_ms.py:173
ClassInternalDataSigma
diffusion/data/datasets/InternalData.py:162
ClassLPLayerNorm
diffusion/model/llava/mpt/norm.py:14
ClassLPRMSNorm
diffusion/model/llava/mpt/norm.py:46
ClassLabelEmbedder
Embeds class labels into vector representations. Also handles label dropout for classifier-free guidance.
diffusion/model/nets/PixArt_blocks.py:347
ClassLion
diffusion/utils/optimizer.py:175
ClassLlavaMPTConfig
diffusion/model/llava/llava_mpt.py:39
ClassLlavaMPTForCausalLM
diffusion/model/llava/llava_mpt.py:172
ClassLogger
Redirect stderr to stdout, optionally print stdout to a file, and optionally force flushing on both stdout and the file.
diffusion/model/utils.py:366
ClassLossAwareSampler
diffusion/model/timestep_sampler.py:71
ClassLossType
diffusion/model/gaussian_diffusion.py:47
ClassMPTConfig
diffusion/model/llava/mpt/configuration_mpt.py:7
ClassMPTForCausalLM
diffusion/model/llava/mpt/modeling_mpt.py:217
ClassMPTPreTrainedModel
diffusion/model/llava/mpt/modeling_mpt.py:23
ClassMaskFinalLayer
The final layer of PixArt.
diffusion/model/nets/PixArt_blocks.py:224
ClassModelMeanType
Which type of output the model predicts.
diffusion/model/gaussian_diffusion.py:24
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 FIXED_S
diffusion/model/gaussian_diffusion.py:34
ClassMultiQueryAttention
Multi-Query self attention. Using torch or triton attention implemetation enables user to also use additive bias.
diffusion/model/llava/mpt/attention.py:174
ClassMultiheadAttention
Multi-head self attention. Using torch or triton attention implemetation enables user to also use additive bias.
diffusion/model/llava/mpt/attention.py:115
ClassMyOptimizerConstructor
diffusion/utils/optimizer.py:32
ClassNoiseScheduleVP
diffusion/model/dpm_solver.py:5
ClassPixArtSigmaPipeline
r""" tmp Pipeline for text-to-image generation using PixArt-Sigma.
scripts/diffusers_patches.py:479
ClassRMSNorm
diffusion/model/llava/mpt/norm.py:33
ClassSASolverScheduler
`SASolverScheduler` is a fast dedicated high-order solver for diffusion SDEs. This model inherits from [`SchedulerMixin`] and [`ConfigMixin`
diffusion/sa_solver_diffusers.py:72
ClassScheduleSampler
A distribution over timesteps in the diffusion process, intended to reduce variance of the objective. By default, samplers perform unbias
diffusion/model/timestep_sampler.py:27
ClassStackedRandomGenerator
diffusion/model/utils.py:425
ClassT5Embedder
diffusion/model/t5.py:13