Instructions to use phi-lab-rice/GRADE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use phi-lab-rice/GRADE with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("phi-lab-rice/GRADE", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Match model README to corrected GitHub review-fixes README
Browse files
README.md
CHANGED
|
@@ -1,192 +1,155 @@
|
|
| 1 |
-
|
| 2 |
-
license: cc-by-nc-4.0
|
| 3 |
-
library_name: pytorch
|
| 4 |
-
datasets:
|
| 5 |
-
- phi-lab-rice/GRADE_Dataset
|
| 6 |
-
tags:
|
| 7 |
-
- radar
|
| 8 |
-
- rgb
|
| 9 |
-
- depth-estimation
|
| 10 |
-
- multimodal
|
| 11 |
-
- safetensors
|
| 12 |
-
arxiv: 2609.10756
|
| 13 |
-
---
|
| 14 |
|
| 15 |
-
|
| 16 |
|
| 17 |
-
|
|
|
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
|
| 22 |
-
-
|
|
|
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
-
``
|
| 29 |
-
grade-models/
|
| 30 |
-
βββ README.md # this guide
|
| 31 |
-
βββ environment.txt # Python 3.11 package specification
|
| 32 |
-
βββ checkpoints/ # included model and auxiliary weights
|
| 33 |
-
βββ evaluation_dataset/ # download the separate Smoke-Eval data here
|
| 34 |
-
βββ src/ # released model implementations and configs
|
| 35 |
-
β βββ Baselines/ # DA3, GRT, CaFNet, RadarCam-Depth
|
| 36 |
-
β βββ Ablation/ # ablation implementations
|
| 37 |
-
β βββ GRADE/ # Stage 1 radar-depth and Stage 2 diffusion modules
|
| 38 |
-
β βββ models/ # per-model release-relative configurations
|
| 39 |
-
βββ evaluation/
|
| 40 |
-
βββ run_inference.py # unified inference runner
|
| 41 |
-
βββ run_metrics.py # 2D, 3D, merged-CSV, and radar-robustness runner
|
| 42 |
-
βββ reproduce_paper.py # quantitative paper reproduction
|
| 43 |
-
βββ utils/ # internal metric-computation implementation
|
| 44 |
-
βββ outputs/inference/ # newly generated predictions
|
| 45 |
-
βββ metric_results/ # newly computed metric CSVs
|
| 46 |
-
βββ reference_results/ # supplied camera-ready CSVs and paper assets
|
| 47 |
-
βββ reproduced_results/ # newly generated tables and figures
|
| 48 |
-
```
|
| 49 |
|
| 50 |
-
|
| 51 |
|
| 52 |
-
|
|
|
|
|
|
|
| 53 |
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
-
|
| 57 |
-
| --- | --- |
|
| 58 |
-
| `grade` / `ours_full` | GRADE |
|
| 59 |
-
| `ours_radar` | Ours_radar |
|
| 60 |
-
| `ours_diffusion` | Ours_diffusion |
|
| 61 |
-
| `ours_radar_no_grad` | Ours_radar w/o gradient loss |
|
| 62 |
-
| `ours_radar_no_doppler` | Ours_radar w/o Doppler |
|
| 63 |
-
| `ours_full_no_3d` | GRADE w/o 3D losses |
|
| 64 |
-
| `grt_refine_freeze` | GRT refinement (frozen) |
|
| 65 |
-
| `grt_refine_retrain` | GRT refinement (retrained) |
|
| 66 |
-
| `da3` | DA3 |
|
| 67 |
-
| `grt` | GRT |
|
| 68 |
-
| `grt_image` | GRT+Image |
|
| 69 |
-
| `grt_no_doppler` | GRT w/o Doppler |
|
| 70 |
-
| `cafnet` | CaFNet |
|
| 71 |
-
| `cafnet_no_smoke` | CaFNet (No-Smoke) |
|
| 72 |
-
| `radarcam-depth` | RadarCam-Depth |
|
| 73 |
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
Download this repository and the separate processed Smoke-Eval evaluation dataset:
|
| 77 |
|
| 78 |
```bash
|
| 79 |
-
|
| 80 |
-
cd grade-models
|
| 81 |
-
hf auth login # recommended for the many small evaluation files; use the local secure prompt
|
| 82 |
-
hf download mypersonalsharingspot11/evaluation_dataset \
|
| 83 |
-
--repo-type dataset --local-dir evaluation_dataset
|
| 84 |
-
python -m zipfile -e \
|
| 85 |
-
evaluation_dataset/Smoke-Eval-RadarCam-Depth.zip evaluation_dataset
|
| 86 |
```
|
| 87 |
|
| 88 |
-
The
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
## Prepare the environment
|
| 93 |
-
|
| 94 |
-
Use Python 3.11 and install `environment.txt`. E1 can run on CPU. E2 requires an NVIDIA GPU and a CUDA-compatible PyTorch installation. For a CUDA 12.6 host, one setup is:
|
| 95 |
|
| 96 |
```bash
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
python
|
| 100 |
-
python -m pip install torch==2.7.0 torchvision==0.22.0 \
|
| 101 |
-
--index-url https://download.pytorch.org/whl/cu126
|
| 102 |
-
python -m pip install -r environment.txt
|
| 103 |
```
|
| 104 |
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
location.
|
| 112 |
-
|
| 113 |
-
RadarCam-Depth also fetches its EfficientNet-Lite3 architecture from the
|
| 114 |
-
[upstream Torch Hub repository](https://github.com/rwightman/gen-efficientnet-pytorch)
|
| 115 |
-
on first use. Run that baseline once online to populate the Torch Hub cache
|
| 116 |
-
before using it offline.
|
| 117 |
|
| 118 |
-
|
|
|
|
|
|
|
| 119 |
|
| 120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
``
|
|
|
|
| 125 |
|
| 126 |
-
|
| 127 |
|
| 128 |
-
|
|
|
|
|
|
|
|
|
|
| 129 |
|
| 130 |
-
|
| 131 |
|
| 132 |
-
```
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
|
|
|
| 136 |
```
|
| 137 |
|
| 138 |
-
|
|
|
|
|
|
|
|
|
|
| 139 |
|
| 140 |
-
To
|
| 141 |
|
| 142 |
```bash
|
| 143 |
-
|
| 144 |
-
```
|
| 145 |
-
|
| 146 |
-
`--mode local` writes to `evaluation/reproduced_results/local/`. A complete GPU-based E2 run over all models is substantially more expensive than E1; provision roughly 400 GiB of free storage and expect the full workflow to take longer than a day on typical local hardware.
|
| 147 |
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
its input source in the generated report. Unless
|
| 151 |
-
`evaluation/metric_results/sampling_step/sampling_step_ablation_pooled.csv`
|
| 152 |
-
has been separately regenerated, Table 7 is derived from the supplied
|
| 153 |
-
reference results even in local mode. The ordinary E2 model commands do not
|
| 154 |
-
recompute the sampling-step ablation.
|
| 155 |
-
|
| 156 |
-
## Useful options and checks
|
| 157 |
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
- `run_metrics.py` supports `--sequence`, `--target-resolution`, and `--workers` for smaller functional checks. Use the default `--workers 1`: higher values have deadlocked on an evaluation host and are not validated for this release.
|
| 161 |
-
- `reproduce_paper.py` supports `--tables-only` and `--figures-only`.
|
| 162 |
|
| 163 |
-
|
|
|
|
|
|
|
| 164 |
|
| 165 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
|
| 167 |
-
For
|
|
|
|
|
|
|
| 168 |
|
| 169 |
```bash
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
```
|
| 175 |
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
|
|
|
| 179 |
|
| 180 |
-
|
| 181 |
|
| 182 |
```bibtex
|
| 183 |
@inproceedings{zhao2026grade,
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
booktitle = {Proceedings of the 32nd Annual International Conference on
|
| 187 |
-
|
| 188 |
year = {2026},
|
| 189 |
-
publisher = {ACM},
|
| 190 |
doi = {10.1145/3795866.3844478}
|
| 191 |
}
|
| 192 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GRADE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
+
**Single-Frame Generative Radar Depth Estimation Under Visual Degradation**
|
| 4 |
|
| 5 |
+
Bin Zhao, Patrick Chiou, Nakul Garg β Rice University
|
| 6 |
+
ACM MobiCom 2026 Β· Austin, TX
|
| 7 |
|
| 8 |
+
Dense 3D depth perception fails under smoke, fog, and darkness because optical sensors cannot
|
| 9 |
+
penetrate airborne particulates. mmWave radar works in these conditions but its limited angular
|
| 10 |
+
resolution gives depth that is metrically grounded yet structurally incomplete. GRADE grounds
|
| 11 |
+
pretrained generative priors in single-frame radar geometry to recover high-fidelity metric depth β
|
| 12 |
+
without SAR and without a reliable camera.
|
| 13 |
|
| 14 |
+
Trained and evaluated on ~95K synchronized frames across 12 buildings with real smoke using
|
| 15 |
+
leave-building-out splits, GRADE reaches an MAE of 0.303 m in clear conditions and 0.313 m under
|
| 16 |
+
smoke, ahead of every baseline on all reported metrics.
|
| 17 |
|
| 18 |
+
## Project page
|
| 19 |
|
| 20 |
+
<https://phi-lab-rice.github.io/GRADE/>
|
| 21 |
|
| 22 |
+
Served from [`docs/`](docs/) via GitHub Pages.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
+
## Code and artifacts
|
| 25 |
|
| 26 |
+
The evaluation code is included directly in this repository under
|
| 27 |
+
[`evaluation/`](evaluation/) and [`src/`](src/). It includes inference, metric
|
| 28 |
+
computation, saved-result reproduction, and the evaluation configuration.
|
| 29 |
|
| 30 |
+
The [complete Hugging Face model repository](https://huggingface.co/phi-lab-rice/GRADE)
|
| 31 |
+
contains the executable code, all model checkpoints, and the complete
|
| 32 |
+
reference results. Download it with `hf download phi-lab-rice/GRADE --local-dir
|
| 33 |
+
grade-models` and run the commands below from `grade-models`.
|
| 34 |
|
| 35 |
+
### Artifact evaluation reproduction
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
+
After installing `environment.txt`, the CPU-only E1 command is:
|
|
|
|
|
|
|
| 38 |
|
| 39 |
```bash
|
| 40 |
+
python evaluation/reproduce_paper.py --mode saved
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
```
|
| 42 |
|
| 43 |
+
The GitHub checkout contains pointer files in place of some large reference
|
| 44 |
+
`.npz` assets. If running the GitHub source, pass
|
| 45 |
+
`--reference-root /path/to/grade-models/evaluation/reference_results` to use
|
| 46 |
+
the downloaded model package without changing the checkout. E1 writes regenerated
|
| 47 |
+
results under `evaluation/reproduced_results/saved/`.
|
| 48 |
|
| 49 |
+
For E2, run inference and metrics for each required model, then reproduce from
|
| 50 |
+
the fresh merged CSVs:
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
```bash
|
| 53 |
+
python evaluation/run_inference.py --model grade --gpuid 0
|
| 54 |
+
python evaluation/run_metrics.py --model grade --workers 1
|
| 55 |
+
python evaluation/reproduce_paper.py --mode local
|
|
|
|
|
|
|
|
|
|
| 56 |
```
|
| 57 |
|
| 58 |
+
`--mode local` includes the available model rows in Tables 2β6 and skips a
|
| 59 |
+
table or figure when none of its required inputs exist. The output lists each
|
| 60 |
+
skip. Table 7 states its source in the generated report: if
|
| 61 |
+
`evaluation/metric_results/sampling_step/sampling_step_ablation_pooled.csv`
|
| 62 |
+
exists, it uses that fresh file; otherwise it uses the released reference
|
| 63 |
+
sampling-step results. Ordinary E2 model runs do not recompute Table 7.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
+
Use `--workers 1` for the 3D metric stage. Multiple workers have deadlocked on
|
| 66 |
+
at least one evaluation host and are not validated for this release. The 2D
|
| 67 |
+
stage does not use this setting.
|
| 68 |
|
| 69 |
+
The LPIPS metric may download the AlexNet weights (about 233 MB) from
|
| 70 |
+
`download.pytorch.org` on first use. For an offline metric run, populate the
|
| 71 |
+
TorchVision weight cache before disconnecting; running the LPIPS metric once
|
| 72 |
+
online in the same environment is sufficient. Set `TORCH_HOME` to keep that
|
| 73 |
+
cache in a known location.
|
| 74 |
|
| 75 |
+
Anonymous downloads of the many small Smoke-Eval files may be rate limited by
|
| 76 |
+
Hugging Face. Log in with `hf auth login` on the download host, or set `HF_TOKEN`
|
| 77 |
+
through the shell's secure credential mechanism, before `hf download`. The
|
| 78 |
+
repositories are public; authentication only increases download reliability.
|
| 79 |
|
| 80 |
+
### Dataset
|
| 81 |
|
| 82 |
+
The synchronized raw dataset is shared through
|
| 83 |
+
[Hugging Face](https://huggingface.co/datasets/phi-lab-rice/GRADE_Dataset). Please
|
| 84 |
+
follow its access and usage terms. The dataset-processing scripts are available
|
| 85 |
+
in [`processing_code/`](processing_code/) here and in that dataset repository.
|
| 86 |
|
| 87 |
+
The raw dataset repository is organized as follows:
|
| 88 |
|
| 89 |
+
```text
|
| 90 |
+
GRADE Dataset/
|
| 91 |
+
βββ processing_code/ # dataset-processing scripts
|
| 92 |
+
βββ GRADE_Eval_Raw/ # evaluation data
|
| 93 |
+
βββ GRADE_Train_Raw/ # training data
|
| 94 |
```
|
| 95 |
|
| 96 |
+
For the artifact evaluation checkpoints and processed Smoke-Eval inputs, use the
|
| 97 |
+
[complete model repository](https://huggingface.co/phi-lab-rice/GRADE) and the
|
| 98 |
+
separate [evaluation dataset](https://huggingface.co/datasets/mypersonalsharingspot11/evaluation_dataset).
|
| 99 |
+
The model package includes release-relative checkpoint configurations.
|
| 100 |
|
| 101 |
+
To use the processing scripts locally from this repository:
|
| 102 |
|
| 103 |
```bash
|
| 104 |
+
cd processing_code
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
+
# Full radar + ZED + DJI processing
|
| 107 |
+
python processor.py --dataset /path/to/raw_dataset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
|
| 109 |
+
# RGB/depth-only processing
|
| 110 |
+
python processor_rgb.py --dataset /path/to/raw_dataset
|
|
|
|
|
|
|
| 111 |
|
| 112 |
+
# Radar point-cloud extraction
|
| 113 |
+
python processor_pcd.py --dataset /path/to/raw_dataset
|
| 114 |
+
```
|
| 115 |
|
| 116 |
+
Each processor accepts `--sequences` to process selected sequences. The
|
| 117 |
+
generated files are written under `processed/<sequence_name>/`, including
|
| 118 |
+
synchronized timestamps and the processed radar, RGB, depth, or point-cloud
|
| 119 |
+
outputs appropriate to the selected pipeline. See the docstrings in the
|
| 120 |
+
processing scripts for optional modality skips and split-file arguments.
|
| 121 |
|
| 122 |
+
For reproducible evaluation, install the dependencies from
|
| 123 |
+
[`environment.txt`](environment.txt) before running the evaluation code. A
|
| 124 |
+
typical setup is:
|
| 125 |
|
| 126 |
```bash
|
| 127 |
+
python3.11 -m venv grade-venv
|
| 128 |
+
source grade-venv/bin/activate
|
| 129 |
+
python -m pip install --upgrade pip
|
| 130 |
+
python -m pip install -r environment.txt
|
| 131 |
```
|
| 132 |
|
| 133 |
+
After preparing the environment, follow the command-line help and docstrings
|
| 134 |
+
in the scripts under [`evaluation/`](evaluation/). Full evaluation also
|
| 135 |
+
requires downloading the checkpoints and the required Smoke-Eval directories
|
| 136 |
+
from the artifact repositories linked above.
|
| 137 |
|
| 138 |
+
## Citation
|
| 139 |
|
| 140 |
```bibtex
|
| 141 |
@inproceedings{zhao2026grade,
|
| 142 |
+
title = {GRADE: Single-Frame Generative Radar Depth Estimation Under Visual Degradation},
|
| 143 |
+
author = {Zhao, Bin and Chiou, Patrick and Garg, Nakul},
|
| 144 |
+
booktitle = {Proceedings of the 32nd Annual International Conference on
|
| 145 |
+
Mobile Computing and Networking (MobiCom '26)},
|
| 146 |
year = {2026},
|
|
|
|
| 147 |
doi = {10.1145/3795866.3844478}
|
| 148 |
}
|
| 149 |
```
|
| 150 |
+
|
| 151 |
+
## Acknowledgement
|
| 152 |
+
|
| 153 |
+
The project page is based on the [Nerfies](https://nerfies.github.io/) template
|
| 154 |
+
(CC BY-SA 4.0), with the layout adapted from our
|
| 155 |
+
[RadarSFD project page](https://github.com/phi-lab-rice/RadarSFD/tree/main/docs).
|