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
94e4fe39
"deploy/cpp_infer/src_system/ocr_cls.cpp" did not exist on "4fd696ccdf657457e396cd790156cbf1eeaddf30"
Commit
94e4fe39
authored
Sep 15, 2023
by
comfyanonymous
Browse files
This isn't used anywhere.
parent
44361f63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
comfy/ldm/models/diffusion/ddim.py
comfy/ldm/models/diffusion/ddim.py
+1
-2
No files found.
comfy/ldm/models/diffusion/ddim.py
View file @
94e4fe39
...
@@ -33,7 +33,6 @@ class DDIMSampler(object):
...
@@ -33,7 +33,6 @@ class DDIMSampler(object):
assert
alphas_cumprod
.
shape
[
0
]
==
self
.
ddpm_num_timesteps
,
'alphas have to be defined for each timestep'
assert
alphas_cumprod
.
shape
[
0
]
==
self
.
ddpm_num_timesteps
,
'alphas have to be defined for each timestep'
to_torch
=
lambda
x
:
x
.
clone
().
detach
().
to
(
torch
.
float32
).
to
(
self
.
device
)
to_torch
=
lambda
x
:
x
.
clone
().
detach
().
to
(
torch
.
float32
).
to
(
self
.
device
)
self
.
register_buffer
(
'betas'
,
to_torch
(
self
.
model
.
betas
))
self
.
register_buffer
(
'alphas_cumprod'
,
to_torch
(
alphas_cumprod
))
self
.
register_buffer
(
'alphas_cumprod'
,
to_torch
(
alphas_cumprod
))
self
.
register_buffer
(
'alphas_cumprod_prev'
,
to_torch
(
self
.
model
.
alphas_cumprod_prev
))
self
.
register_buffer
(
'alphas_cumprod_prev'
,
to_torch
(
self
.
model
.
alphas_cumprod_prev
))
...
@@ -195,7 +194,7 @@ class DDIMSampler(object):
...
@@ -195,7 +194,7 @@ class DDIMSampler(object):
temperature
=
1.
,
noise_dropout
=
0.
,
score_corrector
=
None
,
corrector_kwargs
=
None
,
temperature
=
1.
,
noise_dropout
=
0.
,
score_corrector
=
None
,
corrector_kwargs
=
None
,
unconditional_guidance_scale
=
1.
,
unconditional_conditioning
=
None
,
dynamic_threshold
=
None
,
unconditional_guidance_scale
=
1.
,
unconditional_conditioning
=
None
,
dynamic_threshold
=
None
,
ucg_schedule
=
None
,
denoise_function
=
None
,
extra_args
=
None
,
to_zero
=
True
,
end_step
=
None
,
disable_pbar
=
False
):
ucg_schedule
=
None
,
denoise_function
=
None
,
extra_args
=
None
,
to_zero
=
True
,
end_step
=
None
,
disable_pbar
=
False
):
device
=
self
.
model
.
betas
.
device
device
=
self
.
model
.
alphas_cumprod
.
device
b
=
shape
[
0
]
b
=
shape
[
0
]
if
x_T
is
None
:
if
x_T
is
None
:
img
=
torch
.
randn
(
shape
,
device
=
device
)
img
=
torch
.
randn
(
shape
,
device
=
device
)
...
...
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