KPConv-PyTorch/doc/scene_segmentation_guide.md

38 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2020-04-27 22:20:35 +00:00
## Scene Segmentation on S3DIS
### Data
2020-04-27 23:01:17 +00:00
We consider our experiment folder is located at `XXXX/Experiments/KPConv-PyTorch`. And we use a common Data folder
loacated at `XXXX/Data`. Therefore the relative path to the Data folder is `./Data`.
2020-04-27 22:20:35 +00:00
2020-04-27 23:01:17 +00:00
S3DIS dataset can be downloaded <a href="https://goo.gl/forms/4SoGp4KtH1jfRqEj2">here (4.8 GB)</a>.
Download the file named `Stanford3dDataset_v1.2.zip`, uncompress the data and move it to `./Data/S3DIS`.
2020-04-27 22:20:35 +00:00
2020-04-27 23:01:17 +00:00
N.B. If you want to place your data anywhere else, you just have to change the variable
`self.path` of `S3DISDataset` class ([here](https://github.com/HuguesTHOMAS/KPConv-PyTorch/blob/afa18c92f00c6ed771b61cb08b285d2f93446ea4/datasets/S3DIS.py#L88)).
2020-04-27 22:20:35 +00:00
### Training
Simply run the following script to start the training:
2020-04-27 23:01:17 +00:00
python3 training_S3DIS.py
2020-04-27 22:20:35 +00:00
2020-04-27 23:01:17 +00:00
Similarly to ModelNet40 training, the parameters can be modified in a configuration subclass called `S3DISConfig`, and the first run of this script might take some time to precompute dataset structures.
2020-04-27 22:20:35 +00:00
### Plot a logged training
2020-04-27 22:55:39 +00:00
When you start a new training, it is saved in a `results` folder. A dated log folder will be created, containing many information including loss values, validation metrics, model checkpoints, etc.
2020-04-27 22:20:35 +00:00
In `plot_convergence.py`, you will find detailed comments explaining how to choose which training log you want to plot. Follow them and then run the script :
python3 plot_convergence.py
### Test the trained model
The test script is the same for all models (segmentation or classification). In `test_any_model.py`, you will find detailed comments explaining how to choose which logged trained model you want to test. Follow them and then run the script :
python3 test_any_model.py