-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
146 lines (123 loc) · 3.2 KB
/
pyproject.toml
File metadata and controls
146 lines (123 loc) · 3.2 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[project]
name = "ai-product-photo-detector"
version = "1.0.0"
description = "Detect AI-generated product photos in e-commerce listings"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11"
authors = [
{ name = "Nolan Cacheux", email = "cachnolan@gmail.com" }
]
keywords = ["mlops", "ai-detection", "computer-vision", "pytorch", "fastapi"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
# ML & Deep Learning
"torch>=2.0.0",
"torchvision>=0.15.0",
"timm>=0.9.0",
"pillow>=10.0.0",
# API
"fastapi>=0.100.0",
"uvicorn[standard]>=0.23.0",
"python-multipart>=0.0.6",
"slowapi>=0.1.9",
# MLOps
"mlflow>=2.8.0",
"kfp>=2.0.0",
# Evaluation
"scikit-learn>=1.3.0",
"matplotlib>=3.7.0",
# Observability
"structlog>=23.1.0",
"prometheus-client>=0.17.0",
# Data & Config
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"pyyaml>=6.0.0",
"numpy>=1.24.0",
# Explainability
"grad-cam>=1.5.0",
# Utils
"httpx>=0.24.0",
"tqdm>=4.65.0",
# Data
"datasets>=2.14.0",
# GCP / Vertex AI
"google-cloud-aiplatform>=1.38.0",
"google-cloud-storage>=2.13.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest-asyncio>=0.21.0",
"ruff>=0.1.0",
"mypy>=1.5.0",
"types-PyYAML>=6.0.0",
"pre-commit>=3.4.0",
]
ui = [
"streamlit>=1.28.0",
]
[project.urls]
Homepage = "https://github.com/nolancacheux/AI-Product-Photo-Detector"
Repository = "https://github.com/nolancacheux/AI-Product-Photo-Detector"
Documentation = "https://github.com/nolancacheux/AI-Product-Photo-Detector/tree/main/docs"
[project.scripts]
train = "src.training.train:main"
vertex-submit = "src.training.vertex_submit:main"
serve = "src.inference.api:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.lint.isort]
known-first-party = ["src"]
[tool.mypy]
python_version = "3.11"
strict = false
warn_return_any = false
warn_unused_ignores = true
disallow_untyped_defs = false
ignore_missing_imports = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"src.pipelines.*",
"src.ui.*",
"src.training.train",
"src.training.vertex_submit",
]
disallow_untyped_decorators = false
disable_error_code = ["no-any-return", "type-arg"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = "-v --cov=src --cov-report=term-missing"
[tool.coverage.run]
source = ["src"]
omit = ["tests/*"]