Skip to content

Commit 6a87e73

Browse files
committed
docs(env): update dataprocess env
* mkl for av2 torch * remove open3d since it cause hard conflict. * remove evalai... * update README with typo.
1 parent 1aeaf3c commit 6a87e73

File tree

5 files changed

+14
-15
lines changed

5 files changed

+14
-15
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ WORKDIR /home/kin/workspace/OpenSceneFlow
3030
RUN apt-get update && apt-get install libgl1 -y
3131
# need read the gpu device info to compile the cuda extension
3232
RUN cd /home/kin/workspace/OpenSceneFlow && /opt/conda/bin/mamba env create -f environment.yaml
33-
RUN cd /home/kin/workspace/OpenSceneFlow/assets/cuda/mmcv && /opt/conda/envs/opensf/bin/python ./setup.py install
34-
RUN cd /home/kin/workspace/OpenSceneFlow/assets/cuda/chamfer3D && /opt/conda/envs/opensf/bin/python ./setup.py install
33+
# environment for dataprocessing inlucdes data-api
34+
RUN cd /home/kin/workspace/OpenSceneFlow && /opt/conda/bin/mamba env create -f envsftool.yaml

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ International Conference on Robotics and Automation (**ICRA**) 2024
3232
[ Backbone ] [ Supervised ] - [ [arXiv](https://arxiv.org/abs/2401.16122) ] [ [Project](https://github.com/KTH-RPL/DeFlow) ] → [here](#deflow)
3333

3434
🎁 <b>One repository, All methods!</b>
35-
Additionally, *OpenSceneFlow* integrates following excellent works: [ICLR'24 ZeroFlow](https://arxiv.org/abs/2305.10424), [ICCV'23 FastNSF](https://arxiv.org/abs/2304.09121), [RA-L'21 FastFlow](https://arxiv.org/abs/2103.01306), [NeurIPS'21 NSFP](https://arxiv.org/abs/2111.01253). (More on the way...)
35+
Additionally, *OpenSceneFlow* integrates following excellent works: [ICLR'24 ZeroFlow](https://arxiv.org/abs/2305.10424), [ICCV'23 FastNSF](https://arxiv.org/abs/2304.09121), [RA-L'21 FastFlow3D](https://arxiv.org/abs/2103.01306), [NeurIPS'21 NSFP](https://arxiv.org/abs/2111.01253). (More on the way...)
3636

3737
<details> <summary> Summary of them:</summary>
3838

39-
- [x] [FastFlow3d](https://arxiv.org/abs/2103.01306): RA-L 2021, a basic backbone model.
39+
- [x] [FastFlow3D](https://arxiv.org/abs/2103.01306): RA-L 2021, a basic backbone model.
4040
- [x] [ZeroFlow](https://arxiv.org/abs/2305.10424): ICLR 2024, their pre-trained weight can covert into our format easily through [the script](tools/zerof2ours.py).
4141
- [ ] [NSFP](https://arxiv.org/abs/2111.01253): NeurIPS 2021, faster 3x than original version because of [our CUDA speed up](assets/cuda/README.md), same (slightly better) performance. Done coding, public after review.
42-
- [ ] [FastNSF](https://arxiv.org/abs/2304.09121): ICCV 2023. Done coding, public after review.
43-
- [ ] [ICP-Flow](https://arxiv.org/abs/2402.17351): CVPR 2024. Done coding, public after review.
42+
- [ ] [FastNSF](https://arxiv.org/abs/2304.09121): ICCV 2023. SSL optimization-based. Done coding, public after review.
43+
- [ ] [ICP-Flow](https://arxiv.org/abs/2402.17351): CVPR 2024. SSL optimization-based. Done coding, public after review.
4444

4545
</details>
4646

dataprocess/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ We've updated the process dataset for:
1212
- [x] Waymo: check [here](#waymo-dataset). The process script was involved from [SeFlow](https://github.com/KTH-RPL/SeFlow).
1313
- [ ] nuScenes: done coding, public after review. Will be involved later by another paper.
1414

15-
If you want to use all datasets above, there is a specific process environment in [envsftool.yaml](../envsftool.yaml) to install all the necessary packages. As Waymo package have different configuration and conflict with the main environment. Setup through the following command:
15+
If you want to **use all datasets above**, there is a **specific environment** in [envsftool.yaml](../envsftool.yaml) to install all the necessary packages. As Waymo package have different configuration and conflict with the main environment. Setup through the following command:
1616

1717
```bash
1818
conda env create -f envsftool.yaml
@@ -90,16 +90,16 @@ gsutil -m cp -r "gs://waymo_open_dataset_scene_flow/valid" .
9090
gsutil -m cp -r "gs://waymo_open_dataset_scene_flow/train" .
9191
```
9292

93-
And flowlabel data can be downloaded here with ground segmentation by HDMap follow the same style of [ZeroFlow](https://github.com/kylevedder/zeroflow/blob/master/data_prep_scripts/waymo/extract_flow_and_remove_ground.py).
94-
95-
You can download the processed map folder here to free yourself downloaded another type of data again:
93+
For ground segmentation, we follow the same style of [ZeroFlow](https://github.com/kylevedder/zeroflow/blob/master/data_prep_scripts/waymo/extract_flow_and_remove_ground.py) to have HDMap. You can download the processed map by running:
9694

9795
```bash
9896
wget https://huggingface.co/kin-zhang/OpenSceneFlow/resolve/main/waymo_map.tar.gz
9997
tar -xvf waymo_map.tar.gz -C /home/kin/data/waymo/flowlabel
10098
# you will see there is a `map` folder in the `flowlabel` folder now.
10199
```
102100

101+
<!-- Another way to have ground mask is to use [linefit](https://github.com/Kin-Zhang/linefit) to generate the ground mask without effort. -->
102+
103103
#### Dataset frames
104104

105105
| Dataset | # Total Scene | # Total Frames |

dataprocess/extract_waymo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def process_logs(data_dir: Path, map_dir: Path, output_dir: Path, nproc: int):
405405

406406
def main(
407407
flow_data_dir: str = "/home/kin/data/waymo/flowlabel",
408-
mode: str = "test",
408+
mode: str = "valid",
409409
map_dir: str = "/home/kin/data/waymo/flowlabel/map",
410410
output_dir: str ="/home/kin/data/waymo/flowlabel/preprocess",
411411
nproc: int = (multiprocessing.cpu_count() - 1),

envsftool.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dependencies:
66
- python=3.8
77
- pytorch::pytorch=2.0.0
88
- pytorch::torchvision
9+
- mkl==2024.0.0
910
- numba
1011
- numpy==1.22
1112
- pandas
@@ -20,13 +21,11 @@ dependencies:
2021
- nuscenes-devkit
2122
- av2==0.2.1
2223
- waymo-open-dataset-tf-2.11.0==1.5.0
23-
- open3d==0.18.0
2424
- linefit
2525
- dztimer
2626
- dufomap==1.0.0
27-
- evalai
2827

2928
# Reason about the version fixed:
3029
# numpy==1.22: package conflicts, need numpy higher or same 1.22
31-
# open3d==0.18.0: because 0.17.0 have bug on set the view json file
32-
# dufomap==1.0.0: in case later updating may not compatible with the code.
30+
# dufomap==1.0.0: in case later updating may not compatible with the code.
31+
# Pleaase check dataprocess/README.md for more details.

0 commit comments

Comments
 (0)