File size: 2,019 Bytes
73553fd
 
 
 
 
 
a58eb18
73553fd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "diffviews"
version = "0.2.0"
description = "Diffusion model activation visualizer with model-agnostic adapter interface"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.10"
authors = [
    {name = "DMD2 Team"}
]
keywords = ["diffusion", "visualization", "umap", "activations", "deep-learning"]
classifiers = [
    "Development Status :: 3 - Alpha",
    "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 :: Scientific/Engineering :: Visualization",
]

dependencies = [
    "torch>=2.0.0",
    "numpy>=1.21.0",
    "pandas>=1.5.0",
    "pillow>=9.0.0",
    "scikit-learn>=1.0.0",
    "umap-learn>=0.5.0",
    "numba==0.58.1",  # Pin for UMAP pickle compatibility
    "tqdm>=4.60.0",
]

[project.optional-dependencies]
viz = [
    "gradio>=6.0.0",
    "plotly>=5.18.0",
]
lmdb = [
    "lmdb>=1.4.0",
]
dev = [
    "pytest>=7.0.0",
    "pytest-cov>=4.0.0",
    "black>=23.0.0",
    "ruff>=0.1.0",
]
all = [
    "diffviews[viz,lmdb,dev]",
]

[project.urls]
Repository = "https://github.com/your-org/diffviews"

[project.scripts]
diffviews = "diffviews.scripts.cli:main"

[project.entry-points."diffviews.adapters"]
# Adapters register themselves here
# Example: imagenet-64 = "diffviews_dmd2:DMD2ImageNetAdapter"

[tool.setuptools.packages.find]
where = ["."]
include = ["diffviews*"]

[tool.setuptools.package-data]
diffviews = ["py.typed"]
"*" = ["*.json"]

[tool.black]
line-length = 100
target-version = ["py310", "py311", "py312"]

[tool.ruff]
line-length = 100
select = ["E", "F", "W", "I"]
ignore = ["E501"]

[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]