Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (137 loc) · 4.03 KB
/
Copy pathpyproject.toml
File metadata and controls
148 lines (137 loc) · 4.03 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "emb-explorer"
version = "1.0.0"
description = "Image clustering tool using embeddings with Streamlit interface"
readme = "README.md"
license = {file = "LICENSE"}
authors = [
{ name = "Net Zhang", email = "zhang.11091@osu.edu" },
{ name = "Elizabeth G. Campolongo", email = "e.campolongo479@gmail.com" },
{ name = "Matthew J. Thompson", email = "thompson.m.j@outlook.com" },
{ name = "Sreejith Menon", email = "sreejithmenon@google.com" },
{ name = "Jianyang Gu", email = "gu.1220@osu.edu" },
{ name = "Arnab Nandi", email = "nandi.9@osu.edu" }
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Multimedia :: Graphics",
]
requires-python = ">=3.10,<3.14"
dependencies = [
# Core UI and web framework
"streamlit>=1.50.0",
# Data processing and numerical computing
"numpy<2.3", # capped: numba 0.61.x requires numpy <2.3
"pandas>=2.0.0",
"pillow>=9.0.0",
"pyarrow>=10.0.0",
# Visualization
"altair>=5.0.0",
# Machine learning
"scikit-learn>=1.0.0",
# Intel oneDAL acceleration for sklearn (PCA / TSNE / KMeans) auto-patched at runtime.
# Disable with EMB_EXPLORER_DISABLE_SKLEARNEX=1 if you need vanilla sklearn behavior for debugging.
"scikit-learn-intelex>=2025.0; platform_machine == 'AMD64' or platform_machine == 'x86_64'",
"umap-learn>=0.5.0",
"numba>=0.57.0",
# Vision-language models
"open-clip-torch>=2.20.0",
# Image embedding pipeline (used directly in shared/utils/image_pipeline.py)
"torch>=1.11.0",
]
[project.optional-dependencies]
dev = [
"jupyter>=1.0.0",
"notebook>=6.0.0",
"ipykernel>=6.0.0",
"pytest>=7.0.0",
"black>=22.0.0",
"flake8>=4.0.0",
"mypy>=0.950",
]
# GPU acceleration — pick the extra matching your system CUDA version:
# pip install -e ".[gpu-cu12]" # CUDA 12.x (e.g. OSC Pitzer)
# pip install -e ".[gpu-cu13]" # CUDA 13.x
# "gpu" is an alias for gpu-cu12 (most common HPC setup).
gpu = [
"emb-explorer[gpu-cu12]",
]
# cuML pins use PEP 440 normalization of RAPIDS CalVer: 26.8 == cuML 26.08.
gpu-cu12 = [
"torch>=2.0.0",
"cuml-cu12>=26.8",
"pynvml>=11.0.0",
]
gpu-cu13 = [
"torch>=2.0.0",
"cuml-cu13>=26.8",
"pynvml>=11.0.0",
]
# Minimal GPU support for image embeddings generation (just PyTorch, no RAPIDS)
gpu-minimal = [
"torch>=2.0.0",
]
all = [
"emb-explorer[dev,gpu]",
]
[project.urls]
Homepage = "https://github.com/Imageomics/emb-explorer"
Repository = "https://github.com/Imageomics/emb-explorer"
Issues = "https://github.com/Imageomics/emb-explorer/issues"
[project.scripts]
emb-embed-explore = "apps.embed_explore.app:main"
emb-precalculated = "apps.precalculated.app:main"
list-models = "shared.utils.models:print_available_models"
[tool.hatch.version]
path = "shared/__init__.py"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["shared", "apps"]
[tool.hatch.build.targets.sdist]
include = [
"/shared",
"/apps",
"/README.md",
"/LICENSE",
]
[tool.black]
line-length = 88
target-version = ['py310', 'py311', 'py312']
include = '\.pyi?$'
extend-exclude = '''
/(
__pycache__
| \.git
| \.mypy_cache
| \.pytest_cache
| \.venv
| _build
| build
| dist
)/
'''
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
markers = ["gpu: requires GPU hardware (deselect with '-m not gpu')"]