-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
61 lines (53 loc) · 1.56 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[tool.poetry]
name = "img2tags"
version = "1.5.1"
description = "Tag images"
authors = ["Yuta Hayashibe <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
homepage = "https://github.com/shirayu/img2tags"
repository = "https://github.com/shirayu/img2tags"
packages = [{include = "img2tags"}]
[tool.poetry.dependencies]
python = ">=3.9,<3.13"
opencv-python = "^4.7.0.72"
numpy = ">=1.24.3"
torch = ">=2.1.0"
huggingface-hub = ">=0.15.1"
pillow = "^10.2.0"
onnxruntime = { version = ">=1.16.1", optional = true }
onnxruntime-gpu = { version = ">=1.16.1", optional = true }
onnx = {version=">=1.14.0", optional = true }
pydantic = "^2.6.1"
rich = "^13.7.0"
accelerate = {version = ">=0.22.0", optional = true}
transformers = {version = ">=4.34.0", optional = true}
bitsandbytes = {version = ">=0.41.1", optional = true}
[tool.poetry.extras]
convert = ["onnx"]
cpu = ["onnxruntime"]
gpu = ["onnxruntime-gpu"]
text = ["transformers", "bitsandbytes", "accelerate"]
[tool.poetry.group.dev.dependencies]
pytest = ">=7.2.1,<9.0.0"
yamllint = ">=1.32.0"
ruff = ">=0.2.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
img2tags = "img2tags.img2tags:main"
img2text = "img2tags.img2text:main"
[tool.pyright]
pythonVersion = "3.9"
typeCheckingMode = "basic"
exclude = [".venv", "**/node_modules", "**/__pycache__",]
reportPrivateImportUsage = "information"
reportUnusedVariable="warning"
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP"]
ignore = []
fixable = ["ALL"]