Simplify the model card and README
Browse files- README.md +3 -5
- code/README.md +24 -58
README.md
CHANGED
|
@@ -41,14 +41,12 @@ mkdir -p checkpoints && mv ../*.safetensors checkpoints/
|
|
| 41 |
# then follow code/README.md: installation, the TAPIP3D checkpoint, and the demo
|
| 42 |
```
|
| 43 |
|
| 44 |
-
FLUX.1-Fill-dev, SegFormer-B5, TAPIP3D, SAM 3 and Qwen3.5 are loaded from their official sources
|
| 45 |
-
|
| 46 |
|
| 47 |
## License
|
| 48 |
|
| 49 |
-
The weights are released under CC BY-NC 4.0
|
| 50 |
-
from the Waymo Open Dataset, and the LoRA adapts FLUX.1-Fill-dev, so the terms of these sources also apply. The code
|
| 51 |
-
is released under the Apache License 2.0.
|
| 52 |
|
| 53 |
## Citation
|
| 54 |
|
|
|
|
| 41 |
# then follow code/README.md: installation, the TAPIP3D checkpoint, and the demo
|
| 42 |
```
|
| 43 |
|
| 44 |
+
FLUX.1-Fill-dev, SegFormer-B5, TAPIP3D, SAM 3 and Qwen3.5 are loaded from their official sources, see
|
| 45 |
+
`code/README.md`.
|
| 46 |
|
| 47 |
## License
|
| 48 |
|
| 49 |
+
The weights are released under CC BY-NC 4.0 and the code under the Apache License 2.0.
|
|
|
|
|
|
|
| 50 |
|
| 51 |
## Citation
|
| 52 |
|
code/README.md
CHANGED
|
@@ -24,14 +24,6 @@
|
|
| 24 |
|
| 25 |
</div>
|
| 26 |
|
| 27 |
-
## Release
|
| 28 |
-
|
| 29 |
-
- [x] Model weights
|
| 30 |
-
- [x] Inference code
|
| 31 |
-
- [x] Evaluation code and benchmark rebuild scripts
|
| 32 |
-
- [x] AmodalDrive dataset
|
| 33 |
-
- [ ] arXiv paper
|
| 34 |
-
|
| 35 |
## Overview
|
| 36 |
|
| 37 |
AGT reconstructs a complete 4D Gaussian scene from a driving video whose every frame is partly hidden by the hood,
|
|
@@ -50,19 +42,6 @@ the dashboard, windshield reflections or watermarks.
|
|
| 50 |
<img src="assets/pipeline.webp" width="96%" alt="AGT pipeline">
|
| 51 |
</div>
|
| 52 |
|
| 53 |
-
The inference chain has six steps.
|
| 54 |
-
|
| 55 |
-
| Step | What it does | Module |
|
| 56 |
-
|---|---|---|
|
| 57 |
-
| 1 | Occluder mask: provided with the dataset, or generated for a new clip | `agt.masks`, `tools/make_masks.py` |
|
| 58 |
-
| 2 | Feed-forward reconstruction | `agt.recon.reconstruct` |
|
| 59 |
-
| 3 | Reliability map: where the scene was never observed | `agt.completion.reliability` |
|
| 60 |
-
| 4 | Frame-0 completion with FLUX.1-Fill and the AGT LoRA | `agt.completion.flux_fill` |
|
| 61 |
-
| 5 | Per-scene refinement | `agt.refine` |
|
| 62 |
-
| 6 | Rendering at any view and time | `agt.recon.reconstruct` |
|
| 63 |
-
|
| 64 |
-
`inference.py` runs the whole chain.
|
| 65 |
-
|
| 66 |
## Installation
|
| 67 |
|
| 68 |
Tested on Linux with CUDA 12 and one NVIDIA H200. The full chain peaks at about 36 GB of GPU memory in the
|
|
@@ -73,7 +52,7 @@ git clone https://github.com/MRBXCD/AGT.git
|
|
| 73 |
cd AGT
|
| 74 |
```
|
| 75 |
|
| 76 |
-
The
|
| 77 |
|
| 78 |
**Main environment** (reconstruction, refinement, evaluation):
|
| 79 |
|
|
@@ -86,7 +65,7 @@ pip install --no-build-isolation --no-binary gsplat gsplat==1.5.3
|
|
| 86 |
pip install --no-build-isolation third_party/dggt/third_party/pointops2
|
| 87 |
```
|
| 88 |
|
| 89 |
-
**Completion environment** (
|
| 90 |
|
| 91 |
```bash
|
| 92 |
conda create -n agt-completion python=3.12 -y
|
|
@@ -99,10 +78,9 @@ pip install -r requirements-completion.txt
|
|
| 99 |
<summary>Optional environments</summary>
|
| 100 |
|
| 101 |
- **Mask generation for your own clips**: SAM 3 and the Qwen3.5 verifier each run in their own environment. Install
|
| 102 |
-
SAM 3 by following its repository, and install `requirements-masks.txt` for the verifier. The verifier
|
| 103 |
-
`Qwen/Qwen3.5-35B-A3B` locally with vLLM
|
| 104 |
-
- **Benchmark rebuild**: `requirements-rebuild.txt`
|
| 105 |
-
scene statistics exactly.
|
| 106 |
|
| 107 |
</details>
|
| 108 |
|
|
@@ -121,14 +99,14 @@ mv checkpoints/tapip3d_final.pth checkpoints/tracking_model.pth
|
|
| 121 |
| `agt_reconstruction.safetensors` | feed-forward reconstruction model | 4.9 GB |
|
| 122 |
| `agt_completion_lora.safetensors` | LoRA for FLUX.1-Fill-dev used in the frame-0 completion | 0.7 GB |
|
| 123 |
|
| 124 |
-
|
| 125 |
-
FLUX.1-Fill-dev is gated: accept its license on the Hub and
|
| 126 |
-
|
| 127 |
-
|
| 128 |
|
| 129 |
| Model | Used for | Source |
|
| 130 |
|---|---|---|
|
| 131 |
-
| FLUX.1-Fill-dev | frame-0 completion | [black-forest-labs/FLUX.1-Fill-dev](https://huggingface.co/black-forest-labs/FLUX.1-Fill-dev)
|
| 132 |
| SegFormer-B5 Cityscapes | sky masks | [nvidia/segformer-b5-finetuned-cityscapes-1024-1024](https://huggingface.co/nvidia/segformer-b5-finetuned-cityscapes-1024-1024) |
|
| 133 |
| TAPIP3D | tracking of dynamic objects | [zbww/tapip3d](https://huggingface.co/zbww/tapip3d) |
|
| 134 |
| SAM 3 | occluder proposals for new clips | [facebookresearch/sam3](https://github.com/facebookresearch/sam3) |
|
|
@@ -148,9 +126,8 @@ python inference.py \
|
|
| 148 |
--completion-python "$(conda run -n agt-completion which python)"
|
| 149 |
```
|
| 150 |
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
third-party models.
|
| 154 |
|
| 155 |
## Inference on your own video
|
| 156 |
|
|
@@ -168,19 +145,14 @@ python inference.py --export work/export --mask-dir work/masks --out outputs/my_
|
|
| 168 |
--completion-python "$(conda run -n agt-completion which python)"
|
| 169 |
```
|
| 170 |
|
| 171 |
-
You can also provide your own mask instead of step 2. Use absolute paths when you run the steps of the chain by hand.
|
| 172 |
-
|
| 173 |
The output directory holds the rendered frames, depth and opacity of every clip, the completed first frame, and the
|
| 174 |
intermediate reliability maps.
|
| 175 |
|
| 176 |
## Evaluation
|
| 177 |
|
| 178 |
-
|
| 179 |
-
[Dataset](#dataset). After the rebuild:
|
| 180 |
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
**Feed-forward reconstruction only** (steps 1 and 2; colour, depth and region metrics):
|
| 184 |
|
| 185 |
```bash
|
| 186 |
python -m agt.recon.reconstruct render --inputs AmodalDrive/exports/test --out outputs/test_feedforward \
|
|
@@ -189,7 +161,7 @@ python eval/score.py --config configs/eval/test_waymo.json --data-root AmodalDri
|
|
| 189 |
--export AmodalDrive/exports/test --method outputs/test_feedforward --out scores/test_feedforward
|
| 190 |
```
|
| 191 |
|
| 192 |
-
**Full method** (
|
| 193 |
|
| 194 |
```bash
|
| 195 |
python inference.py --export AmodalDrive/exports/test --masks dataset --data-root AmodalDrive \
|
|
@@ -198,21 +170,20 @@ python eval/score.py --config configs/eval/test_waymo.json --data-root AmodalDri
|
|
| 198 |
--export AmodalDrive/exports/test --method outputs/test_full/final --out scores/test_full --tables A1 A2 B
|
| 199 |
```
|
| 200 |
|
| 201 |
-
`--clips ID ...` restricts `inference.py` to a subset of the export. The full method
|
| 202 |
-
|
| 203 |
-
(export it with `--split val`, partial protocol).
|
| 204 |
|
| 205 |
## Dataset
|
| 206 |
|
| 207 |
[AmodalDrive](https://huggingface.co/datasets/MRBSTUDIO/AmodalDrive) provides the occluder layers, the pairing
|
| 208 |
-
tables, the splits, the occluder masks and the example clips.
|
| 209 |
|
| 210 |
```bash
|
| 211 |
hf download MRBSTUDIO/AmodalDrive --repo-type dataset --local-dir AmodalDrive
|
| 212 |
```
|
| 213 |
|
| 214 |
-
|
| 215 |
-
|
| 216 |
|
| 217 |
```bash
|
| 218 |
# Scene preprocessing.
|
|
@@ -225,19 +196,15 @@ python tools/make_labels.py sky --data-root AmodalDrive --waymo-root WAYMO --spl
|
|
| 225 |
python tools/make_labels.py visibility --data-root AmodalDrive --dggt-checkpoint checkpoints/model_latest_waymo.pt \
|
| 226 |
--split val --split test
|
| 227 |
|
| 228 |
-
#
|
| 229 |
python tools/export_clips.py --data-root AmodalDrive --split val --out AmodalDrive/exports/val
|
| 230 |
python tools/export_clips.py --data-root AmodalDrive --split test --protocol full --out AmodalDrive/exports/test
|
| 231 |
```
|
| 232 |
|
| 233 |
-
`WAYMO` is the
|
| 234 |
-
`
|
| 235 |
-
checkpoint, downloaded from
|
| 236 |
[xiaomi-research/dggt](https://huggingface.co/xiaomi-research/dggt/resolve/main/model_latest_waymo.pt).
|
| 237 |
|
| 238 |
-
The composition is deterministic given the pairing tables and the layer files, so the rebuilt clips are identical
|
| 239 |
-
to ours.
|
| 240 |
-
|
| 241 |
## Code Structure
|
| 242 |
|
| 243 |
```text
|
|
@@ -286,5 +253,4 @@ This code builds on the following projects. We thank their authors.
|
|
| 286 |
|
| 287 |
- **Code**: Apache License 2.0, see `LICENSE`. Vendored third-party code keeps its own license, see `NOTICE` and
|
| 288 |
`THIRD_PARTY_NOTICES.md`.
|
| 289 |
-
- **Weights and dataset**: CC BY-NC 4.0.
|
| 290 |
-
from the Waymo Open Dataset, and the LoRA adapts FLUX.1-Fill-dev, so the terms of these sources also apply.
|
|
|
|
| 24 |
|
| 25 |
</div>
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
## Overview
|
| 28 |
|
| 29 |
AGT reconstructs a complete 4D Gaussian scene from a driving video whose every frame is partly hidden by the hood,
|
|
|
|
| 42 |
<img src="assets/pipeline.webp" width="96%" alt="AGT pipeline">
|
| 43 |
</div>
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
## Installation
|
| 46 |
|
| 47 |
Tested on Linux with CUDA 12 and one NVIDIA H200. The full chain peaks at about 36 GB of GPU memory in the
|
|
|
|
| 52 |
cd AGT
|
| 53 |
```
|
| 54 |
|
| 55 |
+
The frame-0 completion runs in its own environment.
|
| 56 |
|
| 57 |
**Main environment** (reconstruction, refinement, evaluation):
|
| 58 |
|
|
|
|
| 65 |
pip install --no-build-isolation third_party/dggt/third_party/pointops2
|
| 66 |
```
|
| 67 |
|
| 68 |
+
**Completion environment** (frame-0 completion with FLUX.1-Fill):
|
| 69 |
|
| 70 |
```bash
|
| 71 |
conda create -n agt-completion python=3.12 -y
|
|
|
|
| 78 |
<summary>Optional environments</summary>
|
| 79 |
|
| 80 |
- **Mask generation for your own clips**: SAM 3 and the Qwen3.5 verifier each run in their own environment. Install
|
| 81 |
+
SAM 3 by following its repository, and install `requirements-masks.txt` for the verifier. The verifier runs
|
| 82 |
+
`Qwen/Qwen3.5-35B-A3B` locally with vLLM on one GPU with about 80 GB of memory.
|
| 83 |
+
- **Benchmark rebuild**: `requirements-rebuild.txt` and a static build of ffmpeg 7.0.2.
|
|
|
|
| 84 |
|
| 85 |
</details>
|
| 86 |
|
|
|
|
| 99 |
| `agt_reconstruction.safetensors` | feed-forward reconstruction model | 4.9 GB |
|
| 100 |
| `agt_completion_lora.safetensors` | LoRA for FLUX.1-Fill-dev used in the frame-0 completion | 0.7 GB |
|
| 101 |
|
| 102 |
+
FLUX.1-Fill-dev and SegFormer are loaded from the Hugging Face Hub, or from local copies given with `--flux` and
|
| 103 |
+
`--segformer`. FLUX.1-Fill-dev is gated: accept its license on the Hub and log in with `hf auth login`. The first run
|
| 104 |
+
downloads the CoTracker3 feature encoder used inside TAPIP3D through `torch.hub` and the LPIPS network weights
|
| 105 |
+
through torchvision, both cached under `$TORCH_HOME`.
|
| 106 |
|
| 107 |
| Model | Used for | Source |
|
| 108 |
|---|---|---|
|
| 109 |
+
| FLUX.1-Fill-dev | frame-0 completion | [black-forest-labs/FLUX.1-Fill-dev](https://huggingface.co/black-forest-labs/FLUX.1-Fill-dev) |
|
| 110 |
| SegFormer-B5 Cityscapes | sky masks | [nvidia/segformer-b5-finetuned-cityscapes-1024-1024](https://huggingface.co/nvidia/segformer-b5-finetuned-cityscapes-1024-1024) |
|
| 111 |
| TAPIP3D | tracking of dynamic objects | [zbww/tapip3d](https://huggingface.co/zbww/tapip3d) |
|
| 112 |
| SAM 3 | occluder proposals for new clips | [facebookresearch/sam3](https://github.com/facebookresearch/sam3) |
|
|
|
|
| 126 |
--completion-python "$(conda run -n agt-completion which python)"
|
| 127 |
```
|
| 128 |
|
| 129 |
+
Add `--reconstruction-only` to stop after the feed-forward reconstruction; this needs only the main environment.
|
| 130 |
+
Outputs are rendered at 518x294.
|
|
|
|
| 131 |
|
| 132 |
## Inference on your own video
|
| 133 |
|
|
|
|
| 145 |
--completion-python "$(conda run -n agt-completion which python)"
|
| 146 |
```
|
| 147 |
|
|
|
|
|
|
|
| 148 |
The output directory holds the rendered frames, depth and opacity of every clip, the completed first frame, and the
|
| 149 |
intermediate reliability maps.
|
| 150 |
|
| 151 |
## Evaluation
|
| 152 |
|
| 153 |
+
Build the benchmark first, see [Dataset](#dataset). Both commands use the precomputed occluder masks of AmodalDrive.
|
|
|
|
| 154 |
|
| 155 |
+
**Feed-forward reconstruction** (colour, depth and region metrics):
|
|
|
|
|
|
|
| 156 |
|
| 157 |
```bash
|
| 158 |
python -m agt.recon.reconstruct render --inputs AmodalDrive/exports/test --out outputs/test_feedforward \
|
|
|
|
| 161 |
--export AmodalDrive/exports/test --method outputs/test_feedforward --out scores/test_feedforward
|
| 162 |
```
|
| 163 |
|
| 164 |
+
**Full method** (the method directory is `<out>/final`):
|
| 165 |
|
| 166 |
```bash
|
| 167 |
python inference.py --export AmodalDrive/exports/test --masks dataset --data-root AmodalDrive \
|
|
|
|
| 170 |
--export AmodalDrive/exports/test --method outputs/test_full/final --out scores/test_full --tables A1 A2 B
|
| 171 |
```
|
| 172 |
|
| 173 |
+
`--clips ID ...` restricts `inference.py` to a subset of the export. The full method is scored on the colour and
|
| 174 |
+
region tables (`--tables A1 A2 B`). `configs/eval/val_waymo.json` scores the validation export (`--split val`).
|
|
|
|
| 175 |
|
| 176 |
## Dataset
|
| 177 |
|
| 178 |
[AmodalDrive](https://huggingface.co/datasets/MRBSTUDIO/AmodalDrive) provides the occluder layers, the pairing
|
| 179 |
+
tables, the splits, the occluder masks and the example clips.
|
| 180 |
|
| 181 |
```bash
|
| 182 |
hf download MRBSTUDIO/AmodalDrive --repo-type dataset --local-dir AmodalDrive
|
| 183 |
```
|
| 184 |
|
| 185 |
+
Download the [Waymo Open Dataset](https://waymo.com/open/) v2.0.1, then run the scripts below to build the composed
|
| 186 |
+
validation and test data:
|
| 187 |
|
| 188 |
```bash
|
| 189 |
# Scene preprocessing.
|
|
|
|
| 196 |
python tools/make_labels.py visibility --data-root AmodalDrive --dggt-checkpoint checkpoints/model_latest_waymo.pt \
|
| 197 |
--split val --split test
|
| 198 |
|
| 199 |
+
# Composition and clip export.
|
| 200 |
python tools/export_clips.py --data-root AmodalDrive --split val --out AmodalDrive/exports/val
|
| 201 |
python tools/export_clips.py --data-root AmodalDrive --split test --protocol full --out AmodalDrive/exports/test
|
| 202 |
```
|
| 203 |
|
| 204 |
+
`WAYMO` is the parquet download (`<split>/<component>/<segment>.parquet`, splits `validation`, `testing` and
|
| 205 |
+
`testing_location`). The visibility label uses the depth of the released DGGT Waymo checkpoint, downloaded from
|
|
|
|
| 206 |
[xiaomi-research/dggt](https://huggingface.co/xiaomi-research/dggt/resolve/main/model_latest_waymo.pt).
|
| 207 |
|
|
|
|
|
|
|
|
|
|
| 208 |
## Code Structure
|
| 209 |
|
| 210 |
```text
|
|
|
|
| 253 |
|
| 254 |
- **Code**: Apache License 2.0, see `LICENSE`. Vendored third-party code keeps its own license, see `NOTICE` and
|
| 255 |
`THIRD_PARTY_NOTICES.md`.
|
| 256 |
+
- **Weights and dataset**: CC BY-NC 4.0.
|
|
|