forked from huggingface/diffusers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* from audioldm * fix vae * move to new pipeline * copied from audioldm * remove redundant control flow * iterate * fix docstring * finish pipeline * tests: from audioldm2 * iterate * finish fast tests * finish slow integration tests * add docs * remove dtype test * update toctree * "copied from" in conversion (where possible) * Update docs/source/en/api/pipelines/musicldm.md Co-authored-by: Patrick von Platen <[email protected]> * fix docstring * make nightly * style * fix dtype test --------- Co-authored-by: Patrick von Platen <[email protected]>
- Loading branch information
1 parent
9b0d751
commit e3e3083
Showing
5 changed files
with
641 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from ...utils import ( | ||
OptionalDependencyNotAvailable, | ||
is_torch_available, | ||
is_transformers_available, | ||
is_transformers_version, | ||
) | ||
|
||
|
||
try: | ||
if not (is_transformers_available() and is_torch_available() and is_transformers_version(">=", "4.27.0")): | ||
raise OptionalDependencyNotAvailable() | ||
except OptionalDependencyNotAvailable: | ||
from ...utils.dummy_torch_and_transformers_objects import ( | ||
MusicLDMPipeline, | ||
) | ||
else: | ||
from .pipeline_musicldm import MusicLDMPipeline |
Oops, something went wrong.