Spaces:
Sleeping
Sleeping
Upload 3 files
Browse files- README.md +42 -42
- requirements.txt +2 -0
README.md
CHANGED
|
@@ -1,42 +1,42 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: GazeRefine
|
| 3 |
-
emoji: ποΈ
|
| 4 |
-
colorFrom: blue
|
| 5 |
-
colorTo: red
|
| 6 |
-
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
-
app_file: app.py
|
| 9 |
-
pinned: false
|
| 10 |
-
license: mit
|
| 11 |
-
short_description: Zero-shot, training-free gaze-guided medical segmentation
|
| 12 |
-
---
|
| 13 |
-
|
| 14 |
-
# GazeRefine β Expert Gaze as a Test-Time Prompt
|
| 15 |
-
|
| 16 |
-
Interactive demo for **GazeRefine**, a training-free, zero-shot framework
|
| 17 |
-
that turns expert eye-gaze into an inference-time prompt for medical image
|
| 18 |
-
segmentation. Frozen DINOv3 patch features + gaze-anchored
|
| 19 |
-
foreground/background prototypes + recurrent contrastive cleaning + kNN
|
| 20 |
-
affinity propagation β no masks, no clicks-as-boxes, no fine-tuning, no
|
| 21 |
-
adapters, no prompt encoder.
|
| 22 |
-
|
| 23 |
-
## How to use
|
| 24 |
-
1. Upload a colonoscopy or grayscale-MRI-style image.
|
| 25 |
-
2. Click on the image 1β5 times where a clinician's gaze would land on the
|
| 26 |
-
structure of interest (a polyp, the prostate, ...). Each click adds a
|
| 27 |
-
numbered fixation marker; the slider controls that fixation's relative
|
| 28 |
-
duration/weight before your next click.
|
| 29 |
-
3. Pick a hyperparameter preset (tuned per-modality, see the paper).
|
| 30 |
-
4. Press **Run GazeRefine** to get the gaze-prior overlay and the predicted
|
| 31 |
-
segmentation mask.
|
| 32 |
-
|
| 33 |
-
## Notes
|
| 34 |
-
- Inference uses a frozen `vit_large_patch16_dinov3.lvd1689m` backbone from
|
| 35 |
-
`timm`. First run will download the checkpoint.
|
| 36 |
-
- CPU inference works but is slow; a GPU Space is recommended for a smooth
|
| 37 |
-
demo.
|
| 38 |
-
- This Space is for research/demonstration only β it is **not** a clinical
|
| 39 |
-
diagnostic tool.
|
| 40 |
-
|
| 41 |
-
Full code, configs, and the unified evaluation pipeline:
|
| 42 |
-
[GitHub repository](https://github.com/<your-org>/gazerefine).
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: GazeRefine
|
| 3 |
+
emoji: ποΈ
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: red
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
+
short_description: Zero-shot, training-free gaze-guided medical segmentation
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# GazeRefine β Expert Gaze as a Test-Time Prompt
|
| 15 |
+
|
| 16 |
+
Interactive demo for **GazeRefine**, a training-free, zero-shot framework
|
| 17 |
+
that turns expert eye-gaze into an inference-time prompt for medical image
|
| 18 |
+
segmentation. Frozen DINOv3 patch features + gaze-anchored
|
| 19 |
+
foreground/background prototypes + recurrent contrastive cleaning + kNN
|
| 20 |
+
affinity propagation β no masks, no clicks-as-boxes, no fine-tuning, no
|
| 21 |
+
adapters, no prompt encoder.
|
| 22 |
+
|
| 23 |
+
## How to use
|
| 24 |
+
1. Upload a colonoscopy or grayscale-MRI-style image.
|
| 25 |
+
2. Click on the image 1β5 times where a clinician's gaze would land on the
|
| 26 |
+
structure of interest (a polyp, the prostate, ...). Each click adds a
|
| 27 |
+
numbered fixation marker; the slider controls that fixation's relative
|
| 28 |
+
duration/weight before your next click.
|
| 29 |
+
3. Pick a hyperparameter preset (tuned per-modality, see the paper).
|
| 30 |
+
4. Press **Run GazeRefine** to get the gaze-prior overlay and the predicted
|
| 31 |
+
segmentation mask.
|
| 32 |
+
|
| 33 |
+
## Notes
|
| 34 |
+
- Inference uses a frozen `vit_large_patch16_dinov3.lvd1689m` backbone from
|
| 35 |
+
`timm`. First run will download the checkpoint.
|
| 36 |
+
- CPU inference works but is slow; a GPU Space is recommended for a smooth
|
| 37 |
+
demo.
|
| 38 |
+
- This Space is for research/demonstration only β it is **not** a clinical
|
| 39 |
+
diagnostic tool.
|
| 40 |
+
|
| 41 |
+
Full code, configs, and the unified evaluation pipeline:
|
| 42 |
+
[GitHub repository](https://github.com/<your-org>/gazerefine).
|
requirements.txt
CHANGED
|
@@ -4,3 +4,5 @@ timm>=1.0.0
|
|
| 4 |
numpy
|
| 5 |
pandas
|
| 6 |
pillow
|
|
|
|
|
|
|
|
|
| 4 |
numpy
|
| 5 |
pandas
|
| 6 |
pillow
|
| 7 |
+
huggingface-hub==0.24.0
|
| 8 |
+
pydub==0.25.1
|