Thank you for your interest in OphthalmoAI (Point-of-Care Retinal Disease Screening Platform), an open-source clinical AI decision-support platform created and maintained by Akash Kundu.
We welcome community contributions, algorithmic optimizations, clinical validation protocols, and documentation refinements adhering to our Engineering Quality Gates and Google / Microsoft Code Quality Standards.
OphthalmoAI is released under the Apache License 2.0. See LICENSE for complete terms.
By opening a pull request, submitting code, proposing algorithmic changes, or providing documentation (collectively, "Contributions"), you agree that:
- License Grant: Your Contributions are licensed under the Apache License 2.0, permitting research, academic, and clinical evaluation use.
- Original Work: You warrant that your Contributions are your original work and are free from third-party proprietary encumbrances, non-disclosure restrictions, or conflicting employer intellectual property agreements.
- Clinical Disclaimers: You acknowledge that OphthalmoAI is an educational and clinical screening-aid platform, and all code contributed must preserve strict clinical safety disclaimers and human-in-the-loop attestation blocks.
All contributors and participants must adhere to our Code of Conduct. Please report any unacceptable behavior to the project maintainer at akashkundu1152@gmail.com.
We adhere to strict engineering principles across the repository:
Every pull request must leave the modified module in a cleaner, better-documented, and better-tested state than when you found it.
- Keep PRs focused on a single concern, fix, or feature (< 400 lines modified when feasible).
- Avoid submitting monolithic PRs combining unrelated refactors, model weight changes, and frontend adjustments.
All pull request descriptions must follow Google's XYZ impact framework:
"Accomplished [X] as measured by [Y], by doing [Z]."
- Strictly Zero Protected Health Information (PHI): Never commit real patient fundus imagery, hospital medical record numbers (MRNs), patient names, or private clinician credentials.
- Domain Guardrail Integrity: Never weaken the optical aperture, chromophore backscatter, or spatial autocorrelation thresholds in
backend/fundus_validator.py. - Tenant Isolation: Never bypass the multi-tenant Row-Level Security filters in
backend/tenancy.py.
- Python: 3.10+ (Tested on Python 3.10, 3.11, 3.12, and 3.14)
- PyTorch: 2.2+ with CUDA 12.x support (or CPU fallback)
- Node.js: 18+ (Node 20+ recommended) & npm 9+
- Vite: 7+ & React 19
# Clone the repository
git clone https://github.com/AkashKundu114/OphthalmoAI.git
cd OphthalmoAI
# Setup Python Virtual Environment
python -m venv venv
# On Windows:
.\venv\Scripts\activate
# On Linux/macOS:
source venv/bin/activate
# Install PyTorch (CUDA 12.4 recommended for GPU acceleration)
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu124
# Install backend dependencies
pip install -r backend/requirements.txt
# Install frontend dependencies
cd frontend
npm install
cd ..Before opening a pull request, you MUST pass all quality gates locally:
# Gate 1: Full Pytest Backend Test Suite (All 312 tests must pass with 100% pass rate)
pytest tests -q
# Gate 2: ONNX Runtime & Asynchronous Serving Verification
pytest tests/backend/test_onnx_inference.py tests/backend/test_async_screening.py -v
# Gate 3: Domain Guardrails & Security Testing
pytest tests/backend/test_fundus_validator_and_precision.py tests/backend/test_security_and_auth.py -v
# Gate 4: Boundary Condition Edge-Case Hardening
pytest tests/test_boundary_conditions.py -v
# Gate 5: Frontend Unit & Edge Inference Test Suite (All 23 Vitest tests must pass)
cd frontend && npm test -- --run && npm run build && cd ..- Fork the repository and create your branch from
main:git checkout -b feature/your-feature-name
- Commit your changes using conventional commit messages:
feat(ensemble): add test-time temperature scaling refinementfix(guardrail): refine aperture darkness threshold for ultra-widefield lensesperf(onnx): optimize FP16 execution provider graph cachedocs(metrics): update multiclass calibration benchmark table
- Pass all Quality Gates locally.
- Push to your fork and submit a Pull Request to
main. - Fill out the Pull Request Template including the Google XYZ impact statement.
- Link relevant issues in the PR description (e.g.,
Closes #12).