Drop-in MLX backend for main CorridorKey repo. Engine class wraps existing model/inference with process_frame() API returning alpha, fg, comp, processed as uint8 numpy arrays. Lowers Python to >=3.11, removes unused deps, adds smoke script and 16 contract tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
50 lines
897 B
TOML
50 lines
897 B
TOML
[project]
|
|
name = "corridorkey-mlx"
|
|
version = "0.1.0"
|
|
description = "MLX inference port of CorridorKey for Apple Silicon"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"mlx>=0.31.0",
|
|
"numpy>=2.0.0",
|
|
"pillow>=10.0.0",
|
|
"rich>=13.0.0",
|
|
"safetensors>=0.4.0",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"mypy>=1.19.1",
|
|
"pytest>=9.0.2",
|
|
"pytest-xdist>=3.8.0",
|
|
"ruff>=0.15.4",
|
|
]
|
|
reference = [
|
|
"timm>=1.0.25",
|
|
"torch>=2.10.0",
|
|
"torchvision>=0.25.0",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/corridorkey_mlx"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
|
|
[tool.ruff]
|
|
target-version = "py311"
|
|
line-length = 99
|
|
src = ["src"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B", "SIM", "TCH"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.11"
|
|
strict = true
|
|
mypy_path = "src"
|