Skip to content

Commit

Permalink
Merge pull request #200 from DefTruth/dev
Browse files Browse the repository at this point in the history
feat(pylitex): init pylitex setup configs
  • Loading branch information
DefTruth authored Feb 20, 2022
2 parents f2cc064 + 9a6627d commit e0fac36
Show file tree
Hide file tree
Showing 29 changed files with 63 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ cmake-build-debug
cmake-build-release
.idea
build-debug.sh
python
command

__pycache__
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1084,4 +1084,4 @@ auto *nanodet = new lite::ncnn::cv::detection::NanoDet(param_path, bin_path);
## 11. Contribute
<div id="lite.ai.toolkit-Contribute"></div>

How to add your own models and become a contributor? For specific steps, please refer to [CONTRIBUTING.zh.md](docs/contrib/CONTRIBUTING.zh.md), or if you like this project please ❤️ consider ⭐️🌟 star this repo, as it is the simplest way to support me.
How to add your own models and become a contributor? For specific steps, please refer to [CONTRIBUTING.zh.md](https://github.com/DefTruth/lite.ai.toolkit/issues/191), or if you like this project please ❤️ consider ⭐️🌟 star this repo, as it is the simplest way to support me.
2 changes: 1 addition & 1 deletion README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -1082,5 +1082,5 @@ auto *nanodet = new lite::ncnn::cv::detection::NanoDet(param_path, bin_path);
## 11. 如何添加您的模型
<div id="lite.ai.toolkit-Contribute"></div>

如何添加您自己的模型以及成为贡献者?具体步骤请参考 [CONTRIBUTING.zh.md](docs/contrib/CONTRIBUTING.zh.md) ,或者,❤️不妨给个⭐️🌟star,这应该是最简单的支持方式了。
如何添加您自己的模型以及成为贡献者?具体步骤请参考 [CONTRIBUTING.zh.md](https://github.com/DefTruth/lite.ai.toolkit/issues/191) ,或者,❤️不妨给个⭐️🌟star,这应该是最简单的支持方式了。

3 changes: 3 additions & 0 deletions pylitex/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
__pycache__
.idea
1 change: 1 addition & 0 deletions pylitex/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recursive-include pylitex/hub/ *.onnx
Empty file added pylitex/README.md
Empty file.
Empty file added pylitex/docs/.gitignore
Empty file.
2 changes: 2 additions & 0 deletions pylitex/pylitex/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Versions
__version__ = '0.0.1'
Empty file.
Empty file added pylitex/pylitex/cv/__init__.py
Empty file.
Empty file.
Empty file.
Empty file added pylitex/pylitex/cv/nanodet.py
Empty file.
Empty file added pylitex/pylitex/cv/pfld106.py
Empty file.
Empty file added pylitex/pylitex/cv/pipnet.py
Empty file.
Empty file added pylitex/pylitex/cv/rvm.py
Empty file.
Empty file added pylitex/pylitex/cv/scrfd.py
Empty file.
Empty file added pylitex/pylitex/cv/yolo5face.py
Empty file.
Empty file added pylitex/pylitex/cv/yolov5.py
Empty file.
Empty file added pylitex/pylitex/cv/yolox.py
Empty file.
1 change: 1 addition & 0 deletions pylitex/pylitex/hub/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
Empty file added pylitex/pylitex/lite.py
Empty file.
Empty file.
Empty file.
Empty file.
9 changes: 9 additions & 0 deletions pylitex/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# pylitex
opencv-python>=4.5.2
numpy>=1.14.4
torch>=1.6.0
onnxruntime>=1.7.0
onnx>=1.8.0

# test
torchlm>=0.1.5
2 changes: 2 additions & 0 deletions pylitex/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
desciption-file = README.md
42 changes: 42 additions & 0 deletions pylitex/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import setuptools
from pathlib import Path

PATH_ROOT = Path(__file__).parent.resolve()


def get_long_description():
description = (PATH_ROOT / "README.md").read_text(encoding="utf-8")
# replace relative repository path to absolute link to the release
static_url = f"https://github.com/DefTruth/lite.ai.toolkit/blob/main/pylitex"
description = description.replace("docs/res/", f"{static_url}/docs/res/")
return description


setuptools.setup(
name="pylitex",
version="0.0.1",
author="DefTruth",
author_email="[email protected]",
description="A Python version of lite.ai.toolkit based on opencv and onnxruntime.",
long_description=get_long_description(),
long_description_content_type="text/markdown",
url="https://github.com/DefTruth/lite.ai.toolkit",
packages=setuptools.find_packages(),
install_requires=[
"opencv-python=4.5.2",
"numpy>=1.14.4",
"torch>=1.6.0",
"onnxruntime>=1.7.0",
"onnx>=1.8.0"
],
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
],
include_package_data=True
)
Empty file added pylitex/test/.gitignore
Empty file.

0 comments on commit e0fac36

Please sign in to comment.