Skip to content

Commit

Permalink
add setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxuan1206 committed May 10, 2024
1 parent 58c76bc commit b7fc99f
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 0 deletions.
5 changes: 5 additions & 0 deletions third-party/kaolin/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/.git
ci
.gitlab-ci.yml
**/.gitignore
**/.gitmodules
53 changes: 53 additions & 0 deletions third-party/kaolin/.drone.yml
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/
13 changes: 13 additions & 0 deletions third-party/kaolin/.flake8
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/
14 changes: 14 additions & 0 deletions third-party/kaolin/.readthedocs.yml
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
25 changes: 25 additions & 0 deletions third-party/setup.sh
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

0 comments on commit b7fc99f

Please sign in to comment.