Bin-0815 commited on
Commit
644d2b9
Β·
verified Β·
1 Parent(s): 09bfc35

Match model README to corrected GitHub review-fixes README

Browse files
Files changed (1) hide show
  1. README.md +105 -142
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
- # GRADE models and evaluation (MobiCom 2026)
16
 
17
- This repository contains the complete GRADE model, paper ablations, and baselines: 19 model checkpoint files plus one auxiliary TAESD weight file (20 `.safetensors` files in total). It also includes the inference and metric code and the saved camera-ready quantitative results. The full GRADE model uses the radar, diffusion, and ControlNet checkpoints in `checkpoints/grade/`.
 
18
 
19
- Two evaluation paths are supported:
 
 
 
 
20
 
21
- - **E1 β€” saved-result reproduction:** regenerate the quantitative tables and figures from the supplied camera-ready CSVs and auxiliary evaluation data. This requires no inference or dataset download.
22
- - **E2 β€” local reproduction:** run inference on the released evaluation data, compute 2D/3D metrics, then regenerate the quantitative tables and figures from those newly computed CSVs.
 
23
 
24
- Figure 10 is qualitative-only and is intentionally outside this artifact's quantitative workflow.
25
 
26
- ## Layout
27
 
28
- ```text
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
- `evaluation/reference_results/` is read-only golden material. The runners write only to `evaluation/outputs/`, `evaluation/metric_results/`, and `evaluation/reproduced_results/`. The package does not include saved inference `.npy` files.
51
 
52
- ## Model-name mapping
 
 
53
 
54
- Pass the following identifiers to `--model`. `grade` is the preferred name for the complete model; `ours_full` remains a compatibility alias and historical CSV name.
 
 
 
55
 
56
- | Code identifier | Paper name |
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
- ## Download the models and evaluation data
75
-
76
- Download this repository and the separate processed Smoke-Eval evaluation dataset:
77
 
78
  ```bash
79
- hf download phi-lab-rice/GRADE --local-dir grade-models
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 model weights and saved E1 results are already in this repository. The evaluation data are public but contain about 27,000 small files, so anonymous downloads may be rate limited. You can also provide `HF_TOKEN` through your shell's secure credential mechanism. All models except `radarcam-depth` use `evaluation_dataset/Smoke-Eval/`; that baseline uses `evaluation_dataset/Smoke-Eval-RadarCam-Depth/`. If ZIP extraction creates an extra nested directory, move the inner directory up one level.
 
 
 
 
89
 
90
- The [raw GRADE dataset](https://huggingface.co/datasets/phi-lab-rice/GRADE_Dataset) is a separate release. Its public version currently lacks the videos needed to create processed DJI RGB input; the processed Smoke-Eval repository linked above supplies the evaluation input used here.
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
- python3.11 -m venv .venv
98
- source .venv/bin/activate
99
- python -m pip install --upgrade pip
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
- Choose the PyTorch wheel matching your installed CUDA driver when needed.
106
-
107
- The first 2D metric run may download the approximately 233 MB TorchVision
108
- AlexNet weights used by LPIPS from `download.pytorch.org`. To run metrics
109
- offline, perform one LPIPS metric run online in the same environment first and
110
- keep the TorchVision cache. Set `TORCH_HOME` to choose a persistent cache
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
- ## E1: reproduce the saved camera-ready results
 
 
119
 
120
- Run:
 
 
 
 
121
 
122
- ```bash
123
- python evaluation/reproduce_paper.py --mode saved
124
- ```
 
125
 
126
- The output is written to `evaluation/reproduced_results/saved/`. It contains Tables 2–7 and the panels for Figures 9 and 11–14. As quick checks, Table 2 reports GRADE clear/smoke MAE values of 0.303/0.313, Table 3 reports 0.295/0.304 for light/heavy smoke, Table 4 reports 0.308/0.320/0.360 for full/radar/diffusion, and Table 7 identifies eight DDIM steps as best.
127
 
128
- ## E2: reproduce results from local inference
 
 
 
129
 
130
- For each desired model, run the inference, metric, and paper-reproduction runners in that order:
131
 
132
- ```bash
133
- python evaluation/run_inference.py --model grade --gpuid 0
134
- python evaluation/run_metrics.py --model grade --workers 1
135
- python evaluation/reproduce_paper.py --mode local
 
136
  ```
137
 
138
- The inference runner launches through Accelerate by default and accepts direct `accelerate launch` invocation as well. Repeat the first two commands for every model needed by the desired table or figure before the final command. GRADE diffusion variants use the released fixed DDIM seed (42); each frame receives a reproducible, newly drawn noise sample from that seeded generator.
 
 
 
139
 
140
- To reproduce the radar-robustness analysis after generating the prerequisite predictions and metric outputs, run:
141
 
142
  ```bash
143
- python evaluation/run_metrics.py --radar-robustness
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
- Local mode includes only available model rows in Tables 2–6 and reports
149
- skipped outputs when none of their required model CSVs exist. Table 7 labels
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
- - All three runners provide `--dry-run` to validate argument dispatch without running a model.
159
- - `run_inference.py` refuses to overwrite existing predictions. Use a different output root when retaining an earlier run.
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
- Changing the data subset, output resolution, sampling settings, or evaluation configuration is useful for a smoke test but will not reproduce the camera-ready numerical values exactly.
 
 
164
 
165
- ## Run only the full GRADE model on your own frames
 
 
 
 
166
 
167
- For the full GRADE model, `config.yaml` also supports direct inference from synchronized radar and DJI RGB arrays without ZED ground-truth depth. Put each sequence under `inputs/<sequence>/` with `radar.npy` (`complex64`, shape `(N, 64, 2, 8, 256)`) and `dji_rgb.npy` (`uint8` RGB, shape `(N, 504, 896, 3)`). The arrays must have the same frame count and order. The GRADE camera calibration is embedded in preprocessing.
 
 
168
 
169
  ```bash
170
- accelerate launch --num_processes 1 --num_machines 1 \
171
- --mixed_precision fp16 --dynamo_backend no \
172
- src/GRADE/stage2_diffusion_refinement/inference_full.py \
173
- --config config.yaml
174
  ```
175
 
176
- The output is `outputs/ours_full/<sequence>_pred.npy`, a `float32` array of shape `(N, 1, 288, 512)` normalized to `[0, 1]`. Multiply by 11.2 for estimated depth in meters. Set `data.smoke_eval_root` and `inference.output_root` in `config.yaml` to use other paths. The script overwrites same-named outputs on rerun.
177
-
178
- ## Checkpoint integrity and citation
 
179
 
180
- `SHA256SUMS` lists the hashes of all 20 `.safetensors` files. Run `sha256sum -c SHA256SUMS` from the repository root after download. The checkpoints contain inference tensors, not optimizer or training state. TAESD is an auxiliary VAE from the [TAESD project](https://huggingface.co/madebyollin/taesd), whose upstream model is MIT licensed.
181
 
182
  ```bibtex
183
  @inproceedings{zhao2026grade,
184
- author = {Bin Zhao and Patrick Chiou and Nakul Garg},
185
- title = {{GRADE}: Single-Frame Generative Radar Depth Estimation Under Visual Degradation},
186
- booktitle = {Proceedings of the 32nd Annual International Conference on Mobile Computing and Networking},
187
- series = {MobiCom '26},
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).