IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Python class

SchedulerFactory

SchedulerFactory​

class max.pipelines.diffusion.schedulers.SchedulerFactory

source

Bases: object

Factory for creating schedulers from diffusers configuration.

create()​

classmethod create(class_name, config_dict=None)

source

Create a scheduler instance.

Parameters:

  • class_name (str) – The diffusers scheduler class name.
  • config_dict (dict[str, Any] | None) – Configuration parameters for the scheduler.

Returns:

A scheduler instance.

Raises:

ValueError – If the scheduler class is not supported.

Return type:

Any