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
OpenDAS
diffusers
Commits
1875c35a
Commit
1875c35a
authored
Apr 07, 2023
by
William Berman
Committed by
Will Berman
Apr 09, 2023
Browse files
remove extra min arg @sayakpaul
parent
1dc856e5
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_ddpm.py
src/diffusers/schedulers/scheduling_ddpm.py
+1
-1
No files found.
src/diffusers/schedulers/scheduling_ddpm.py
View file @
1875c35a
...
@@ -224,7 +224,7 @@ class DDPMScheduler(SchedulerMixin, ConfigMixin):
...
@@ -224,7 +224,7 @@ class DDPMScheduler(SchedulerMixin, ConfigMixin):
variance
=
variance
variance
=
variance
# for rl-diffuser https://arxiv.org/abs/2205.09991
# for rl-diffuser https://arxiv.org/abs/2205.09991
elif
variance_type
==
"fixed_small_log"
:
elif
variance_type
==
"fixed_small_log"
:
variance
=
torch
.
log
(
variance
,
min
=
1e-20
)
variance
=
torch
.
log
(
variance
)
variance
=
torch
.
exp
(
0.5
*
variance
)
variance
=
torch
.
exp
(
0.5
*
variance
)
elif
variance_type
==
"fixed_large"
:
elif
variance_type
==
"fixed_large"
:
variance
=
current_beta_t
variance
=
current_beta_t
...
...
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