Skip to content

Commit d1cb809

Browse files
committed
Add pre-commit
1 parent 9d89314 commit d1cb809

File tree

4 files changed

+205
-3
lines changed

4 files changed

+205
-3
lines changed

.gitignore

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
*.vscode
2+
3+
*.pyc
4+
5+
*.onnx
6+
7+
temp/
8+
test_files/
9+
10+
.DS_Store
11+
12+
*.bin
13+
14+
.mypy_cache
15+
16+
# Created by .ignore support plugin (hsz.mobi)
17+
### Python template
18+
# Byte-compiled / optimized / DLL files
19+
__pycache__/
20+
*.py[cod]
21+
*$py.class
22+
.pytest_cache
23+
24+
# C extensions
25+
*.so
26+
27+
# Distribution / packaging
28+
.Python
29+
build/
30+
develop-eggs/
31+
dist/
32+
downloads/
33+
eggs/
34+
.eggs/
35+
lib/
36+
lib64/
37+
parts/
38+
sdist/
39+
var/
40+
wheels/
41+
pip-wheel-metadata/
42+
share/python-wheels/
43+
*.egg-info/
44+
.installed.cfg
45+
*.egg
46+
MANIFEST
47+
48+
# PyInstaller
49+
# Usually these files are written by a python script from a template
50+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
51+
# *.manifest
52+
# *.spec
53+
*.res
54+
55+
# Installer logs
56+
pip-log.txt
57+
pip-delete-this-directory.txt
58+
59+
# Unit test / coverage reports
60+
htmlcov/
61+
.tox/
62+
.nox/
63+
.coverage
64+
.coverage.*
65+
.cache
66+
nosetests.xml
67+
coverage.xml
68+
*.cover
69+
*.py,cover
70+
.hypothesis/
71+
.pytest_cache/
72+
73+
# Translations
74+
*.mo
75+
*.pot
76+
77+
# Django stuff:
78+
*.log
79+
local_settings.py
80+
db.sqlite3
81+
db.sqlite3-journal
82+
83+
# Flask stuff:
84+
instance/
85+
.webassets-cache
86+
87+
# Scrapy stuff:
88+
.scrapy
89+
90+
# Sphinx documentation
91+
docs/_build/
92+
93+
# PyBuilder
94+
target/
95+
96+
# Jupyter Notebook
97+
.ipynb_checkpoints
98+
99+
# IPython
100+
profile_default/
101+
ipython_config.py
102+
103+
# pyenv
104+
.python-version
105+
106+
# pipenv
107+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
108+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
109+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
110+
# install all needed dependencies.
111+
#Pipfile.lock
112+
113+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
114+
__pypackages__/
115+
116+
# Celery stuff
117+
celerybeat-schedule
118+
celerybeat.pid
119+
120+
# SageMath parsed files
121+
*.sage.py
122+
123+
# Environments
124+
.env
125+
.venv
126+
env/
127+
venv/
128+
ENV/
129+
env.bak/
130+
venv.bak/
131+
132+
# Spyder project settings
133+
.spyderproject
134+
.spyproject
135+
136+
# Rope project settings
137+
.ropeproject
138+
139+
# mkdocs documentation
140+
/site
141+
142+
# mypy
143+
.mypy_cache/
144+
.dmypy.json
145+
dmypy.json
146+
147+
# Pyre type checker
148+
.pyre/
149+
150+
#idea
151+
.vs
152+
.vscode
153+
.idea
154+
/images
155+
/models
156+
157+
#models
158+
*.onnx
159+
160+
*.ttf
161+
*.ttc
162+
163+
long1.jpg
164+
165+
*.bin
166+
*.mapping
167+
*.xml
168+
169+
*.pdiparams
170+
*.pdiparams.info
171+
*.pdmodel
172+
173+
.DS_Store

.pre-commit-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
repos:
2+
- repo: https://github.com/myint/autoflake
3+
rev: v2.1.1
4+
hooks:
5+
- id: autoflake
6+
args:
7+
[
8+
"--recursive",
9+
"--in-place",
10+
"--remove-all-unused-imports",
11+
"--remove-unused-variable",
12+
"--ignore-init-module-imports",
13+
]
14+
- repo: https://github.com/psf/black
15+
rev: 23.1.0
16+
hooks:
17+
- id: black

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
1-
## YOLO2COCO
21
简体中文 | [English](./docs/README_en.md)
32

3+
## YOLO2COCO
4+
45
<p align="left">
56
<a href=""><img src="https://img.shields.io/badge/Python-3.6+-aff.svg"></a>
67
<a href=""><img src="https://img.shields.io/badge/OS-Linux%2C%20Win%2C%20Mac-pink.svg"></a>
78
<a href="https://github.com/RapidAI/YOLO2COCO/graphs/contributors"><img src="https://img.shields.io/github/contributors/RapidAI/YOLO2COCO?color=9ea"></a>
89
<a href="https://github.com/RapidAI/YOLO2COCO/stargazers"><img src="https://img.shields.io/github/stars/RapidAI/YOLO2COCO?color=ccf"></a>
910
<a href="./LICENSE"><img src="https://img.shields.io/badge/License-Apache%202-dfd.svg"></a>
11+
<a href="https://semver.org/"><img alt="SemVer2.0" src="https://img.shields.io/badge/SemVer-2.0-brightgreen"></a>
12+
<a href="https://github.com/psf/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
1013
</p>
1114

15+
- 目标检测和图像分割常用数据集格式转换工具。
16+
- 🎉 推出知识星球[RapidAI私享群](https://t.zsxq.com/0duLBZczw),这里的提问会优先得到回答和支持,也会享受到RapidAI组织后续持续优质的服务。欢迎大家的加入。
1217

13-
> 🎉 推出知识星球[RapidAI私享群](https://t.zsxq.com/0duLBZczw),这里的提问会优先得到回答和支持,也会享受到RapidAI组织后续持续优质的服务。欢迎大家的加入。
18+
#### TODO
19+
- [ ] 完善已有转换代码
20+
- [ ] 增加分割类数据集格式转换
21+
- [ ] 发布whl包
22+
- [ ] 增加单元测试
1423

1524
#### labelImg标注yolo格式数据 → YOLOV5格式
1625
<details>

docs/README_en.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1+
[简体中文](../README.md) | English
2+
13
## YOLO2COCO
2-
English | [简体中文](../README.md)
34

45
<p align="left">
56
<a href=""><img src="https://img.shields.io/badge/Python-3.6+-aff.svg"></a>
67
<a href=""><img src="https://img.shields.io/badge/OS-Linux%2C%20Win%2C%20Mac-pink.svg"></a>
78
<a href="https://github.com/RapidAI/YOLO2COCO/graphs/contributors"><img src="https://img.shields.io/github/contributors/RapidAI/YOLO2COCO?color=9ea"></a>
89
<a href="https://github.com/RapidAI/YOLO2COCO/stargazers"><img src="https://img.shields.io/github/stars/RapidAI/YOLO2COCO?color=ccf" ></a>
910
<a href=". /LICENSE"><img src="https://img.shields.io/badge/License-Apache%202-dfd.svg"></a>
11+
<a href="https://semver.org/"><img alt="SemVer2.0" src="https://img.shields.io/badge/SemVer-2.0-brightgreen"></a>
12+
<a href="https://github.com/psf/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
1013
</p>
1114

1215
#### labelImg label data → YOLOV5 format

0 commit comments

Comments
 (0)