Skip to content

Commit 31f1c00

Browse files
committed
[feature]: add textdet
1 parent 3ed6aaa commit 31f1c00

File tree

223 files changed

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

223 files changed

+31719
-0
lines changed

.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
omit =
3+
*/__init__.py

.gitignore

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
*.ipynb
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+
# cython generated cpp
108+
!data/dict
109+
data/*
110+
.vscode
111+
.idea
112+
113+
# custom
114+
*.pkl
115+
*.pkl.json
116+
*.log.json
117+
work_dirs/
118+
exps/
119+
*~
120+
show_dir/
121+
122+
# Pytorch
123+
*.pth
124+
125+
# demo
126+
!tests/data
127+
tests/results
128+
129+
#temp files
130+
.DS_Store
131+
132+
checkpoints
133+
134+
htmlcov
135+
*.swp
136+
log.txt
137+
workspace.code-workspace
138+
results

.gitlab-ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
variables:
2+
PYTORCH_IMAGE: registry.sensetime.com/eig-research/pytorch:1.4-cuda10.1-cudnn7-mmocr
3+
4+
stages:
5+
- test
6+
- linting
7+
- deploy
8+
9+
before_script:
10+
- echo $PATH
11+
- gcc --version
12+
- nvcc --version
13+
- python --version
14+
- pip --version
15+
- python -c "import torch; print(torch.__version__)"
16+
- nvidia-smi
17+
18+
.linting_template: &linting_template_def
19+
stage: linting
20+
script:
21+
- pip install pre-commit==2.6.0
22+
- pre-commit install
23+
- pre-commit run --all-files
24+
25+
test:
26+
image: $PYTORCH_IMAGE
27+
stage: test
28+
script:
29+
- pip install -r requirements.txt
30+
- python setup.py develop
31+
- export PYTHONPATH=`pwd`
32+
- pytest
33+
34+
pages:
35+
image: $PYTORCH_IMAGE
36+
stage: deploy
37+
script:
38+
- pip install -r docs/requirements.txt
39+
- sphinx-build -b html docs public
40+
artifacts:
41+
paths:
42+
- public
43+
44+
45+
linting:pytorch1.3-cuda10:
46+
image: $PYTORCH_IMAGE
47+
<<: *linting_template_def

.pre-commit-config.yaml

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

0 commit comments

Comments
 (0)