Skip to content

Commit cfec074

Browse files
committed
init commit
1 parent 8b5bd4b commit cfec074

File tree

110 files changed

+4914
-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.

110 files changed

+4914
-0
lines changed

.gitignore

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
.pytest_cache/
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Django stuff:
55+
*.log
56+
local_settings.py
57+
db.sqlite3
58+
59+
# Flask stuff:
60+
instance/
61+
.webassets-cache
62+
63+
# Scrapy stuff:
64+
.scrapy
65+
66+
# Sphinx documentation
67+
docs/en/_build/
68+
docs/zh_cn/_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+
data/
107+
data
108+
.vscode
109+
.idea
110+
.DS_Store
111+
112+
# custom
113+
*.pkl
114+
*.pkl.json
115+
*.log.json
116+
docs/modelzoo_statistics.md
117+
mmyolo/.mim
118+
work_dirs
119+
yolov5-6.1/
120+
121+
# Pytorch
122+
*.pth
123+
*.pt
124+
*.py~
125+
*.sh~

.pre-commit-config.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
exclude: ^tests/data/
2+
repos:
3+
- repo: https://github.com/PyCQA/flake8
4+
rev: 3.8.3
5+
hooks:
6+
- id: flake8
7+
- repo: https://github.com/PyCQA/isort
8+
rev: 5.10.1
9+
hooks:
10+
- id: isort
11+
- repo: https://github.com/pre-commit/mirrors-yapf
12+
rev: v0.30.0
13+
hooks:
14+
- id: yapf
15+
- repo: https://github.com/pre-commit/pre-commit-hooks
16+
rev: v3.1.0
17+
hooks:
18+
- id: trailing-whitespace
19+
- id: check-yaml
20+
- id: end-of-file-fixer
21+
- id: requirements-txt-fixer
22+
- id: double-quote-string-fixer
23+
- id: check-merge-conflict
24+
- id: fix-encoding-pragma
25+
args: ["--remove"]
26+
- id: mixed-line-ending
27+
args: ["--fix=lf"]
28+
- repo: https://github.com/executablebooks/mdformat
29+
rev: 0.7.9
30+
hooks:
31+
- id: mdformat
32+
args: ["--number"]
33+
additional_dependencies:
34+
- mdformat-openmmlab
35+
- mdformat_frontmatter
36+
- linkify-it-py
37+
- repo: https://github.com/codespell-project/codespell
38+
rev: v2.1.0
39+
hooks:
40+
- id: codespell
41+
- repo: https://github.com/myint/docformatter
42+
rev: v1.3.1
43+
hooks:
44+
- id: docformatter
45+
args: ["--in-place", "--wrap-descriptions", "79"]
46+
- repo: https://github.com/asottile/pyupgrade
47+
rev: v2.32.1
48+
hooks:
49+
- id: pyupgrade
50+
args: ["--py36-plus"]
51+
- repo: https://github.com/open-mmlab/pre-commit-hooks
52+
rev: v0.2.0
53+
hooks:
54+
- id: check-copyright
55+
# args: ["mmyolo", "tests"]
56+
args: ["mmyolo"]
57+
# - repo: https://github.com/pre-commit/mirrors-mypy
58+
# rev: v0.812
59+
# hooks:
60+
# - id: mypy
61+
# exclude: "docs"

.readthedocs.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
3+
formats: all
4+
5+
python:
6+
version: 3.7
7+
install:
8+
- requirements: requirements/docs.txt
9+
- requirements: requirements/readthedocs.txt

0 commit comments

Comments
 (0)