mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 03:13:30 +00:00
768-v support for uni_pc sampler.
This commit is contained in:
parent
ce0aeb109e
commit
f10b8948c3
@ -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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user