Table of Contents

Class PixArtOptions<T>

Namespace
AiDotNet.Diffusion.Models
Assembly
AiDotNet.dll

Options for PixArt-α model configuration.

public class PixArtOptions<T> : DiffusionModelOptions<T>

Type Parameters

T
Inheritance
PixArtOptions<T>
Inherited Members

Properties

DefaultGuidanceScale

Default guidance scale for PixArt. Default: 4.5.

public double DefaultGuidanceScale { get; set; }

Property Value

double

Remarks

PixArt typically works well with lower guidance scales than SDXL. Range: 3.0-7.5 (4.5 is commonly used).

ModelSize

Model size variant. Default: "alpha".

public string ModelSize { get; set; }

Property Value

string

Remarks

Available variants:

  • "alpha": Full 1024px model (600M params)
  • "sigma": 512px variant
  • "delta": Smaller 256px variant
  • "xl": Larger variant with more parameters

TextEncoderSize

Text encoder variant to use. Default: "xxl".

public string TextEncoderSize { get; set; }

Property Value

string

Remarks

Options:

  • "xxl": T5-XXL (4.3B params, best quality)
  • "xl": T5-XL (3B params, faster)
  • "large": T5-Large (770M params, much faster)

UseT5Encoder

Whether to use T5-XXL text encoder. Default: true.

public bool UseT5Encoder { get; set; }

Property Value

bool

Remarks

T5-XXL provides better text understanding but requires more memory. Disable for faster inference with slightly reduced prompt adherence.