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
7139f0e8
Unverified
Commit
7139f0e8
authored
Apr 04, 2023
by
Sayak Paul
Committed by
GitHub
Apr 04, 2023
Browse files
fix: norm group test for UNet3D. (#2959)
parent
8c530fc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
tests/models/test_models_unet_3d_condition.py
tests/models/test_models_unet_3d_condition.py
+1
-2
No files found.
tests/models/test_models_unet_3d_condition.py
View file @
7139f0e8
...
...
@@ -119,12 +119,11 @@ class UNet3DConditionModelTests(ModelTesterMixin, unittest.TestCase):
==
"XFormersAttnProcessor"
),
"xformers is not enabled"
# Overriding
becau
se `
block_out_channel
s` needs to be different for this model.
# Overriding
to
se
t
`
norm_num_group
s` needs to be different for this model.
def
test_forward_with_norm_groups
(
self
):
init_dict
,
inputs_dict
=
self
.
prepare_init_args_and_inputs_for_common
()
init_dict
[
"norm_num_groups"
]
=
32
init_dict
[
"block_out_channels"
]
=
(
32
,
64
,
64
,
64
)
model
=
self
.
model_class
(
**
init_dict
)
model
.
to
(
torch_device
)
...
...
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