You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-7
Original file line number
Diff line number
Diff line change
@@ -25,28 +25,48 @@ We convert [ScanNet](http://www.scan-net.org/) data to *.tfrecords* files for tr
25
25
### Training
26
26
To train the network from the pretrained DeepLab network, please first download the DeepLab model [here](https://github.com/DrSleep/tensorflow-deeplab-resnet) (under the Caffe to TensorFlow conversion), and then run the following command.
27
27
```bash
28
-
python train_planenet.py --restore=0 --modelPathDeepLab="path to the deep lab model" --rootFolder="folder which contains tfrecords files"
28
+
python train_planenet.py --restore=0 --modelPathDeepLab="path to the deep lab model" --dataFolder="folder which contains tfrecords files"
29
29
```
30
30
31
31
### Evaluation
32
32
Please first download our trained network from [here](https://mega.nz/#!sjpT2DiQ!Uo-6hxyldmtnPoKk3TTdUHKZADRGy6nIPlmAeVzJs_8) and put the uncompressed folder under ./checkpoint folder.
33
33
34
34
To evaluate the performance against existing methods, please run:
35
35
```bash
36
-
python evaluate.py --rootFolder="folder which contains tfrecords files"
36
+
python evaluate.py --dataFolder="folder which contains tfrecords files"
37
37
```
38
38
39
39
### Applications
40
-
Please first download our trained network (see [Evaluation](### Evaluation) section for details). Script *predict.py*and *predict_custom.py* are for ScanNet testing images and custom images respectively. To predict and visualize ScanNet testing images, please run:
40
+
Please first download our trained network (see [Evaluation](### Evaluation) section for details). Script *predict.py*predicts and visualizes custom images (if "customImageFolder" is specified) or ScanNet testing images (if "dataFolder" is specified).
41
41
42
42
```bash
43
-
python predict.py --rootFolder="folder which contains tfrecords files" [--startIndex=0] [--numImages=30]
43
+
python predict.py --customImageFolder="folder which contains custom images"
44
+
python predict.py --dataFolder="folder which contains tfrecords files" [--startIndex=0] [--numImages=30]
44
45
```
45
46
46
-
This will generate visualization images, a webpage containing all the visualization, as well as cache files under folder "predict". Similarly, the following command can be used to predict and visualize custom images:
47
+
This will generate visualization images, a webpage containing all the visualization, as well as cache files under folder "predict/".
47
48
49
+
Same commands can be used for various applications by providing optional arguments, *applicationType*, *imageIndex*, *textureImageFilename*, and some application-specific arguments. The following commands are used to generate visualizations in the submission. (The TV application needs more manual specification for better visualization.)
Note that, the above script generate image sequences for video applications. Please run the following command under the image sequence folder to generate a video:
0 commit comments