2023-06-05 16:40:48 +02:00
|
|
|
[tool.poetry]
|
|
|
|
name = "machine-learning"
|
2024-03-20 16:50:57 +02:00
|
|
|
version = "1.99.0"
|
2023-06-05 16:40:48 +02:00
|
|
|
description = ""
|
|
|
|
authors = ["Hau Tran <alex.tran1502@gmail.com>"]
|
|
|
|
readme = "README.md"
|
|
|
|
packages = [{include = "app"}]
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2023-12-21 18:54:56 +02:00
|
|
|
python = ">=3.10,<3.12"
|
2023-12-23 16:04:36 +02:00
|
|
|
insightface = ">=0.7.3,<1.0"
|
|
|
|
opencv-python-headless = ">=4.7.0.72,<5.0"
|
|
|
|
pillow = ">=9.5.0,<11.0"
|
|
|
|
fastapi = ">=0.95.2,<1.0"
|
|
|
|
uvicorn = {extras = ["standard"], version = ">=0.22.0,<1.0"}
|
2023-06-05 16:40:48 +02:00
|
|
|
pydantic = "^1.10.8"
|
2023-12-23 16:04:36 +02:00
|
|
|
aiocache = ">=0.12.1,<1.0"
|
|
|
|
rich = ">=13.4.2"
|
|
|
|
ftfy = ">=6.1.1"
|
2023-08-25 06:28:51 +02:00
|
|
|
setuptools = "^68.0.0"
|
2023-12-23 16:04:36 +02:00
|
|
|
python-multipart = ">=0.0.6,<1.0"
|
|
|
|
orjson = ">=3.9.5"
|
|
|
|
gunicorn = ">=21.1.0"
|
|
|
|
huggingface-hub = ">=0.20.1,<1.0"
|
|
|
|
tokenizers = ">=0.15.0,<1.0"
|
2023-06-05 16:40:48 +02:00
|
|
|
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
2023-12-23 16:04:36 +02:00
|
|
|
mypy = ">=1.3.0"
|
|
|
|
black = ">=23.3.0"
|
|
|
|
pytest = ">=7.3.1"
|
|
|
|
locust = ">=2.15.1"
|
|
|
|
httpx = ">=0.24.1"
|
|
|
|
pytest-asyncio = ">=0.21.0"
|
|
|
|
pytest-cov = ">=4.1.0"
|
|
|
|
ruff = ">=0.0.272"
|
|
|
|
pytest-mock = ">=3.11.1"
|
2023-06-05 16:40:48 +02:00
|
|
|
|
2024-01-22 01:22:39 +02:00
|
|
|
[tool.poetry.group.cpu]
|
|
|
|
optional = true
|
|
|
|
|
|
|
|
[tool.poetry.group.cpu.dependencies]
|
|
|
|
onnxruntime = "^1.15.0"
|
|
|
|
|
|
|
|
[tool.poetry.group.cuda]
|
|
|
|
optional = true
|
|
|
|
|
|
|
|
[tool.poetry.group.cuda.dependencies]
|
2024-03-03 06:36:16 +02:00
|
|
|
onnxruntime-gpu = {version = "^1.17.0", source = "cuda12"}
|
2024-01-22 01:22:39 +02:00
|
|
|
|
|
|
|
[tool.poetry.group.openvino]
|
|
|
|
optional = true
|
|
|
|
|
|
|
|
[tool.poetry.group.openvino.dependencies]
|
2024-03-16 06:04:45 +02:00
|
|
|
onnxruntime-openvino = "^1.17.1"
|
2024-01-22 01:22:39 +02:00
|
|
|
|
|
|
|
[tool.poetry.group.armnn]
|
|
|
|
optional = true
|
|
|
|
|
|
|
|
[tool.poetry.group.armnn.dependencies]
|
|
|
|
onnxruntime = "^1.15.0"
|
|
|
|
|
2024-03-03 06:36:16 +02:00
|
|
|
[[tool.poetry.source]]
|
|
|
|
name = "cuda12"
|
|
|
|
url = "https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/"
|
|
|
|
priority = "explicit"
|
|
|
|
|
2023-06-05 16:40:48 +02:00
|
|
|
[build-system]
|
|
|
|
requires = ["poetry-core"]
|
|
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
python_version = "3.11"
|
|
|
|
plugins = "pydantic.mypy"
|
|
|
|
follow_imports = "silent"
|
|
|
|
warn_redundant_casts = true
|
|
|
|
disallow_any_generics = true
|
|
|
|
check_untyped_defs = true
|
|
|
|
disallow_untyped_defs = true
|
2023-10-31 12:02:04 +02:00
|
|
|
ignore_missing_imports = true
|
2023-06-05 16:40:48 +02:00
|
|
|
|
|
|
|
[tool.pydantic-mypy]
|
|
|
|
init_forbid_extra = true
|
|
|
|
init_typed = true
|
|
|
|
warn_required_dynamic_aliases = true
|
2023-06-28 01:21:33 +02:00
|
|
|
warn_untyped_fields = true
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
line-length = 120
|
|
|
|
target-version = "py311"
|
|
|
|
|
2024-02-25 01:22:27 +02:00
|
|
|
[tool.ruff.lint]
|
|
|
|
select = ["E", "F", "I"]
|
|
|
|
per-file-ignores = { "test_main.py" = ["F403"] }
|
2023-06-28 01:21:33 +02:00
|
|
|
|
|
|
|
[tool.black]
|
|
|
|
line-length = 120
|
|
|
|
target-version = ['py311']
|
2024-01-22 01:22:39 +02:00
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
markers = ["providers"]
|