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
30f2e9bd
Unverified
Commit
30f2e9bd
authored
Dec 03, 2024
by
hlky
Committed by
GitHub
Dec 02, 2024
Browse files
Convert `sigmas` to `np.array` in FlowMatch set_timesteps (#10088)
parent
2312b27f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py
...fusers/schedulers/scheduling_flow_match_euler_discrete.py
+1
-0
No files found.
src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py
View file @
30f2e9bd
...
...
@@ -207,6 +207,7 @@ class FlowMatchEulerDiscreteScheduler(SchedulerMixin, ConfigMixin):
sigmas
=
timesteps
/
self
.
config
.
num_train_timesteps
else
:
sigmas
=
np
.
array
(
sigmas
).
astype
(
np
.
float32
)
num_inference_steps
=
len
(
sigmas
)
self
.
num_inference_steps
=
num_inference_steps
...
...
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