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
90eac14f
"git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "f02caa53307c4c157c210c9fbe3fffb97ac2e635"
Unverified
Commit
90eac14f
authored
Apr 21, 2023
by
Sanchit Gandhi
Committed by
GitHub
Apr 21, 2023
Browse files
[AudioLDM] Fix dtype of returned waveform (#3189)
parent
11f527ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/audioldm/pipeline_audioldm.py
src/diffusers/pipelines/audioldm/pipeline_audioldm.py
+1
-1
No files found.
src/diffusers/pipelines/audioldm/pipeline_audioldm.py
View file @
90eac14f
...
@@ -293,7 +293,7 @@ class AudioLDMPipeline(DiffusionPipeline):
...
@@ -293,7 +293,7 @@ class AudioLDMPipeline(DiffusionPipeline):
waveform
=
self
.
vocoder
(
mel_spectrogram
)
waveform
=
self
.
vocoder
(
mel_spectrogram
)
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloat16
# we always cast to float32 as this does not cause significant overhead and is compatible with bfloat16
waveform
=
waveform
.
cpu
()
waveform
=
waveform
.
cpu
()
.
float
()
return
waveform
return
waveform
# Copied from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.StableDiffusionPipeline.prepare_extra_step_kwargs
# Copied from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.StableDiffusionPipeline.prepare_extra_step_kwargs
...
...
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