forked from nikopueringer/CorridorKey
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (81 loc) · 2.19 KB
/
pyproject.toml
File metadata and controls
96 lines (81 loc) · 2.19 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
[project]
name = "corridorkey"
version = "1.0.0"
description = "Neural network green screen keying for professional VFX pipelines"
readme = "README.md"
requires-python = ">=3.10, <=3.14"
license = { text = "CC-BY-NC-SA-4.0" }
authors = [{ name = "Corridor Digital" }]
dependencies = [
# Core inference
"torch==2.10.0",
"torchvision==0.25.0",
"timm==1.0.24",
"numpy",
"opencv-python",
"tqdm",
"setuptools",
# GVM alpha hint generator
"diffusers",
"transformers",
"accelerate",
"peft",
"av",
"Pillow",
"PIMS",
"easydict",
"imageio",
"matplotlib",
# VideoMaMa alpha hint generator
"einops",
# CLI tools (huggingface-hub is also a transitive dep, but must be direct
# so that uv installs the "hf" console-script entry point)
"huggingface-hub",
]
[dependency-groups]
dev = [
"pytest",
"pytest-cov",
"ruff",
]
[project.scripts]
corridorkey = "corridorkey_cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["CorridorKeyModule", "gvm_core", "VideoMaMaInferenceModule"]
[tool.ruff]
target-version = "py311"
line-length = 120
extend-exclude = ["gvm_core/", "VideoMaMaInferenceModule/"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B"]
[tool.ruff.format]
# Third-party code excluded via top-level exclude
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"gpu: requires CUDA GPU (skipped in CI)",
"slow: long-running test",
"mlx: requires Apple Silicon with MLX installed",
]
addopts = "--tb=short"
[tool.coverage.run]
branch = true
# "." covers root-level modules (clip_manager.py, corridorkey_cli.py once PR #8 merges).
# Third-party and non-library code is excluded via omit.
source = ["CorridorKeyModule", "."]
omit = [
"gvm_core/*",
"VideoMaMaInferenceModule/*",
"tests/*",
"test_vram.py", # manual GPU smoke test, not part of the pytest suite
]
[[tool.uv.index]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu126"
explicit = true
[tool.uv.sources]
torch = { index = "pytorch", marker = "sys_platform != 'darwin'" }
torchvision = { index = "pytorch", marker = "sys_platform != 'darwin'" }