Metadata-Version: 2.4
Name: chromainvert
Version: 0.1.0
Summary: Perceptual video and LUT reverse-engineering engine
Author: ChromaInvert contributors
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/JaylyDev/ChromaInvert
Project-URL: Repository, https://github.com/JaylyDev/ChromaInvert
Project-URL: Issues, https://github.com/JaylyDev/ChromaInvert/issues
Keywords: color-grading,lut,colour-science,pytorch,ffmpeg
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Video
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.26
Requires-Dist: torch>=2.0
Requires-Dist: imageio>=2.30
Provides-Extra: torch
Requires-Dist: torch>=2.0; extra == "torch"
Provides-Extra: video
Requires-Dist: imageio>=2.30; extra == "video"
Provides-Extra: dev
Requires-Dist: chromainvert[torch,video]; extra == "dev"
Requires-Dist: pytest>=8; extra == "dev"
Dynamic: license-file

# ChromaInvert engine

Perceptual video and LUT reverse-engineering engine. It recovers a smooth 3D LUT that matches source footage to a reference grade, then exports a portable `.cube` file ready for Premiere Pro, DaVinci Resolve, FFmpeg, or mobile camera apps.

## Install

Requires Python 3.10 or newer.

```
python -m pip install chromainvert
```

For development from this repo (from the repo root):

```
python -m pip install -e ./engine
```

## Quickstart

Optimize a LUT from a job file (see `docs/ARCHITECTURE.md` in the repo for the job schema):

```
python -m chromainvert run work/job.json
```

Predict a LUT from a single reference image (needs weights trained with `scripts/train_lut_predictor.py`):

```
python -m chromainvert predict reference.png --weights data/weights/predictor_rec709.pt --output out.cube
```

Run the synthetic recovery benchmark:

```
python -m chromainvert benchmark
```

## Layout

```
engine/
├── LICENSE
├── pyproject.toml
├── README.md
├── src/
│   └── chromainvert/
└── tests/
```

## License

Apache-2.0. See `LICENSE`.
