Skip to content

Commit 7672061

Browse files
committed
init co.
This commit contains work of the following contributors (order is not important): Can Wang, Sheng Jin, Haodong Duan, Xuanyi Li, Zhizhong Li, Wentao Liu, Kai Chen, Chen Qian, Dahua Lin Signed-off-by: lizz <[email protected]>
0 parents  commit 7672061

File tree

108 files changed

+13194
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+13194
-0
lines changed

.gitignore

+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
**/*.pyc
6+
7+
# C extensions
8+
*.so
9+
10+
# Distribution / packaging
11+
.Python
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.coverage
43+
.coverage.*
44+
.cache
45+
nosetests.xml
46+
coverage.xml
47+
*.cover
48+
.hypothesis/
49+
.pytest_cache/
50+
51+
# Translations
52+
*.mo
53+
*.pot
54+
55+
# Django stuff:
56+
*.log
57+
local_settings.py
58+
db.sqlite3
59+
60+
# Flask stuff:
61+
instance/
62+
.webassets-cache
63+
64+
# Scrapy stuff:
65+
.scrapy
66+
67+
# Sphinx documentation
68+
docs/_build/
69+
70+
# PyBuilder
71+
target/
72+
73+
# Jupyter Notebook
74+
.ipynb_checkpoints
75+
76+
# pyenv
77+
.python-version
78+
79+
# celery beat schedule file
80+
celerybeat-schedule
81+
82+
# SageMath parsed files
83+
*.sage.py
84+
85+
# Environments
86+
.env
87+
.venv
88+
env/
89+
venv/
90+
ENV/
91+
env.bak/
92+
venv.bak/
93+
94+
# Spyder project settings
95+
.spyderproject
96+
.spyproject
97+
98+
# Rope project settings
99+
.ropeproject
100+
101+
# mkdocs documentation
102+
/site
103+
104+
# mypy
105+
.mypy_cache/
106+
107+
# custom
108+
mmpose/version.py
109+
/data
110+
.vscode
111+
.idea
112+
*.pkl
113+
*.pkl.json
114+
*.log.json
115+
work_dirs/
116+
117+
# Pytorch
118+
*.pth
119+
120+
*.DS_Store

.gitlab-ci.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
image: registry.sensetime.com/eig-research/pytorch:1.3.1-cuda10.1-cudnn7-devel
2+
3+
stages:
4+
- linting
5+
- test
6+
- deploy
7+
8+
before_script:
9+
- echo $PATH
10+
- gcc --version
11+
- python --version
12+
- pip --version
13+
- nvcc --version
14+
- nvidia-smi
15+
- python -c "import torch; print(torch.__version__)"
16+
17+
linting:
18+
stage: linting
19+
script:
20+
- pip install flake8 yapf isort==4.3.21
21+
- flake8 .
22+
- isort -rc --check-only --diff mmpose/ tools/ tests/
23+
- yapf -r -d mmpose/ tools/ tests/ configs/
24+
25+
test:
26+
stage: test
27+
script:
28+
- echo "Start building..."
29+
- pip install pillow==6.2.2
30+
- pip install scipy
31+
- pip install json_tricks
32+
- pip install git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI
33+
- pip install -e .
34+
- python -c "import mmpose; print(mmpose.__version__)"
35+
- echo "Start testing..."
36+
- pip install pytest coverage
37+
- coverage run --branch --source mmpose -m pytest tests/
38+
- coverage report -m
39+
40+
pages:
41+
stage: deploy
42+
script:
43+
- pip install mmcv
44+
- pip install sphinx sphinx_rtd_theme recommonmark sphinx-markdown-tables matplotlib pillow==6.2.2 scipy json_tricks pycocotools
45+
- pip install -e .
46+
- cd docs
47+
- make html
48+
- cd ..
49+
- mkdir -p ./public
50+
- cp -r docs/_build/html/* ./public
51+
- ls ./public
52+
artifacts:
53+
paths:
54+
- public
55+
only:
56+
- master

.pre-commit-config.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
repos:
2+
- repo: https://gitlab.com/pycqa/flake8.git
3+
rev: 3.8.3
4+
hooks:
5+
- id: flake8
6+
- repo: https://github.com/asottile/seed-isort-config
7+
rev: v2.2.0
8+
hooks:
9+
- id: seed-isort-config
10+
- repo: https://github.com/timothycrosley/isort
11+
rev: 4.3.21
12+
hooks:
13+
- id: isort
14+
- repo: https://github.com/pre-commit/mirrors-yapf
15+
rev: v0.30.0
16+
hooks:
17+
- id: yapf
18+
- repo: https://github.com/pre-commit/pre-commit-hooks
19+
rev: v3.1.0
20+
hooks:
21+
- id: trailing-whitespace
22+
- id: check-yaml
23+
- id: end-of-file-fixer
24+
- id: requirements-txt-fixer
25+
- id: double-quote-string-fixer
26+
- id: check-merge-conflict
27+
- id: fix-encoding-pragma
28+
args: ["--remove"]
29+
- id: mixed-line-ending
30+
args: ["--fix=lf"]
31+
- repo: https://github.com/myint/docformatter
32+
rev: v1.3.1
33+
hooks:
34+
- id: docformatter
35+
args: ["--in-place", "--wrap-descriptions", "79"]

README.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<div align="center">
2+
<img src="resources/mmpose-logo.png" width="400"/>
3+
</div>
4+
5+
## Introduction
6+
7+
<div align="left">
8+
<a href="http://open-mmlab.pages.gitlab.sz.sensetime.com/mmpose/">
9+
<img src="https://img.shields.io/badge/docs-latest-blue"/>
10+
</a>
11+
</div>
12+
13+
MMPose is an open-source toolbox for pose estimation based on PyTorch.
14+
It is a part of the [OpenMMLab project](https://github.com/open-mmlab).
15+
16+
The master branch works with **PyTorch 1.3+**.
17+
18+
## Benchmark and Model Zoo
19+
20+
Benchmark with other open source projects are available on [benchmark.md](docs/benchmark.md).
21+
22+
Results and models are available in the **README.md** of each method's config directory.
23+
24+
## Installation
25+
26+
Please refer to [install.md](docs/install.md) for installation.
27+
28+
## Get Started
29+
30+
Please see [getting_started.md](docs/getting_started.md) for the basic usage of MMPose.
31+
32+
## License
33+
34+
This project is released under the [Apache 2.0 license](LICENSE).
35+
36+
## Contributing
37+
38+
We appreciate all contributions to improve MMPose. Please refer to [CONTRIBUTING.md in MMDetection](https://github.com/open-mmlab/mmdetection/blob/master/.github/CONTRIBUTING.md) for the contributing guideline.
39+
40+
## Acknowledgement
41+
42+
MMPose is an open source project that is contributed by researchers and engineers from various colleges and companies.
43+
We appreciate all the contributors who implement their methods or add new features, as well as users who give valuable feedbacks.
44+
We wish that the toolbox and benchmark could serve the growing research community by providing a flexible toolkit to reimplement existing methods and develop their own new models.

0 commit comments

Comments
 (0)