diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2321005 --- /dev/null +++ b/.gitignore @@ -0,0 +1,173 @@ +*.vscode + +*.pyc + +*.onnx + +temp/ +test_files/ + +.DS_Store + +*.bin + +.mypy_cache + +# Created by .ignore support plugin (hsz.mobi) +### Python template +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class +.pytest_cache + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +pip-wheel-metadata/ +share/python-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 +*.res + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# 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/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +#idea +.vs +.vscode +.idea +/images +/models + +#models +*.onnx + +*.ttf +*.ttc + +long1.jpg + +*.bin +*.mapping +*.xml + +*.pdiparams +*.pdiparams.info +*.pdmodel + +.DS_Store \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..8cdf89e --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,17 @@ +repos: +- repo: https://github.com/myint/autoflake + rev: v2.1.1 + hooks: + - id: autoflake + args: + [ + "--recursive", + "--in-place", + "--remove-all-unused-imports", + "--remove-unused-variable", + "--ignore-init-module-imports", + ] +- repo: https://github.com/psf/black + rev: 23.1.0 + hooks: + - id: black diff --git a/README.md b/README.md index af8b0f5..06f031e 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,25 @@ -## YOLO2COCO 简体中文 | [English](./docs/README_en.md) +## YOLO2COCO +

+ SemVer2.0 +

+- 目标检测和图像分割常用数据集格式转换工具。 +- 🎉 推出知识星球[RapidAI私享群](https://t.zsxq.com/0duLBZczw),这里的提问会优先得到回答和支持,也会享受到RapidAI组织后续持续优质的服务。欢迎大家的加入。 -> 🎉 推出知识星球[RapidAI私享群](https://t.zsxq.com/0duLBZczw),这里的提问会优先得到回答和支持,也会享受到RapidAI组织后续持续优质的服务。欢迎大家的加入。 +#### TODO +- [ ] 完善已有转换代码 +- [ ] 增加分割类数据集格式转换 +- [ ] 发布whl包 +- [ ] 增加单元测试 #### labelImg标注yolo格式数据 → YOLOV5格式
diff --git a/docs/README_en.md b/docs/README_en.md index 118a5e0..016b19b 100644 --- a/docs/README_en.md +++ b/docs/README_en.md @@ -1,5 +1,6 @@ +[简体中文](../README.md) | English + ## YOLO2COCO -English | [简体中文](../README.md)

@@ -7,6 +8,8 @@ English | [简体中文](../README.md) + SemVer2.0 +

#### labelImg label data → YOLOV5 format