Skip to content

Commit 1efa01a

Browse files
author
Bai
committed
initial commit
0 parents  commit 1efa01a

File tree

608 files changed

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

608 files changed

+100350
-0
lines changed

.github/CODE_OF_CONDUCT.md

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

.github/CONTRIBUTING.md

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Contributing to mmdetection
2+
3+
All kinds of contributions are welcome, including but not limited to the following.
4+
5+
- Fixes (typo, bugs)
6+
- New features and components
7+
8+
## Workflow
9+
10+
1. fork and pull the latest mmdetection
11+
2. checkout a new branch (do not use master branch for PRs)
12+
3. commit your changes
13+
4. create a PR
14+
15+
Note
16+
- If you plan to add some new features that involve large changes, it is encouraged to open an issue for discussion first.
17+
- If you are the author of some papers and would like to include your method to mmdetection,
18+
please contact Kai Chen (chenkaidev[at]gmail[dot]com). We will much appreciate your contribution.
19+
20+
## Code style
21+
22+
### Python
23+
We adopt [PEP8](https://www.python.org/dev/peps/pep-0008/) as the preferred code style.
24+
25+
We use the following tools for linting and formatting:
26+
- [flake8](http://flake8.pycqa.org/en/latest/): linter
27+
- [yapf](https://github.com/google/yapf): formatter
28+
- [isort](https://github.com/timothycrosley/isort): sort imports
29+
30+
Style configurations of yapf and isort can be found in [.style.yapf](../.style.yapf) and [.isort.cfg](../.isort.cfg).
31+
32+
We use [pre-commit hook](https://pre-commit.com/) that checks and formats for `flake8`, `yapf`, `isort`, `trailing whitespaces`,
33+
fixes `end-of-files`, sorts `requirments.txt` automatically on every commit.
34+
The config for a pre-commit hook is stored in [.pre-commit-config](../.pre-commit-config.yaml).
35+
36+
After you clone the repository, you will need to install initialize pre-commit hook.
37+
38+
```
39+
pip install -U pre-commit
40+
```
41+
42+
From the repository folder
43+
```
44+
pre-commit install
45+
```
46+
47+
After this on every commit check code linters and formatter will be enforced.
48+
49+
50+
>Before you create a PR, make sure that your code lints and is formatted by yapf.
51+
52+
### C++ and CUDA
53+
We follow the [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html).

.github/ISSUE_TEMPLATE/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Error report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
Thanks for your error report and we appreciate it a lot.
11+
12+
**Checklist**
13+
1. I have searched related issues but cannot get the expected help.
14+
2. The bug has not been fixed in the latest version.
15+
16+
**Describe the bug**
17+
A clear and concise description of what the bug is.
18+
19+
**Reproduction**
20+
1. What command or script did you run?
21+
```
22+
A placeholder for the command.
23+
```
24+
2. Did you make any modifications on the code or config? Did you understand what you have modified?
25+
3. What dataset did you use?
26+
27+
**Environment**
28+
29+
1. Please run `python mmdet/utils/collect_env.py` to collect necessary environment infomation and paste it here.
30+
2. You may add addition that may be helpful for locating the problem, such as
31+
- How you installed PyTorch [e.g., pip, conda, source]
32+
- Other environment variables that may be related (such as `$PATH`, `$LD_LIBRARY_PATH`, `$PYTHONPATH`, etc.)
33+
34+
**Error traceback**
35+
If applicable, paste the error trackback here.
36+
```
37+
A placeholder for trackback.
38+
```
39+
40+
**Bug fix**
41+
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the feature**
11+
12+
**Motivation**
13+
A clear and concise description of the motivation of the feature.
14+
Ex1. It is inconvenient when [....].
15+
Ex2. There is a recent paper [....], which is very helpful for [....].
16+
17+
**Related resources**
18+
If there is an official code release or third-party implementations, please also provide the information here, which would be very helpful.
19+
20+
**Additional context**
21+
Add any other context or screenshots about the feature request here.
22+
If you would like to implement the feature and create a PR, please leave a comment here and that would be much appreciated.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: General questions
3+
about: Ask general questions to get help
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---

.gitignore

+118
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
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/_build/
68+
69+
# PyBuilder
70+
target/
71+
72+
# Jupyter Notebook
73+
.ipynb_checkpoints
74+
75+
# pyenv
76+
.python-version
77+
78+
# celery beat schedule file
79+
celerybeat-schedule
80+
81+
# SageMath parsed files
82+
*.sage.py
83+
84+
# Environments
85+
.env
86+
.venv
87+
env/
88+
venv/
89+
ENV/
90+
env.bak/
91+
venv.bak/
92+
93+
# Spyder project settings
94+
.spyderproject
95+
.spyproject
96+
97+
# Rope project settings
98+
.ropeproject
99+
100+
# mkdocs documentation
101+
/site
102+
103+
# mypy
104+
.mypy_cache/
105+
106+
mmdet/version.py
107+
data
108+
.vscode
109+
.idea
110+
111+
# custom
112+
*.pkl
113+
*.pkl.json
114+
*.log.json
115+
work_dirs/
116+
117+
# Pytorch
118+
*.pth

.isort.cfg

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[isort]
2+
line_length = 79
3+
multi_line_output = 0
4+
known_standard_library = setuptools
5+
known_first_party = mmdet
6+
known_third_party = asynctest,cityscapesscripts,cv2,matplotlib,mmcv,numpy,onnx,pycocotools,robustness_eval,roi_align,roi_pool,seaborn,six,terminaltables,torch,torchvision
7+
no_lines_before = STDLIB,LOCALFOLDER
8+
default_section = THIRDPARTY

.pre-commit-config.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
repos:
2+
- repo: https://gitlab.com/pycqa/flake8.git
3+
rev: 3.7.9
4+
hooks:
5+
- id: flake8
6+
- repo: https://github.com/asottile/seed-isort-config
7+
rev: v2.1.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.29.0
16+
hooks:
17+
- id: yapf
18+
- repo: https://github.com/pre-commit/pre-commit-hooks
19+
rev: v2.5.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: fix-encoding-pragma
27+
args: ["--remove"]

.style.yapf

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[style]
2+
BASED_ON_STYLE = pep8
3+
BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = true
4+
SPLIT_BEFORE_EXPRESSION_AFTER_OPENING_PAREN = true

0 commit comments

Comments
 (0)