Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

768-v support for uni_pc sampler.

comfyanonymousf10b8948c3c5
diff --git a/comfy/extra_samplers/uni_pc.py b/comfy/extra_samplers/uni_pc.py
index 7373cba19..cc6299128 100644
--- a/comfy/extra_samplers/uni_pc.py
+++ b/comfy/extra_samplers/uni_pc.py
@@ -835,12 +835,16 @@ def sample_unipc(model, noise, image, sigmas, sampling_function, extra_args=None
device = noise.device
+ if model.inner_model.parameterization == "v":
+ model_type = "v"
+ else:
+ model_type = "noise"
model_fn = model_wrapper(
model.inner_model.apply_model,
sampling_function,
ns,
- model_type="noise",
+ model_type=model_type,
guidance_type="uncond",
model_kwargs=extra_args,
)