From 7490986ec8eca2a2dfb4f39fb4a7618ec88e7ecd Mon Sep 17 00:00:00 2001 From: William Lin Date: Thu, 29 Oct 2026 15:15:36 +0000 Subject: [PATCH] [docs] PAN2: point the guardrail install at MBZUAI-IFM/PAN2-guardrail Co-Authored-By: Claude Opus 5.5 --- docs/cookbook/pan2.md | 2 +- docs/inference/pan2.md | 4 ++-- fastvideo/pipelines/basic/pan2/guardrails.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/cookbook/pan2.md b/docs/cookbook/pan2.md index 5447aa094..e5581f144 100644 --- a/docs/cookbook/pan2.md +++ b/docs/cookbook/pan2.md @@ -17,7 +17,7 @@ with its prompt and video guardrails by default, so install them first (see [Guardrails](../inference/pan2.md#guardrails)): ```bash -pip install git+https://github.com/ifm-ai/pan2-guardrail +pip install git+https://github.com/MBZUAI-IFM/PAN2-guardrail python examples/inference/basic/basic_pan2.py ``` diff --git a/docs/inference/pan2.md b/docs/inference/pan2.md index 38681cb16..1687832c6 100644 --- a/docs/inference/pan2.md +++ b/docs/inference/pan2.md @@ -54,12 +54,12 @@ VAE into the first latent frame of the conditioning input. ## Guardrails PAN 2 runs with guardrails by default, as in its vLLM-Omni and Diffusers integrations. The -[`pan2-guardrail`](https://github.com/ifm-ai/pan2-guardrail) package checks every prompt before any compute and every +[`pan2-guardrail`](https://github.com/MBZUAI-IFM/PAN2-guardrail) package checks every prompt before any compute and every generated video after decoding. A blocked prompt or video raises `PAN2GuardrailViolationError`. Install the package before loading the pipeline: ```bash -pip install git+https://github.com/ifm-ai/pan2-guardrail +pip install git+https://github.com/MBZUAI-IFM/PAN2-guardrail ``` | Setting | Default | What it does | diff --git a/fastvideo/pipelines/basic/pan2/guardrails.py b/fastvideo/pipelines/basic/pan2/guardrails.py index 3d455f29d..4a2ccfe29 100644 --- a/fastvideo/pipelines/basic/pan2/guardrails.py +++ b/fastvideo/pipelines/basic/pan2/guardrails.py @@ -48,7 +48,7 @@ class PAN2Guardrails: def __init__(self, offload_to_cpu: bool = False) -> None: if importlib.util.find_spec("pan2_guardrail") is None: raise ImportError("PAN 2 runs with guardrails by default, but the pan2-guardrail package is not installed. " - "Install it with `pip install git+https://github.com/ifm-ai/pan2-guardrail`, " + + "Install it with `pip install git+https://github.com/MBZUAI-IFM/PAN2-guardrail`, " + _DISABLE_HINT) self.offload_to_cpu = offload_to_cpu self.checker = None