hongxiaoy commited on
Commit
faa2674
·
verified ·
1 Parent(s): 84e1598

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +102 -3
README.md CHANGED
@@ -1,3 +1,102 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+
5
+ # Preparing ISO
6
+
7
+ ## Datasets
8
+
9
+ We provide the OccScanNet dataset files [here](https://huggingface.co/datasets/hongxiaoy/OccScanNet/tree/main), but you should agree the term of use of *ScanNet*, *CompleteScanNet* dataset.
10
+
11
+ For a simplified way to prepare the dataset, you just download the `preprocessed_data` to `ISO/data/occscannet` as `gathered_data` and download the `posed_images` to `ISO/data/scannet`.
12
+
13
+ The following is the complete dataset generating process.
14
+
15
+ ### OccScanNet
16
+
17
+ 1. Clone the official MMDetection3D repository.
18
+
19
+ ```bash
20
+ git clone https://github.com/open-mmlab/mmdetection3d.git ISO
21
+ ```
22
+
23
+ 2. Swith to `v1.3.0` version.
24
+
25
+ ```bash
26
+ cd ISO
27
+ git checkout v1.3.0
28
+ ```
29
+
30
+ 3. Download the *ScanNet* dataset following [instructions](https://github.com/open-mmlab/mmdetection3d/tree/v1.3.0/data/scannet) and place `scans` directory as `ISO/data/scannet/scans`.
31
+
32
+ > :bulb: Note
33
+ >
34
+ > Recommend you create a `posed_images` directory at data disk and link the `scans` directory and `posed_images` directory to `data/scannet`, then run the following command.
35
+
36
+ 4. In this directory, extract RGB image with poses by running
37
+
38
+ ```bash
39
+ python extract_posed_images.py --max-images-per-scene 100
40
+ ```
41
+
42
+ > :bulb: Note
43
+ >
44
+ > Add `--max-images-per-scene -1` to disable limiting number of images per scene. ScanNet scenes contain up to 5000+ frames per each. After extraction, all the .jpg images require 2 Tb disk space. The recommended 300 images per scene require less then 100 Gb. For example multi-view 3d detector ImVoxelNet samples 50 and 100 images per training and test scene.
45
+
46
+ Then obtained the following directory structure.
47
+
48
+ ```
49
+ scannet
50
+ ├── meta_data
51
+ ├── posed_images
52
+ │ ├── scenexxxx_xx
53
+ │ │ ├── xxxxxx.txt
54
+ │ │ ├── xxxxxx.jpg
55
+ │ │ ├── intrinsic.txt
56
+ ├── scans
57
+ ├── batch_load_scannet_data.py
58
+ ├── extract_posed_images.py
59
+ ├── load_scannet_data.py
60
+ ├── README.md
61
+ ├── scannet_utils.py
62
+ ```
63
+
64
+ 5. Download original *CompleteScanNet*
65
+
66
+ The ground truth labels we used are from [SCFusion](https://github.com/ShunChengWu/SCFusion#generate-gt). Ground truth is available at [here](https://github.com/ShunChengWu/SCFusion#generate-gt).
67
+
68
+ The ground truth label should be placed as `ISO/data/completescannet/CompleteScanNet_GT`.
69
+
70
+ 6. Reformulate *CompleteScanNet*
71
+
72
+ ```bash
73
+ python preprocess_gt.py
74
+ ```
75
+
76
+ The resulted directory is `ISO/data/completescannet/CompleteScanNet_preprocessed_GT`.
77
+
78
+ Now, we obtained the following directory structure.
79
+
80
+ ```
81
+ completescannet
82
+ ├── CompleteScanNet_GT
83
+ │ ├── scenexxxx_xx.ply
84
+ ├── CompleteScanNet_preprocessed_GT
85
+ │ ├── scenexxxx_xx.npy
86
+ ├── preprocess_gt.py
87
+ ├── visualization.py
88
+ ```
89
+
90
+ 7. Create the *OccScanNet*
91
+
92
+ First, you should create a directories with name `preprocessed_voxels` and `gathered_data` in data disk and link them to the `ISO/data/occscannet`.
93
+
94
+ ```bash
95
+ python generate_gt.py --step [1, 2, 3, 4, 5]
96
+ ```
97
+
98
+ Step can be indicated sequentially to make sure each step run correctly.
99
+
100
+ ### OccScanNet-mini
101
+
102
+ The scenes we used in OccScanNet-mini is reflected in the config file.