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!