mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Add "score"
as a supported model_type
Originally, `"score"` is not an allowed model type. However, the documentation supports `"score"` and the method has code related to it. This commit adds it back.
This commit is contained in:
parent
8daedc5bf2
commit
5d2475ef80
@ -344,7 +344,7 @@ def model_wrapper(
|
|||||||
noise_uncond, noise = noise_pred_fn(x_in, t_in, cond=c_in).chunk(2)
|
noise_uncond, noise = noise_pred_fn(x_in, t_in, cond=c_in).chunk(2)
|
||||||
return noise_uncond + guidance_scale * (noise - noise_uncond)
|
return noise_uncond + guidance_scale * (noise - noise_uncond)
|
||||||
|
|
||||||
assert model_type in ["noise", "x_start", "v"]
|
assert model_type in ["noise", "x_start", "v", "score"]
|
||||||
assert guidance_type in ["uncond", "classifier", "classifier-free"]
|
assert guidance_type in ["uncond", "classifier", "classifier-free"]
|
||||||
return model_fn
|
return model_fn
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user