Python class
PixelGenerationContext
PixelGenerationContextβ
class max.interfaces.PixelGenerationContext(*args, **kwargs)
Bases: BaseContext, Protocol
Protocol defining the interface for pixel generation contexts.
A PixelGenerationContext represents model inputs for pixel generation pipelines,
managing the state and parameters needed for generating images or videos.
guidance_scaleβ
property guidance_scale: float
Classifier-free guidance scale (1.0 to disable CFG).
heightβ
property height: int
Height of generated output in pixels.
latentsβ
The latents for the context.
num_images_per_promptβ
property num_images_per_prompt: int
Number of images to generate.
num_inference_stepsβ
property num_inference_steps: int
Number of denoising steps.
tokensβ
property tokens: TokenBuffer
The token buffer for the context.
widthβ
property width: int
Width of generated output in pixels.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!