-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58c76bc
commit b7fc99f
Showing
5 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
**/.git | ||
ci | ||
.gitlab-ci.yml | ||
**/.gitignore | ||
**/.gitmodules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
kind: pipeline | ||
type: docker | ||
name: default | ||
|
||
environment: | ||
CUDA_VERSION: "10.1" | ||
PYTORCH_VERSION: "1.6" | ||
CUDNN_VERSION: "7" | ||
TORCH_CUDA_ARCH_LIST: "5.2 6.0 6.1 7.0 7.5+PTX" | ||
KAOLIN_INSTALL_EXPERIMENTAL: "1" | ||
|
||
steps: | ||
- name: submodules | ||
image: nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04 | ||
commands: | ||
- apt-get update && apt-get install -y git | ||
- git submodule update --init --recursive | ||
|
||
- name: flake8 | ||
image: nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04 | ||
commands: | ||
- > | ||
apt-get update && apt-get install -y --no-install-recommends | ||
python3-pip | ||
- pip3 install --upgrade pip>=19.3 | ||
- pip install -r tools/ci_requirements.txt | ||
- flake8 --config=.flake8 . | ||
|
||
- name: pytest | ||
image: nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04 | ||
commands: | ||
- > | ||
apt-get update && apt-get install -y --no-install-recommends | ||
build-essential | ||
curl | ||
&& apt-get clean | ||
&& rm -rf /var/lib/apt/lists/* | ||
- > | ||
curl -o ~/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && | ||
sh ~/miniconda.sh -b -p /opt/conda && | ||
/opt/conda/bin/conda install -y python=3.7 && | ||
/opt/conda/bin/conda clean -ya | ||
- export PATH=/opt/conda/bin:$PATH | ||
- pip install --upgrade pip>=19.3 | ||
- conda install -y pytorch==1.6 cudatoolkit=10.1 -c pytorch | ||
- conda install -c conda-forge nodejs | ||
- > | ||
apt-get update && apt-get install -y --no-install-recommends | ||
libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb | ||
- npm install | ||
- python setup.py develop | ||
- pip install -r tools/ci_requirements.txt | ||
- pytest --cov=kaolin/ tests/python tests/integration && pytest --doctest-modules kaolin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[flake8] | ||
select = B,C,E,F,P,T4,W,B9 | ||
max-line-length = 120 | ||
# C408 ignored because we like the dict keyword argument syntax | ||
# E501 is not flexible enough, we're using B950 instead | ||
ignore = | ||
E203,E305,E402,E501,E721,E741,F403,F405,F821,F841,F999,W503,W504,C408,E302,W291,E303, | ||
# these ignores are from flake8-bugbear; please fix! | ||
B007,B008, | ||
# these ignores are from flake8-comprehensions; please fix! | ||
C400,C401,C402,C403,C404,C405,C407,C411 | ||
per-file-ignores = __init__.py: F401 | ||
exclude = .git, tests/, build/, _build/, .eggs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: 2 | ||
|
||
python: | ||
version: 3.7 | ||
system_packages: true | ||
install: | ||
- requirements: docs/readthedocs_requirements.txt | ||
- requirements: tools/doc_requirements.txt | ||
- method: setuptools | ||
path: '.' | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
fail_on_warning: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
cd kaolin | ||
python setup.py develop | ||
|
||
cd - | ||
cd kaolin-wisp | ||
python setup.py develop | ||
|
||
cd - | ||
git clone --recursive https://github.com/princeton-vl/lietorch.git | ||
cd lietorch | ||
python setup.py install | ||
|
||
cd - | ||
git clone https://github.com/fogleman/sdf.git | ||
cd sdf | ||
pip install -e . | ||
|
||
cd - | ||
git clone https://github.com/autonomousvision/kitti360Scripts.git | ||
cd kitti360Scripts | ||
CYTHONIZE_EVAL= python setup.py build_ext --inplace | ||
CYTHONIZE_EVAL= python setup.py install | ||
|