Skip to content

Commit

Permalink
init co.
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
innerlee committed Jul 9, 2020
0 parents commit 7672061
Show file tree
Hide file tree
Showing 108 changed files with 13,194 additions and 0 deletions.
120 changes: 120 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
**/*.pyc

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

# custom
mmpose/version.py
/data
.vscode
.idea
*.pkl
*.pkl.json
*.log.json
work_dirs/

# Pytorch
*.pth

*.DS_Store
56 changes: 56 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
image: registry.sensetime.com/eig-research/pytorch:1.3.1-cuda10.1-cudnn7-devel

stages:
- linting
- test
- deploy

before_script:
- echo $PATH
- gcc --version
- python --version
- pip --version
- nvcc --version
- nvidia-smi
- python -c "import torch; print(torch.__version__)"

linting:
stage: linting
script:
- pip install flake8 yapf isort==4.3.21
- flake8 .
- isort -rc --check-only --diff mmpose/ tools/ tests/
- yapf -r -d mmpose/ tools/ tests/ configs/

test:
stage: test
script:
- echo "Start building..."
- pip install pillow==6.2.2
- pip install scipy
- pip install json_tricks
- pip install git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI
- pip install -e .
- python -c "import mmpose; print(mmpose.__version__)"
- echo "Start testing..."
- pip install pytest coverage
- coverage run --branch --source mmpose -m pytest tests/
- coverage report -m

pages:
stage: deploy
script:
- pip install mmcv
- pip install sphinx sphinx_rtd_theme recommonmark sphinx-markdown-tables matplotlib pillow==6.2.2 scipy json_tricks pycocotools
- pip install -e .
- cd docs
- make html
- cd ..
- mkdir -p ./public
- cp -r docs/_build/html/* ./public
- ls ./public
artifacts:
paths:
- public
only:
- master
35 changes: 35 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
repos:
- repo: https://gitlab.com/pycqa/flake8.git
rev: 3.8.3
hooks:
- id: flake8
- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config
- repo: https://github.com/timothycrosley/isort
rev: 4.3.21
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.30.0
hooks:
- id: yapf
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: double-quote-string-fixer
- id: check-merge-conflict
- id: fix-encoding-pragma
args: ["--remove"]
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/myint/docformatter
rev: v1.3.1
hooks:
- id: docformatter
args: ["--in-place", "--wrap-descriptions", "79"]
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<div align="center">
<img src="resources/mmpose-logo.png" width="400"/>
</div>

## Introduction

<div align="left">
<a href="http://open-mmlab.pages.gitlab.sz.sensetime.com/mmpose/">
<img src="https://img.shields.io/badge/docs-latest-blue"/>
</a>
</div>

MMPose is an open-source toolbox for pose estimation based on PyTorch.
It is a part of the [OpenMMLab project](https://github.com/open-mmlab).

The master branch works with **PyTorch 1.3+**.

## Benchmark and Model Zoo

Benchmark with other open source projects are available on [benchmark.md](docs/benchmark.md).

Results and models are available in the **README.md** of each method's config directory.

## Installation

Please refer to [install.md](docs/install.md) for installation.

## Get Started

Please see [getting_started.md](docs/getting_started.md) for the basic usage of MMPose.

## License

This project is released under the [Apache 2.0 license](LICENSE).

## Contributing

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.

## Acknowledgement

MMPose is an open source project that is contributed by researchers and engineers from various colleges and companies.
We appreciate all the contributors who implement their methods or add new features, as well as users who give valuable feedbacks.
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.
Loading

0 comments on commit 7672061

Please sign in to comment.