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
OpenDAS
vision
Commits
9b233d41
"git@developer.sourcefind.cn:OpenDAS/fairscale.git" did not exist on "045a9743a9def9001c3f657bd70f12a36a64227e"
Unverified
Commit
9b233d41
authored
Feb 10, 2023
by
Nicolas Hug
Committed by
GitHub
Feb 10, 2023
Browse files
Skip model test for vit_h_14 (#7218)
parent
7c9878a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
test/test_models.py
test/test_models.py
+4
-0
No files found.
test/test_models.py
View file @
9b233d41
...
@@ -682,6 +682,10 @@ def test_classification_model(model_fn, dev):
...
@@ -682,6 +682,10 @@ def test_classification_model(model_fn, dev):
model_name
=
model_fn
.
__name__
model_name
=
model_fn
.
__name__
if
SKIP_BIG_MODEL
and
is_skippable
(
model_name
,
dev
):
if
SKIP_BIG_MODEL
and
is_skippable
(
model_name
,
dev
):
pytest
.
skip
(
"Skipped to reduce memory usage. Set env var SKIP_BIG_MODEL=0 to enable test for this model"
)
pytest
.
skip
(
"Skipped to reduce memory usage. Set env var SKIP_BIG_MODEL=0 to enable test for this model"
)
if
model_name
==
"vit_h_14"
and
dev
==
"cuda"
:
# TODO: investigate why this fail on CI. It doesn't fail on AWS cluster with CUDA 11.6
# (can't test with later versions ATM)
pytest
.
xfail
(
"https://github.com/pytorch/vision/issues/7143"
)
kwargs
=
{
**
defaults
,
**
_model_params
.
get
(
model_name
,
{})}
kwargs
=
{
**
defaults
,
**
_model_params
.
get
(
model_name
,
{})}
num_classes
=
kwargs
.
get
(
"num_classes"
)
num_classes
=
kwargs
.
get
(
"num_classes"
)
input_shape
=
kwargs
.
pop
(
"input_shape"
)
input_shape
=
kwargs
.
pop
(
"input_shape"
)
...
...
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