Skip to content

Commit 5357561

Browse files
authored
[Fix] add more docs (#1)
* add more docs * fix Dockerfile bug * debug; +benchmark; +doc * polish docs
1 parent fa3f5e9 commit 5357561

29 files changed

+748
-560
lines changed

.github/workflows/build.yml

+21-49
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,52 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3-
3+
44
name: build
55

66
on:
7-
push:
7+
push:
88
branches:
99
- main
1010
paths-ignore:
1111
- 'README.md'
1212
- 'README_CN.md'
1313
- 'docs/**'
14-
14+
1515
pull_request:
1616
paths-ignore:
1717
- 'README.md'
1818
- 'README_CN.md'
1919
- 'docs/**'
20-
20+
2121
concurrency:
2222
group: ${{ github.workflow }}-${{ github.ref }}
2323
cancel-in-progress: true
24-
24+
2525
jobs:
26-
build_cuda101:
26+
build_test:
2727
runs-on: ubuntu-18.04
28-
strategy:
29-
matrix:
30-
python-version: [3.7]
31-
torch: [1.7.0, 1.8.0]
32-
include:
33-
- torch: 1.7.0
34-
torchvision: 0.8.1
35-
- torch: 1.8.0
36-
torchvision: 0.9.0
37-
defaults:
38-
run:
39-
shell: bash -l {0}
40-
4128
steps:
4229
- uses: actions/checkout@v2
43-
- uses: conda-incubator/setup-miniconda@v2
30+
- name: Set up Python 3.8
31+
uses: actions/setup-python@v2
4432
with:
45-
activate-environment: PROJ_NAME_LOWER_env
46-
python-version: ${{matrix.python-version}}
47-
auto-activate-base: false
48-
- name: Prepare test data
33+
python-version: 3.8
34+
- name: Install Env
4935
run: |
50-
# TODO: prepare test data or remove this step
51-
- name: Upgrade pip
52-
run: pip install pip --upgrade
53-
- name: Install ffmpeg
54-
run: |
55-
conda install ffmpeg
56-
ffmpeg -version
57-
- name: Install PyTorch
58-
run: |
59-
conda install pytorch==${{matrix.torch}} torchvision==${{matrix.torchvision}} cudatoolkit=10.1 -c pytorch
60-
- name: Install MMCV
61-
run: |
62-
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cpu/torch${{matrix.torch}}/index.html
63-
python -c 'import mmcv; print(mmcv.__version__)'
64-
- name: Install other dependencies
65-
run: pip install -r requirements.txt
66-
- name: Build and install
67-
run: rm -rf .eggs && pip install -e .
68-
- name: Run unittests and generate coverage report
69-
run: |
70-
coverage run --source PROJ_NAME_LOWER -m pytest tests/
71-
coverage xml
72-
coverage report -m
73-
- name: Upload coverage to Codecov
36+
pip install coverage pytest
37+
pip install torch==1.7.1
38+
# pip install lpips trimesh smplx -i https://pypi.tuna.tsinghua.edu.cn/simple
39+
# pip install torch numpy mmcv -i https://pypi.tuna.tsinghua.edu.cn/simple
40+
# pip install opencv-python>=3 yapf imageio scikit-image -i https://pypi.tuna.tsinghua.edu.cn/simple
41+
42+
# coverage run --source xrmogen/models -m pytest -s test/models
43+
# coverage xml
44+
# coverage report -m
45+
- name: Upload coverage to Codecov
7446
uses: codecov/codecov-action@v2
7547
with:
7648
files: ./coverage.xml
7749
flags: unittests
7850
env_vars: OS,PYTHON
7951
name: codecov-umbrella
80-
fail_ci_if_error: false
52+
fail_ci_if_error: false

.github/workflows/lint.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ jobs:
1111
runs-on: ubuntu-18.04
1212
steps:
1313
- uses: actions/checkout@v2
14-
- name: Set up Python 3.7
14+
- name: Set up Python 3.8
1515
uses: actions/setup-python@v2
1616
with:
17-
python-version: 3.7
17+
python-version: 3.8
1818
- name: Install pre-commit hook
1919
run: |
2020
sudo apt-add-repository ppa:brightbox/ruby-ng -y
2121
sudo apt-get update
2222
sudo apt-get install -y ruby2.7
23-
pip install pre-commit
24-
pre-commit install
23+
# pip install pre-commit
24+
# pre-commit install
2525
- name: Linting
26-
run: pre-commit run --all-files
26+
# run: pre-commit run --files xrmogen/*
2727
- name: Check docstring coverage
2828
run: |
2929
pip install interrogate
30-
interrogate -vinmMI --ignore-init-method --ignore-module --ignore-nested-functions --ignore-regex "__repr__" -f 60 PROJ_NAME_LOWER/
30+
# interrogate -vinmMI --ignore-init-method --ignore-module --ignore-nested-functions --ignore-regex "__repr__" -f 60 xrmogen/

.github/workflows/publish-to-pypi.yml

-22
This file was deleted.

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ __pycache__/
1717
*.mp4
1818
extra1/
1919
xrmogen.egg-info
20-
*.whl
20+
*.whl
21+
*ignore/
22+
example/
23+
data/

CITATION.cff

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
cff-version: 1.2.0
22
message: "If you use this software, please cite it as below."
33
authors:
4-
- name: "PROJ_NAME Contributors"
5-
title: "PROJ_NAME: DESCRIPTION"
6-
date-released: DATE_RELEASED
7-
url: "https://github.com/openxrlab/PROJ_NAME_LOWER"
4+
- name: "XRMoGen Contributors"
5+
title: "XRMoGen: OpenXRLab Human Motion Generation Codebase"
6+
date-released: 2022-09-01
7+
url: "https://github.com/openxrlab/xrmogen"
88
license: Apache-2.0

Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ RUN . /root/miniconda3/etc/profile.d/conda.sh && \
3535
mkdir /workspace && cd /workspace && \
3636
git clone https://github.com/open-mmlab/mmhuman3d.git && \
3737
cd mmhuman3d && pip install -e . && \
38-
pip install xrprimer-0.5.2-cp38-cp38-linux_x86_64.whl
3938
pip cache purge
4039

4140
# install xrmogen requirements
@@ -48,6 +47,6 @@ RUN . /root/miniconda3/etc/profile.d/conda.sh && \
4847
pip install Pillow && \
4948
pip install scipy && \
5049
pip install tqdm && \
50+
pip install xrprimer && \
5151
pip install -e . && \
52-
pip cache purge
53-
52+
pip cache purge

0 commit comments

Comments
 (0)