[diffusion][bugfix] Separate Diffusers hooks from model metadata (#6749)

Signed-off-by: david6666666 <530634352@qq.com>
Signed-off-by: Gao Han <hgaoaf@connect.ust.hk>
Co-authored-by: Gao Han <hgaoaf@connect.ust.hk>
This commit is contained in:
WeiQing ChenandGao Han authored and GitHub committed 2026-08-29 17:37:14 +00:00
1 parent 73893e73ea
commit 9a88d2d21d
11 files changed
+232 -12

No files matched your search

@@ -29,7 +29,11 @@ class BasePipelineUtils:
pass
def validate_runtime_sampling_params(self, sampling: OmniDiffusionSamplingParams) -> None:
pass
if sampling.enable_frame_interpolation:
raise ValueError(
"Frame interpolation is not supported with the Diffusers backend because "
"Diffusers returns already postprocessed frames."
)
def update_call_kwargs(
self,
@@ -99,6 +103,7 @@ class WanPipelineUtils(BasePipelineUtils):
)
def validate_runtime_sampling_params(self, sampling: OmniDiffusionSamplingParams) -> None:
super().validate_runtime_sampling_params(sampling)
if sampling.boundary_ratio is not None:
raise ValueError(
"Boundary ratio is not supported at runtime with the diffusers backend for Wan models. Please set "