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
aed636f5
Unverified
Commit
aed636f5
authored
Oct 15, 2025
by
Sayak Paul
Committed by
GitHub
Oct 15, 2025
Browse files
[tests] fix clapconfig for text backbone in audioldm2 (#12490)
fix clapconfig for text backbone in audioldm2
parent
53a10518
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
tests/pipelines/audioldm2/test_audioldm2.py
tests/pipelines/audioldm2/test_audioldm2.py
+2
-4
No files found.
tests/pipelines/audioldm2/test_audioldm2.py
View file @
aed636f5
...
@@ -138,10 +138,8 @@ class AudioLDM2PipelineFastTests(PipelineTesterMixin, unittest.TestCase):
...
@@ -138,10 +138,8 @@ class AudioLDM2PipelineFastTests(PipelineTesterMixin, unittest.TestCase):
patch_stride
=
2
,
patch_stride
=
2
,
patch_embed_input_channels
=
4
,
patch_embed_input_channels
=
4
,
)
)
text_encoder_config
=
ClapConfig
.
from_text_audio_configs
(
text_encoder_config
=
ClapConfig
(
text_config
=
text_branch_config
,
text_config
=
text_branch_config
,
audio_config
=
audio_branch_config
,
projection_dim
=
16
audio_config
=
audio_branch_config
,
projection_dim
=
16
,
)
)
text_encoder
=
ClapModel
(
text_encoder_config
)
text_encoder
=
ClapModel
(
text_encoder_config
)
tokenizer
=
RobertaTokenizer
.
from_pretrained
(
"hf-internal-testing/tiny-random-roberta"
,
model_max_length
=
77
)
tokenizer
=
RobertaTokenizer
.
from_pretrained
(
"hf-internal-testing/tiny-random-roberta"
,
model_max_length
=
77
)
...
...
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