-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (116 loc) · 3.42 KB
/
pyproject.toml
File metadata and controls
125 lines (116 loc) · 3.42 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
[build-system]
requires = ["setuptools>=70.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "facet-photo"
version = "1.0.1"
description = "AI-powered photo analysis and gallery — score, cull, organise, and explore your photo library with computer vision and face recognition"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [
{ name = "Nicolas Coevoet", email = "nicolas@coevoet.fr" },
]
keywords = [
"photo", "photography", "image-quality", "computer-vision", "aesthetic",
"face-recognition", "photo-scoring", "self-hosted", "topiq", "clip",
"image-analysis", "composition", "saliency", "face-clustering",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Framework :: FastAPI",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Multimedia :: Graphics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Recognition",
]
dependencies = [
# torch and torchvision are installed separately with the correct CUDA index URL.
# See install.sh or docs/INSTALLATION.md for details.
"open-clip-torch>=2.20.0",
"opencv-python>=4.8.0",
"pillow>=10.0.0",
"imagehash>=4.3.0",
"rawpy>=0.18.0",
"insightface>=0.7.0",
"pyiqa>=0.1.10",
"numpy>=1.24.0",
"scipy>=1.10.0",
"hdbscan>=0.8.40",
"fastapi>=0.100.0",
"uvicorn>=0.23.0",
"pyjwt>=2.8.0",
"tqdm>=4.65.0",
"exifread>=3.0.0",
"psutil>=5.9.0",
"reverse_geocoder>=1.5.1",
]
[project.optional-dependencies]
vlm = [
"transformers>=5.0.0",
"accelerate>=0.25.0",
]
saliency = [
# BiRefNet subject saliency uses transformers (AutoModelForImageSegmentation)
"facet-photo[vlm]",
]
gpu-clustering = [
"cuml",
"cupy",
]
all = [
"facet-photo[vlm,saliency]",
]
[project.urls]
Homepage = "https://github.com/ncoevoet/facet"
Repository = "https://github.com/ncoevoet/facet"
Documentation = "https://github.com/ncoevoet/facet/tree/master/docs"
Issues = "https://github.com/ncoevoet/facet/issues"
Discussions = "https://github.com/ncoevoet/facet/discussions"
[project.scripts]
facet = "facet:main"
facet-viewer = "viewer:main"
facet-db = "database:main"
facet-tag = "tag_existing:main"
facet-doctor = "diagnostics:main"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --tb=short"
filterwarnings = [
"ignore::DeprecationWarning:pydantic",
"ignore::DeprecationWarning:pkg_resources",
]
[tool.setuptools]
py-modules = ["facet", "viewer", "database", "tag_existing", "calibrate", "validate_db", "diagnostics"]
[tool.setuptools.packages.find]
include = [
"analyzers*",
"api*",
"comparison*",
"config*",
"db*",
"exiftool*",
"faces*",
"i18n*",
"models*",
"optimization*",
"processing*",
"utils*",
"validation*",
"plugins*",
]
exclude = ["venv*", "client*", "docs*", "photos_all*", "pretrained_models*"]
[tool.setuptools.package-data]
"*" = ["*.json"]
"i18n" = ["*.json"]
# Pre-built Angular client included in package
"api" = ["../client/dist/client/browser/**/*"]