Update the project page and code links
Browse files- README.md +2 -2
- code/README.md +2 -2
- code/THIRD_PARTY_NOTICES.md +1 -1
- code/agt/refine/refine.py +4 -4
README.md
CHANGED
|
@@ -19,8 +19,8 @@ AGT reconstructs a complete 4D Gaussian scene from a driving video whose every f
|
|
| 19 |
the dashboard, windshield reflections or watermarks. It reconstructs what some frame observes in a single forward
|
| 20 |
pass, and generates only what no frame observes.
|
| 21 |
|
| 22 |
-
- Project page: https://
|
| 23 |
-
- Code: https://github.com/
|
| 24 |
- Dataset: https://huggingface.co/datasets/MRBSTUDIO/AmodalDrive
|
| 25 |
- Paper: arXiv, coming soon
|
| 26 |
|
|
|
|
| 19 |
the dashboard, windshield reflections or watermarks. It reconstructs what some frame observes in a single forward
|
| 20 |
pass, and generates only what no frame observes.
|
| 21 |
|
| 22 |
+
- Project page: https://agt4d.github.io/
|
| 23 |
+
- Code: https://github.com/phai-lab/AGT (a copy of the code is in the `code/` folder of this repository)
|
| 24 |
- Dataset: https://huggingface.co/datasets/MRBSTUDIO/AmodalDrive
|
| 25 |
- Paper: arXiv, coming soon
|
| 26 |
|
code/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
# AGT: Amodal 4D Reconstruction from Obstructed Driving Videos
|
| 4 |
|
| 5 |
[](#citation)
|
| 6 |
-
[](https://
|
| 7 |
[](https://huggingface.co/MRBSTUDIO/AGT)
|
| 8 |
[](https://huggingface.co/datasets/MRBSTUDIO/AmodalDrive)
|
| 9 |
|
|
@@ -45,7 +45,7 @@ the dashboard, windshield reflections or watermarks.
|
|
| 45 |
## Installation
|
| 46 |
|
| 47 |
```bash
|
| 48 |
-
git clone https://github.com/
|
| 49 |
cd AGT
|
| 50 |
```
|
| 51 |
|
|
|
|
| 3 |
# AGT: Amodal 4D Reconstruction from Obstructed Driving Videos
|
| 4 |
|
| 5 |
[](#citation)
|
| 6 |
+
[](https://agt4d.github.io/)
|
| 7 |
[](https://huggingface.co/MRBSTUDIO/AGT)
|
| 8 |
[](https://huggingface.co/datasets/MRBSTUDIO/AmodalDrive)
|
| 9 |
|
|
|
|
| 45 |
## Installation
|
| 46 |
|
| 47 |
```bash
|
| 48 |
+
git clone https://github.com/phai-lab/AGT.git
|
| 49 |
cd AGT
|
| 50 |
```
|
| 51 |
|
code/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -33,7 +33,7 @@ SegFormer sky masks of `datasets/tools/extract_masks.py` (`agt/recon/sky.py`).
|
|
| 33 |
|
| 34 |
| Model | Used for | Source |
|
| 35 |
|---|---|---|
|
| 36 |
-
| FLUX.1-Fill-dev |
|
| 37 |
| SegFormer-B5 Cityscapes | sky masks | https://huggingface.co/nvidia/segformer-b5-finetuned-cityscapes-1024-1024 (NVIDIA licence) |
|
| 38 |
| TAPIP3D checkpoint | dynamic-object tracking between input frames | https://huggingface.co/zbww/tapip3d (`tapip3d_final.pth`) |
|
| 39 |
| CoTracker3 (torch.hub) | feature encoder initialisation inside TAPIP3D | https://github.com/facebookresearch/co-tracker |
|
|
|
|
| 33 |
|
| 34 |
| Model | Used for | Source |
|
| 35 |
|---|---|---|
|
| 36 |
+
| FLUX.1-Fill-dev | generative completion | https://huggingface.co/black-forest-labs/FLUX.1-Fill-dev (FLUX.1 [dev] Non-Commercial License) |
|
| 37 |
| SegFormer-B5 Cityscapes | sky masks | https://huggingface.co/nvidia/segformer-b5-finetuned-cityscapes-1024-1024 (NVIDIA licence) |
|
| 38 |
| TAPIP3D checkpoint | dynamic-object tracking between input frames | https://huggingface.co/zbww/tapip3d (`tapip3d_final.pth`) |
|
| 39 |
| CoTracker3 (torch.hub) | feature encoder initialisation inside TAPIP3D | https://github.com/facebookresearch/co-tracker |
|
code/agt/refine/refine.py
CHANGED
|
@@ -117,7 +117,7 @@ def run_clip(cid, a, cfg, lpips_fn, device):
|
|
| 117 |
with torch.no_grad():
|
| 118 |
views = [scene.render(j, colors, theta)[0].clamp(0, 1).float().cpu().numpy() for j in context]
|
| 119 |
write_handoff(work / 'views' / f'{cid}.npz', np.stack(views), repair[list(context)], context,
|
| 120 |
-
dict(clip_id=cid, content='renders of the input frames
|
| 121 |
(work / 'params').mkdir(parents=True, exist_ok=True)
|
| 122 |
torch.save(dict(colors=colors.cpu(), theta=theta.cpu(), den=scene.den.cpu(), is_u=is_u.cpu()), work / 'params' / f'{cid}.pt')
|
| 123 |
diag.update(seconds=seconds, frozen=fz, loss_first=losses[0], loss_last=losses[-1])
|
|
@@ -168,14 +168,14 @@ def _clips(a):
|
|
| 168 |
def main(argv=None):
|
| 169 |
p = argparse.ArgumentParser(prog='agt.refine.refine')
|
| 170 |
sub = p.add_subparsers(dest='cmd', required=True)
|
| 171 |
-
s = sub.add_parser('run', help='
|
| 172 |
s.add_argument('--capture', required=True, help='capture of the first pass')
|
| 173 |
-
s.add_argument('--handoff', required=True, help='
|
| 174 |
s.add_argument('--rel', required=True, help='reliability maps')
|
| 175 |
s.add_argument('--work', required=True, help='refinement directory (views/, params/, diag/)')
|
| 176 |
s.add_argument('--config', default=str(CONFIG))
|
| 177 |
s.add_argument('--clips', nargs='+')
|
| 178 |
-
s = sub.add_parser('final', help='
|
| 179 |
s.add_argument('--capture', required=True, help='capture with --repaired <work>/views')
|
| 180 |
s.add_argument('--work', required=True)
|
| 181 |
s.add_argument('--out', required=True, help='final render directory')
|
|
|
|
| 117 |
with torch.no_grad():
|
| 118 |
views = [scene.render(j, colors, theta)[0].clamp(0, 1).float().cpu().numpy() for j in context]
|
| 119 |
write_handoff(work / 'views' / f'{cid}.npz', np.stack(views), repair[list(context)], context,
|
| 120 |
+
dict(clip_id=cid, content='renders of the input frames after scene optimization', tau=cfg['tau']))
|
| 121 |
(work / 'params').mkdir(parents=True, exist_ok=True)
|
| 122 |
torch.save(dict(colors=colors.cpu(), theta=theta.cpu(), den=scene.den.cpu(), is_u=is_u.cpu()), work / 'params' / f'{cid}.pt')
|
| 123 |
diag.update(seconds=seconds, frozen=fz, loss_first=losses[0], loss_last=losses[-1])
|
|
|
|
| 168 |
def main(argv=None):
|
| 169 |
p = argparse.ArgumentParser(prog='agt.refine.refine')
|
| 170 |
sub = p.add_subparsers(dest='cmd', required=True)
|
| 171 |
+
s = sub.add_parser('run', help='scene optimization on the first capture; writes the input-frame renders')
|
| 172 |
s.add_argument('--capture', required=True, help='capture of the first pass')
|
| 173 |
+
s.add_argument('--handoff', required=True, help='output of the generative completion (agt.completion.flux_fill)')
|
| 174 |
s.add_argument('--rel', required=True, help='reliability maps')
|
| 175 |
s.add_argument('--work', required=True, help='refinement directory (views/, params/, diag/)')
|
| 176 |
s.add_argument('--config', default=str(CONFIG))
|
| 177 |
s.add_argument('--clips', nargs='+')
|
| 178 |
+
s = sub.add_parser('final', help='apply the optimized Gaussians to the second capture and render')
|
| 179 |
s.add_argument('--capture', required=True, help='capture with --repaired <work>/views')
|
| 180 |
s.add_argument('--work', required=True)
|
| 181 |
s.add_argument('--out', required=True, help='final render directory')
|