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 function

is_diffusion_pipeline

is_diffusion_pipeline()

max.pipelines.weights.is_diffusion_pipeline(repo)

source

Check if a Hugging Face repository is a diffusion pipeline.

Diffusion pipelines typically have a model_index.json file that describes the pipeline components.

Parameters:

repo (HuggingFaceRepo) – The HuggingFaceRepo to check.

Returns:

True if the repository appears to be a diffusion pipeline, False otherwise.

Return type:

bool