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
c9e4a8c9
"...git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "21e3f27e8eb9fe0b6b2afa1f08622f10dff30ece"
Commit
c9e4a8c9
authored
Jun 18, 2023
by
comfyanonymous
Browse files
Not needed anymore.
parent
fb4bf7f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
comfy/k_diffusion/external.py
comfy/k_diffusion/external.py
+2
-2
No files found.
comfy/k_diffusion/external.py
View file @
c9e4a8c9
...
@@ -134,7 +134,7 @@ class CompVisDenoiser(DiscreteEpsDDPMDenoiser):
...
@@ -134,7 +134,7 @@ class CompVisDenoiser(DiscreteEpsDDPMDenoiser):
"""A wrapper for CompVis diffusion models."""
"""A wrapper for CompVis diffusion models."""
def
__init__
(
self
,
model
,
quantize
=
False
,
device
=
'cpu'
):
def
__init__
(
self
,
model
,
quantize
=
False
,
device
=
'cpu'
):
super
().
__init__
(
model
,
model
.
alphas_cumprod
.
float
()
,
quantize
=
quantize
)
super
().
__init__
(
model
,
model
.
alphas_cumprod
,
quantize
=
quantize
)
def
get_eps
(
self
,
*
args
,
**
kwargs
):
def
get_eps
(
self
,
*
args
,
**
kwargs
):
return
self
.
inner_model
.
apply_model
(
*
args
,
**
kwargs
)
return
self
.
inner_model
.
apply_model
(
*
args
,
**
kwargs
)
...
@@ -173,7 +173,7 @@ class CompVisVDenoiser(DiscreteVDDPMDenoiser):
...
@@ -173,7 +173,7 @@ class CompVisVDenoiser(DiscreteVDDPMDenoiser):
"""A wrapper for CompVis diffusion models that output v."""
"""A wrapper for CompVis diffusion models that output v."""
def
__init__
(
self
,
model
,
quantize
=
False
,
device
=
'cpu'
):
def
__init__
(
self
,
model
,
quantize
=
False
,
device
=
'cpu'
):
super
().
__init__
(
model
,
model
.
alphas_cumprod
.
float
()
,
quantize
=
quantize
)
super
().
__init__
(
model
,
model
.
alphas_cumprod
,
quantize
=
quantize
)
def
get_v
(
self
,
x
,
t
,
cond
,
**
kwargs
):
def
get_v
(
self
,
x
,
t
,
cond
,
**
kwargs
):
return
self
.
inner_model
.
apply_model
(
x
,
t
,
cond
)
return
self
.
inner_model
.
apply_model
(
x
,
t
,
cond
)
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