Spaces:
Running
Running
A newer version of the Gradio SDK is available: 6.24.0
metadata
title: GazeAlign
emoji: 👁️
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
license: mit
GazeAlign
Gaze-supervised medical image classification.
How to use
- Upload an image — JPG / PNG / BMP / TIFF / WEBP or a DICOM (
.dcm). - Add fixations (a radiologist-style scanpath) in either of two ways:
- Click on the image to drop fixation points, or
- Upload a fixation table (
.csv/.xlsx/.xls) and map itsID / X / Y / Timecolumns — X/Y may be raw pixels or normalised[0,1].
- Run to get the predicted class with per-class probabilities, plus the learned gaze-conditioned attention mask/overlay.
Model weights
The demo loads the checkpoint declared by the cxr preset in
configs/presets.yaml (default checkpoints/best_model_CXR.pth). The
weights are not committed to the GitHub repo (too large); add them to this
Space — e.g. track checkpoints/*.pth with Git LFS, or download them in a
startup step — so checkpoints/best_model_CXR.pth exists at launch.
See the GitHub repository for training code, evaluation scripts, and the paper.