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
d36103a0
Unverified
Commit
d36103a0
authored
Mar 31, 2023
by
Patrick von Platen
Committed by
GitHub
Mar 31, 2023
Browse files
[Tests] Speed up test (#2919)
speed up test
parent
b3c437e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
tests/models/test_models_unet_3d_condition.py
tests/models/test_models_unet_3d_condition.py
+4
-6
No files found.
tests/models/test_models_unet_3d_condition.py
View file @
d36103a0
...
...
@@ -88,19 +88,17 @@ class UNet3DConditionModelTests(ModelTesterMixin, unittest.TestCase):
def
prepare_init_args_and_inputs_for_common
(
self
):
init_dict
=
{
"block_out_channels"
:
(
32
,
64
,
64
,
64
),
"block_out_channels"
:
(
32
,
64
),
"down_block_types"
:
(
"CrossAttnDownBlock3D"
,
"CrossAttnDownBlock3D"
,
"CrossAttnDownBlock3D"
,
"DownBlock3D"
,
),
"up_block_types"
:
(
"UpBlock3D"
,
"CrossAttnUpBlock3D"
,
"CrossAttnUpBlock3D"
,
"CrossAttnUpBlock3D"
),
"up_block_types"
:
(
"UpBlock3D"
,
"CrossAttnUpBlock3D"
),
"cross_attention_dim"
:
32
,
"attention_head_dim"
:
4
,
"attention_head_dim"
:
8
,
"out_channels"
:
4
,
"in_channels"
:
4
,
"layers_per_block"
:
2
,
"layers_per_block"
:
1
,
"sample_size"
:
32
,
}
inputs_dict
=
self
.
dummy_input
...
...
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