Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
f10b8948
Commit
f10b8948
authored
Feb 11, 2023
by
comfyanonymous
Browse files
768-v support for uni_pc sampler.
parent
ce0aeb10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
comfy/extra_samplers/uni_pc.py
comfy/extra_samplers/uni_pc.py
+5
-1
No files found.
comfy/extra_samplers/uni_pc.py
View file @
f10b8948
...
@@ -835,12 +835,16 @@ def sample_unipc(model, noise, image, sigmas, sampling_function, extra_args=None
...
@@ -835,12 +835,16 @@ def sample_unipc(model, noise, image, sigmas, sampling_function, extra_args=None
device
=
noise
.
device
device
=
noise
.
device
if
model
.
inner_model
.
parameterization
==
"v"
:
model_type
=
"v"
else
:
model_type
=
"noise"
model_fn
=
model_wrapper
(
model_fn
=
model_wrapper
(
model
.
inner_model
.
apply_model
,
model
.
inner_model
.
apply_model
,
sampling_function
,
sampling_function
,
ns
,
ns
,
model_type
=
"noise"
,
model_type
=
model_type
,
guidance_type
=
"uncond"
,
guidance_type
=
"uncond"
,
model_kwargs
=
extra_args
,
model_kwargs
=
extra_args
,
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment