2023-06-05 16:40:48 +02:00
|
|
|
[tool.poetry]
|
|
|
|
name = "machine-learning"
|
2023-06-26 20:06:11 +02:00
|
|
|
version = "1.64.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]
|
|
|
|
python = "^3.11"
|
|
|
|
torch = [
|
|
|
|
{markers = "platform_machine == 'arm64' or platform_machine == 'aarch64'", version = "=2.0.1", source = "pypi"},
|
2023-06-07 03:48:51 +02:00
|
|
|
{markers = "platform_machine == 'amd64' or platform_machine == 'x86_64'", version = "=2.0.1", source = "pytorch-cpu"}
|
2023-06-05 16:40:48 +02:00
|
|
|
]
|
|
|
|
transformers = "^4.29.2"
|
|
|
|
sentence-transformers = "^2.2.2"
|
|
|
|
onnxruntime = "^1.15.0"
|
|
|
|
insightface = "^0.7.3"
|
|
|
|
opencv-python-headless = "^4.7.0.72"
|
|
|
|
pillow = "^9.5.0"
|
|
|
|
fastapi = "^0.95.2"
|
|
|
|
uvicorn = {extras = ["standard"], version = "^0.22.0"}
|
|
|
|
pydantic = "^1.10.8"
|
2023-06-07 03:48:51 +02:00
|
|
|
aiocache = "^0.12.1"
|
2023-06-05 16:40:48 +02:00
|
|
|
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
mypy = "^1.3.0"
|
|
|
|
black = "^23.3.0"
|
|
|
|
pytest = "^7.3.1"
|
2023-06-25 20:20:45 +02:00
|
|
|
locust = "^2.15.1"
|
|
|
|
gunicorn = "^20.1.0"
|
2023-06-05 16:40:48 +02:00
|
|
|
|
|
|
|
[[tool.poetry.source]]
|
|
|
|
name = "pytorch-cpu"
|
|
|
|
url = "https://download.pytorch.org/whl/cpu"
|
|
|
|
priority = "explicit"
|
|
|
|
|
|
|
|
[build-system]
|
|
|
|
requires = ["poetry-core"]
|
|
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
|
|
|
|
[tool.flake8]
|
|
|
|
max-line-length = 120
|
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
python_version = "3.11"
|
|
|
|
plugins = "pydantic.mypy"
|
|
|
|
follow_imports = "silent"
|
|
|
|
warn_redundant_casts = true
|
|
|
|
disallow_any_generics = true
|
|
|
|
check_untyped_defs = true
|
|
|
|
no_implicit_reexport = true
|
|
|
|
disallow_untyped_defs = true
|
|
|
|
|
|
|
|
[tool.pydantic-mypy]
|
|
|
|
init_forbid_extra = true
|
|
|
|
init_typed = true
|
|
|
|
warn_required_dynamic_aliases = true
|
|
|
|
warn_untyped_fields = true
|