Skip to content

Commit 8829d64

Browse files
authored
Add LiDAR Diffusion, create LiDAR generation report and add visualization code. (#63)
1 parent d35d325 commit 8829d64

28 files changed

Lines changed: 9538 additions & 308 deletions

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
path = externals/waymo-open-dataset
99
url = https://github.com/waymo-research/waymo-open-dataset.git
1010
[submodule "externals/dvgo_cuda"]
11-
path = externals/dvgo_cuda
12-
url = https://github.com/sunset1995/DirectVoxGO.git
11+
path = externals/dvgo_cuda
12+
url = https://github.com/sunset1995/DirectVoxGO.git

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,13 @@ You can download our pre-trained tokenzier and generation model in the following
8989
| :-: | :-: | :-: | :-: |
9090
| VQVAE | nuscene, waymo, argoverse | [Config](configs/lidar/lidar_vqvae_nwa.json) | [checkpoint](https://huggingface.co/wzhgba/opendwm-models/resolve/main/lidar_vqvae_nwa_60k.pth?download=true), [blank code](https://huggingface.co/wzhgba/opendwm-models/resolve/main/lidar_vqvae_nwa_60k_blank_code.pkl?download=true) |
9191
| | nuscene, waymo, argoverse, kitti360 | [Config](configs/lidar/lidar_vqvae_nwak.json) | [checkpoint](https://huggingface.co/wzhgba/opendwm-models/resolve/main/lidar_vqvae_nwak_80k.pth?download=true), [blank code](https://huggingface.co/wzhgba/opendwm-models/resolve/main/lidar_vqvae_nwak_80k_blank_code.pkl?download=true) |
92+
| VAE | nuscene, waymo, argoverse, kitti360 | [Config](configs/lidar/lidar_vae_nwak.json) | [checkpoint](https://huggingface.co/wzhgba/opendwm-models/resolve/main/lidar_vae_nwak_45k.pth?download=true) |
9293
| MaskGIT | nuscene | [Config](configs/lidar/lidar_maskgit_layout_ns.json) | [ckpt_with_vqvae_nwa](https://huggingface.co/wzhgba/opendwm-models/resolve/main/lidar_maskgit_nusc_150k.pth?download=true) <br> [ckpt_with_vqvae_nwak](https://huggingface.co/wzhgba/opendwm-models/resolve/main/lidar_maskgit_vq80k_layout_ns_120k.pth?download=true) |
9394
| | kitti360 | [Config](configs/lidar/lidar_maskgit_vq80k_layout_kt.json) | [checkpoint](https://huggingface.co/wzhgba/opendwm-models/resolve/main/lidar_maskgit_vq80k_layout_kt_120k.pth?download=true)|
9495
| Temporal MaskGIT | nuscene | [Config](configs/lidar/lidar_maskgit_temporal_vq80k_layout_ns.json) | [checkpoint](https://huggingface.co/wzhgba/opendwm-models/resolve/main/lidar_maskgit_temporal_vq80k_layout_kt_150k.pth?download=true) |
9596
| | kitti360 | [Config](configs/lidar/lidar_maskgit_temporal_vq80k_layout_kt.json) | [checkpoint](https://huggingface.co/wzhgba/opendwm-models/resolve/main/lidar_maskgit_temporal_vq80k_layout_ns_150k.pth?download=true)|
97+
| Temporal DiT | nuscene | [Config](configs/lidar/lidar_diffusion_dit_temporal_ns.json) | [checkpoint](https://huggingface.co/wzhgba/opendwm-models/resolve/main/lidar_dit_temporal_layout_ns_150k.pth?download=true) |
98+
| | kitti360 | [Config](configs/lidar/lidar_diffusion_dit_temporal_kt.json) | [checkpoint](https://huggingface.co/wzhgba/opendwm-models/resolve/main/lidar_dit_temporal_layout_kt_150k.pth?download=true)|
9699
## Examples
97100

98101
### T2I, T2V generation with CTSD pipeline
@@ -130,6 +133,16 @@ PYTHONPATH=src python src/dwm/preview.py -c examples/lidar_maskgit_preview.json
130133
PYTHONPATH=src python3 -m torch.distributed.run --nnodes 1 --nproc-per-node 2 --node-rank 0 --master-addr 127.0.0.1 --master-port 29000 src/dwm/preview.py -c examples/lidar_maskgit_temporal_preview.json -o output/temporal_maskgit
131134
```
132135

136+
### Layout conditioned LiDAR generation with Diffusion pipeline
137+
138+
1. Download LiDAR VAE and LiDAR Diffusion generation model checkpoint.
139+
2. Prepare the dataset ( [nuscenes_scene-0627_lidar_package.zip](https://huggingface.co/datasets/wzhgba/opendwm-data/resolve/main/nuscenes_scene-0627_lidar_package.zip?download=true) ).
140+
3. Modify the values of `json_file`, `autoencoder_ckpt_path`, and `diffusion_model_ckpt_path` to the paths of your dataset and checkpoints in the json file `examples/lidar_diffusion_temporal_preview.json`.
141+
4. Run the following command to generate LiDAR data according to the reference frame autoregressively.
142+
143+
```bash
144+
PYTHONPATH=src python3 -m torch.distributed.run --nnodes 1 --nproc-per-node 2 --node-rank 0 --master-addr 127.0.0.1 --master-port 29000 src/dwm/preview.py -c examples/lidar_diffusion_temporal_preview.json -o output/temporal_diffusion
145+
```
133146

134147
## Train
135148

0 commit comments

Comments
 (0)