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
2f023d7b
Unverified
Commit
2f023d7b
authored
Dec 16, 2024
by
hlky
Committed by
GitHub
Dec 16, 2024
Browse files
Fix RePaint Scheduler (#10185)
Fix repaint scheduler
parent
e9a3911b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/schedulers/scheduling_repaint.py
src/diffusers/schedulers/scheduling_repaint.py
+1
-1
No files found.
src/diffusers/schedulers/scheduling_repaint.py
View file @
2f023d7b
...
...
@@ -319,7 +319,7 @@ class RePaintScheduler(SchedulerMixin, ConfigMixin):
prev_unknown_part
=
alpha_prod_t_prev
**
0.5
*
pred_original_sample
+
pred_sample_direction
+
variance
# 8. Algorithm 1 Line 5 https://arxiv.org/pdf/2201.09865.pdf
prev_known_part
=
(
alpha_prod_t_prev
**
0.5
)
*
original_image
+
(
(
1
-
alpha_prod_t_prev
)
**
0.5
)
*
noise
prev_known_part
=
(
alpha_prod_t_prev
**
0.5
)
*
original_image
+
(
1
-
alpha_prod_t_prev
)
*
noise
# 9. Algorithm 1 Line 8 https://arxiv.org/pdf/2201.09865.pdf
pred_prev_sample
=
mask
*
prev_known_part
+
(
1.0
-
mask
)
*
prev_unknown_part
...
...
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