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
renzhc
diffusers_dcu
Commits
e47c97a4
Commit
e47c97a4
authored
Jun 28, 2022
by
Patrick von Platen
Browse files
no inference moed doesn't always work
parent
740326d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
README.md
README.md
+1
-1
No files found.
README.md
View file @
e47c97a4
...
@@ -161,7 +161,7 @@ for t in tqdm.tqdm(reversed(range(num_inference_steps)), total=num_inference_ste
...
@@ -161,7 +161,7 @@ for t in tqdm.tqdm(reversed(range(num_inference_steps)), total=num_inference_ste
# 1. predict noise residual
# 1. predict noise residual
orig_t
=
len
(
noise_scheduler
)
//
num_inference_steps
*
t
orig_t
=
len
(
noise_scheduler
)
//
num_inference_steps
*
t
with
torch
.
inference_mode
():
with
torch
.
no_grad
():
residual
=
unet
(
image
,
orig_t
)
residual
=
unet
(
image
,
orig_t
)
# 2. predict previous mean of image x_t-1
# 2. predict previous mean of image x_t-1
...
...
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