Skip to content

Commit

Permalink
[feature]: add textdet
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreykuang committed Apr 2, 2021
1 parent 3ed6aaa commit 31f1c00
Show file tree
Hide file tree
Showing 223 changed files with 31,719 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
omit =
*/__init__.py
138 changes: 138 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
*.ipynb

# 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/

# cython generated cpp
!data/dict
data/*
.vscode
.idea

# custom
*.pkl
*.pkl.json
*.log.json
work_dirs/
exps/
*~
show_dir/

# Pytorch
*.pth

# demo
!tests/data
tests/results

#temp files
.DS_Store

checkpoints

htmlcov
*.swp
log.txt
workspace.code-workspace
results
47 changes: 47 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
variables:
PYTORCH_IMAGE: registry.sensetime.com/eig-research/pytorch:1.4-cuda10.1-cudnn7-mmocr

stages:
- test
- linting
- deploy

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

.linting_template: &linting_template_def
stage: linting
script:
- pip install pre-commit==2.6.0
- pre-commit install
- pre-commit run --all-files

test:
image: $PYTORCH_IMAGE
stage: test
script:
- pip install -r requirements.txt
- python setup.py develop
- export PYTHONPATH=`pwd`
- pytest

pages:
image: $PYTORCH_IMAGE
stage: deploy
script:
- pip install -r docs/requirements.txt
- sphinx-build -b html docs public
artifacts:
paths:
- public


linting:pytorch1.3-cuda10:
image: $PYTORCH_IMAGE
<<: *linting_template_def
36 changes: 36 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
exclude: ^tests/data/
repos:
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.1
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"]
Loading

0 comments on commit 31f1c00

Please sign in to comment.