A deep learning project for eliminating the twin-image problem in in-line holography using a physics-aware Swin-UNet architecture trained with synthetic holograms generated via the Angular Spectrum Method.
This repository includes pre-commit hooks that automatically run code quality checks (ruff and mypy) before each commit. To install them:
./scripts/install-hooks.shThis will set up the hooks from .githooks/ to .git/hooks/. The hooks will:
- Run
ruff checkonsrc/ - Run
ruff format --checkonsrc/ - Run
mypy --strictonsrc/
If any check fails, the commit will be blocked. You can bypass the hook with git commit --no-verify (not recommended).