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
9e6bdbab
Unverified
Commit
9e6bdbab
authored
May 04, 2021
by
Nicolas Hug
Committed by
GitHub
May 04, 2021
Browse files
Skip r2plus1d_18 test on linux GPU Circle CI machines (#3768)
parent
3e847dc0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
.circleci/config.yml
.circleci/config.yml
+1
-1
.circleci/config.yml.in
.circleci/config.yml.in
+1
-1
test/common_utils.py
test/common_utils.py
+1
-0
test/test_models.py
test/test_models.py
+5
-1
No files found.
.circleci/config.yml
View file @
9e6bdbab
...
@@ -648,7 +648,7 @@ jobs:
...
@@ -648,7 +648,7 @@ jobs:
command
:
docker run -t --gpus all -v $PWD:$PWD -w $PWD -e UPLOAD_CHANNEL -e CU_VERSION "${image_name}" .circleci/unittest/linux/scripts/install.sh
command
:
docker run -t --gpus all -v $PWD:$PWD -w $PWD -e UPLOAD_CHANNEL -e CU_VERSION "${image_name}" .circleci/unittest/linux/scripts/install.sh
-
run
:
-
run
:
name
:
Run tests
name
:
Run tests
command
:
docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh
command
:
docker run
-e CIRCLECI
-t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh
-
run
:
-
run
:
name
:
Post Process
name
:
Post Process
command
:
docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/post_process.sh
command
:
docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/post_process.sh
...
...
.circleci/config.yml.in
View file @
9e6bdbab
...
@@ -648,7 +648,7 @@ jobs:
...
@@ -648,7 +648,7 @@ jobs:
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD -e UPLOAD_CHANNEL -e CU_VERSION "${image_name}" .circleci/unittest/linux/scripts/install.sh
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD -e UPLOAD_CHANNEL -e CU_VERSION "${image_name}" .circleci/unittest/linux/scripts/install.sh
- run:
- run:
name: Run tests
name: Run tests
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh
command: docker run
-e CIRCLECI
-t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh
- run:
- run:
name: Post Process
name: Post Process
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/post_process.sh
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/post_process.sh
...
...
test/common_utils.py
View file @
9e6bdbab
...
@@ -23,6 +23,7 @@ from PIL import Image
...
@@ -23,6 +23,7 @@ from PIL import Image
IS_PY39
=
sys
.
version_info
.
major
==
3
and
sys
.
version_info
.
minor
==
9
IS_PY39
=
sys
.
version_info
.
major
==
3
and
sys
.
version_info
.
minor
==
9
PY39_SEGFAULT_SKIP_MSG
=
"Segmentation fault with Python 3.9, see https://github.com/pytorch/vision/issues/3367"
PY39_SEGFAULT_SKIP_MSG
=
"Segmentation fault with Python 3.9, see https://github.com/pytorch/vision/issues/3367"
PY39_SKIP
=
unittest
.
skipIf
(
IS_PY39
,
PY39_SEGFAULT_SKIP_MSG
)
PY39_SKIP
=
unittest
.
skipIf
(
IS_PY39
,
PY39_SEGFAULT_SKIP_MSG
)
IN_CIRCLE_CI
=
os
.
getenv
(
"CIRCLECI"
,
False
)
==
'true'
@
contextlib
.
contextmanager
@
contextlib
.
contextmanager
...
...
test/test_models.py
View file @
9e6bdbab
from
common_utils
import
TestCase
,
map_nested_tensor_object
,
freeze_rng_state
,
set_rng_seed
import
sys
from
common_utils
import
TestCase
,
map_nested_tensor_object
,
freeze_rng_state
,
set_rng_seed
,
IN_CIRCLE_CI
from
collections
import
OrderedDict
from
collections
import
OrderedDict
from
itertools
import
product
from
itertools
import
product
import
functools
import
functools
...
@@ -458,6 +459,9 @@ def test_detection_model_validation(model_name):
...
@@ -458,6 +459,9 @@ def test_detection_model_validation(model_name):
@
pytest
.
mark
.
parametrize
(
'model_name'
,
get_available_video_models
())
@
pytest
.
mark
.
parametrize
(
'model_name'
,
get_available_video_models
())
@
pytest
.
mark
.
parametrize
(
'dev'
,
_devs
)
@
pytest
.
mark
.
parametrize
(
'dev'
,
_devs
)
def
test_video_model
(
model_name
,
dev
):
def
test_video_model
(
model_name
,
dev
):
if
IN_CIRCLE_CI
and
'cuda'
in
dev
.
type
and
model_name
==
'r2plus1d_18'
and
sys
.
platform
==
'linux'
:
# FIXME: Failure should fixed and test re-actived. See https://github.com/pytorch/vision/issues/3702
pytest
.
skip
(
'r2plus1d_18 fails on CircleCI linux GPU machines.'
)
ModelTester
().
_test_video_model
(
model_name
,
dev
)
ModelTester
().
_test_video_model
(
model_name
,
dev
)
...
...
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