-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
96 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[report] | ||
exclude_lines = | ||
@abstractmethod | ||
@abc.abstractmethod | ||
raise NotImplementedError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
exclude: ^tests/data/ | ||
repos: | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.11.5 | ||
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/executablebooks/mdformat | ||
rev: 0.7.9 | ||
hooks: | ||
- id: mdformat | ||
args: ["--number", "--table-width", "200", '--disable-escape', 'backslash', '--disable-escape', 'link-enclosure'] | ||
additional_dependencies: | ||
- "mdformat-openmmlab>=0.0.4" | ||
- mdformat_frontmatter | ||
- linkify-it-py | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.1.0 | ||
hooks: | ||
- id: codespell | ||
- repo: https://github.com/myint/docformatter | ||
rev: v1.3.1 | ||
hooks: | ||
- id: docformatter | ||
args: ["--in-place", "--wrap-descriptions", "79"] | ||
- repo: https://github.com/open-mmlab/pre-commit-hooks | ||
rev: v0.4.0 | ||
hooks: | ||
- id: check-copyright | ||
args: ["mmpretrain", "tests", "demo", "tools", "--excludes", "mmpretrain/.mim/", "--ignore-file-not-found-error"] | ||
- repo: local | ||
hooks: | ||
- id: metafile | ||
args: ['--skip', 'flops-param'] | ||
name: metafile | ||
description: Check the format of metafile | ||
entry: python .dev_scripts/check_metafile.py | ||
language: python | ||
files: (metafile)\.(yml)$ | ||
additional_dependencies: | ||
- modelindex | ||
# - repo: local | ||
# hooks: | ||
# - id: clang-format | ||
# name: clang-format | ||
# description: Format files with ClangFormat | ||
# entry: clang-format -style=google -i | ||
# language: system | ||
# files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|cuh|proto)$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
version: 2 | ||
|
||
formats: [] | ||
formats: | ||
- epub | ||
|
||
python: | ||
version: 3.7 | ||
version: 3.8 | ||
install: | ||
- requirements: requirements/docs.txt | ||
- requirements: requirements/readthedocs.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
-r requirements/optional.txt | ||
-r requirements/runtime.txt | ||
-r requirements/tests.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
docutils==0.16.0 | ||
docutils==0.18.1 | ||
markdown>=3.4.0 | ||
myst_parser | ||
-e git+https://github.com/Westlake-AI/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme | ||
recommonmark | ||
sphinx==4.0.2 | ||
sphinx==4.0.2 | ||
sphinx==6.1.3 | ||
sphinx-copybutton | ||
sphinx-notfound-page | ||
sphinx_markdown_tables>=0.0.16 | ||
sphinx_rtd_theme==0.5.2 | ||
sphinx-tabs | ||
sphinxcontrib-jquery | ||
tabulate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
mmcls >= 0.21.0 | ||
mmcv-full>=1.4.7 | ||
mmengine>=0.4.0,<1.0.0 | ||
mmdet >= 2.16.0 | ||
mmsegmentation >= 0.20.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
faiss-gpu>=1.6.1 | ||
albumentations>=0.3.2 --no-binary qudida,albumentations # For Albumentations data transform | ||
faiss-gpu>=1.6.1 # For DeepCluster and ODC | ||
grad-cam >= 1.3.7 # For CAM visualization | ||
requests # For torchserve | ||
scikit-image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
attrs | ||
einops | ||
future | ||
importlib-metadata | ||
matplotlib | ||
mmcv-full>=1.4.7 | ||
numpy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,7 +169,8 @@ def add_mim_extension(): | |
long_description_content_type='text/markdown', | ||
author='CAIRI Westlake University Contributors', | ||
author_email='[email protected]', | ||
keywords='mixup classification, semi- and self-supervised learning', | ||
keywords='computer vision, image classification, ' | ||
'mixup classification, semi- and self-supervised learning', | ||
url='https://github.com/Westlake-AI/openmixup', | ||
packages=find_packages(exclude=('configs', 'tools', 'demo')), | ||
classifiers=[ | ||
|
@@ -181,6 +182,9 @@ def add_mim_extension(): | |
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Topic :: Scientific/Engineering :: Artificial Intelligence', | ||
], | ||
license='Apache License 2.0', | ||
tests_require=parse_requirements('requirements/tests.txt'), | ||
|