-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
161 lines (143 loc) · 4 KB
/
pyproject.toml
File metadata and controls
161 lines (143 loc) · 4 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "primateface"
version = "0.2.0"
description = "A Machine Learning Resource for Automated Face Analysis in Human and Non-human Primates"
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "Felipe Parodi", email = "fparodi@upenn.edu"},
{name = "Jordan Matelsky", email = "jmatelsky@upenn.edu"},
]
maintainers = [
{name = "Felipe Parodi", email = "fparodi@upenn.edu"},
]
requires-python = ">=3.8"
keywords = ["computer vision", "face detection", "pose estimation", "primates", "deep learning"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Recognition",
]
dependencies = [
"numpy==1.26.4",
"opencv-python>=4.5.0",
"pillow>=10.0.0",
"tqdm>=4.60.0",
"matplotlib>=3.3.0",
"scipy>=1.5.0",
"pandas>=1.1.0",
"scikit-learn>=0.24.0",
"json-tricks>=3.15.0",
"natsort>=7.0.0",
"pycocotools>=2.0.0",
"huggingface-hub>=0.20.0",
]
[project.optional-dependencies]
# GUI and YOLO-based tools
gui = [
"ultralytics>=8.0.0",
"gradio>=3.0.0",
"pyngrok>=5.0.0",
]
# MMDetection and MMPose models
# mmlab = [
# "mmcv>=2.0.0",
# "mmdet>=3.0.0",
# "mmpose>=1.0.0",
# "mmengine>=0.7.0",
# ]
# DINOv2 features (enhanced)
dinov2 = [
"transformers==4.36.0", # Compatible with PyTorch 2.1
"accelerate==0.25.0", # Compatible with PyTorch 2.1
"umap-learn>=0.5.0",
"plotly>=5.0.0",
"polars>=0.16.0",
"psutil>=5.8.0",
]
# DeepLabCut integration
# dlc = [
# "deeplabcut>=2.3.0",
# ]
# SLEAP integration
# sleap = [
# "sleap-io>=0.0.13",
# ]
# Face embedding (ArcFace re-identification)
embedding = [
"insightface>=0.7.0",
"onnxruntime>=1.14.0",
]
# MegaDescriptor wildlife re-ID embedding
megadescriptor = [
"timm>=0.9.0",
]
# Framework interop (SLEAP, NWB, DLC import)
interop = [
"sleap-io>=0.2.0",
"pynwb>=2.0.0",
"ndx-pose>=0.2.0",
]
# Landmark converter (optional GNN support)
landmark_gnn = [
"torch-geometric>=2.0.0",
]
# Documentation tools
docs = [
"mkdocs>=1.5.0",
"mkdocs-material>=9.0.0",
"mkdocs-minify-plugin>=0.7.0",
"pymdown-extensions>=10.0",
]
# Development tools
dev = [
"pytest>=6.0.0",
"black>=22.0.0",
"flake8>=4.0.0",
"mypy>=0.900",
"jupyter>=1.0.0",
"ipykernel>=6.0.0",
"gdown>=4.0.0", # Legacy: for downloading demo assets from Google Drive
]
# Complete installation (excludes framework-specific: mmlab, dlc, sleap)
all = [
# GUI tools
"ultralytics>=8.0.0",
"gradio>=3.0.0",
"pyngrok>=5.0.0",
# DINOv2 and transformers
"transformers>=4.30.0",
"accelerate>=0.20.0",
"umap-learn>=0.5.0",
"plotly>=5.0.0",
"polars>=0.16.0",
"psutil>=5.8.0",
# Landmark converter
"torch-geometric>=2.0.0",
]
[project.scripts]
primateface = "primateface.cli:main"
[project.urls]
Homepage = "https://primateface.studio"
Documentation = "https://docs.primateface.studio"
Repository = "https://github.com/KordingLab/PrimateFace"
"Bug Reports" = "https://github.com/KordingLab/PrimateFace/issues"
Paper = "https://www.biorxiv.org/content/10.1101/2025.08.12.669927"
"Hugging Face Dataset" = "https://huggingface.co/datasets/fparodi/PrimateFace"
"Hugging Face Models" = "https://huggingface.co/fparodi/primateface-models"
[tool.setuptools.packages.find]
where = ["."]
include = ["primateface*", "analysis*", "demos*", "dinov2*", "evals*", "gui*", "landmark_converter*"]
exclude = ["tests*", "docs*", "notebooks*"]
[tool.setuptools.package-data]
"*" = ["*.json", "*.yaml", "*.yml", "*.txt", "*.md"]