Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
diffusers
Commits
9727cda6
Unverified
Commit
9727cda6
authored
Sep 19, 2022
by
Anton Lozhkov
Committed by
GitHub
Sep 19, 2022
Browse files
[Tests] Mark the ncsnpp model tests as slow (#575)
* [Tests] Mark the ncsnpp model tests as slow * style
parent
0a2c42f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tests/test_models_unet.py
tests/test_models_unet.py
+3
-1
No files found.
tests/test_models_unet.py
View file @
9727cda6
...
...
@@ -19,7 +19,7 @@ import unittest
import
torch
from
diffusers
import
UNet2DModel
from
diffusers.testing_utils
import
floats_tensor
,
torch_device
from
diffusers.testing_utils
import
floats_tensor
,
slow
,
torch_device
from
.test_modeling_common
import
ModelTesterMixin
...
...
@@ -231,6 +231,7 @@ class NCSNppModelTests(ModelTesterMixin, unittest.TestCase):
inputs_dict
=
self
.
dummy_input
return
init_dict
,
inputs_dict
@
slow
def
test_from_pretrained_hub
(
self
):
model
,
loading_info
=
UNet2DModel
.
from_pretrained
(
"google/ncsnpp-celebahq-256"
,
output_loading_info
=
True
)
self
.
assertIsNotNone
(
model
)
...
...
@@ -244,6 +245,7 @@ class NCSNppModelTests(ModelTesterMixin, unittest.TestCase):
assert
image
is
not
None
,
"Make sure output is not None"
@
slow
def
test_output_pretrained_ve_mid
(
self
):
model
=
UNet2DModel
.
from_pretrained
(
"google/ncsnpp-celebahq-256"
)
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