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
MMCV
Commits
c74b4889
"vscode:/vscode.git/clone" did not exist on "e344e3d4021421ec0d631d076daf17f8a4e82e69"
Unverified
Commit
c74b4889
authored
Apr 06, 2023
by
Zaida Zhou
Committed by
GitHub
Apr 06, 2023
Browse files
Remove two outdated files (#2740)
parent
4e768bf3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
91 deletions
+0
-91
.github/workflows/build_pat.yml
.github/workflows/build_pat.yml
+0
-35
Jenkinsfile
Jenkinsfile
+0
-56
No files found.
.github/workflows/build_pat.yml
deleted
100644 → 0
View file @
4e768bf3
name
:
build_pat
on
:
push
:
paths-ignore
:
-
'
README.md'
-
'
README_zh-CN.md'
-
'
docs/**'
-
'
examples/**'
-
'
.dev_scripts/**'
concurrency
:
group
:
${{ github.workflow }}-${{ github.ref }}
cancel-in-progress
:
true
env
:
MMCV_WITH_OPS
:
1
jobs
:
build_parrots
:
runs-on
:
ubuntu-22.04
container
:
image
:
ghcr.io/cokedong/parrots:pat0.21.0a0_cuda11
credentials
:
username
:
cokedong
password
:
${{ secrets.PARROTS_CI_TOKEN }}
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Install unittest dependencies
run
:
pip install -r requirements/test.txt
-
name
:
Build and install
run
:
|
source /usr/local/env/pat_latest
pip install -e . -v
Jenkinsfile
deleted
100644 → 0
View file @
4e768bf3
def
docker_images
=
[
"registry.cn-hangzhou.aliyuncs.com/sensetime/openmmlab:cuda10.1-cudnn7-devel-ubuntu18.04-py37-pt1.3"
,
"registry.cn-hangzhou.aliyuncs.com/sensetime/openmmlab:cuda10.2-cudnn7-devel-ubuntu18.04-py37-pt1.5"
]
def
torch_versions
=
[
"1.3.0"
,
"1.5.0"
]
def
torchvision_versions
=
[
"0.4.2"
,
"0.6.0"
]
def
get_stages
(
docker_image
,
folder
)
{
def
pip_mirror
=
"-i https://mirrors.aliyun.com/pypi/simple"
stages
=
{
docker
.
image
(
docker_image
).
inside
(
'-u root --gpus all --net host'
)
{
sh
"rm -rf ${env.WORKSPACE}-${folder} ${env.WORKSPACE}-${folder}@tmp"
sh
"cp -r ${env.WORKSPACE} ${env.WORKSPACE}-${folder}"
try
{
dir
(
"${env.WORKSPACE}-${folder}"
)
{
stage
(
"before_install"
)
{
sh
"apt-get update && apt-get install -y ninja-build"
}
stage
(
"dependencies"
)
{
// torch and torchvision are pre-installed in dockers
sh
"pip list | grep torch"
sh
"apt-get install -y ffmpeg libturbojpeg"
sh
"pip install pytest coverage lmdb PyTurboJPEG Cython ${pip_mirror}"
}
stage
(
"build"
)
{
sh
"MMCV_WITH_OPS=1 pip install -e . ${pip_mirror}"
}
stage
(
"test"
)
{
sh
"coverage run --branch --source=mmcv -m pytest tests/"
sh
"coverage xml"
sh
"coverage report -m"
}
}
}
finally
{
sh
"rm -rf ${env.WORKSPACE}-${folder} ${env.WORKSPACE}-${folder}@tmp"
}
}
}
return
stages
}
node
(
'master'
)
{
// fetch latest change from SCM (Source Control Management)
checkout
scm
def
stages
=
[:]
for
(
int
i
=
0
;
i
<
docker_images
.
size
();
i
++)
{
def
docker_image
=
docker_images
[
i
]
def
torch
=
torch_versions
[
i
]
def
torchvision
=
torchvision_versions
[
i
]
def
tag
=
docker_image
+
'_'
+
torch
+
'_'
+
torchvision
def
folder
=
"${i}"
stages
[
tag
]
=
get_stages
(
docker_image
,
folder
)
}
parallel
stages
}
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