Skip to content

Commit

Permalink
Code refactoring, remove examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mpelchat04 committed Aug 20, 2020
1 parent a976c74 commit 56fd2fd
Show file tree
Hide file tree
Showing 359 changed files with 25 additions and 86,159 deletions.
51 changes: 22 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,19 @@
# ConvPoint: Generalizing discrete convolutions for unstructured point clouds


![SnapNet products](./doc/convPoint.png)


## Updates

**Major performance update**: by reformulating the convolutional layer using matrix mulitplications, the memory consumption has been highly reduced.

**Major interface update**: the spatial relations are now computed in the network class. The framework is then easier to use and more flexible.

## Introduction

This repository propose python scripts for point cloud classification and segmentation. The library is coded with PyTorch.

The conference paper is here:
https://diglib.eg.org/handle/10.2312/3dor20191064

A preprint of the paper can be found on Arxiv:
http://arxiv.org/abs/1904.02375
This repository was forked from the [original repo](https://github.com/aboulch/ConvPoint).
Python scripts for point cloud classification and segmentation. The library is coded with PyTorch.
It has been updated to fit the case of airborne lidar classification.

## License

Code is released under dual license depending on applications, research or commercial. Reseach license is GPLv3.
Code is released under dual license depending on applications, research or commercial. Reseach and non-commercial license is GPLv3.
See the [license](LICENSE.md).

## Citation

If you use this code in your research, please consider citing:
(citation will be updated as soon as 3DOR proceedings will be released)
If you use this code in your research, please consider citing the original author:

```
@inproceedings {or.20191064,
Expand All @@ -50,8 +35,9 @@ The code was tested on Ubuntu 18.04 with Anaconda.
## Dependencies

- Pytorch
- Scikit-learn for confusion matrix computation, and efficient neighbors search
- TQDM for progress bars
- MLFlow
- Scikit-learn
- TQDM
- PlyFile
- H5py
- Cython
Expand Down Expand Up @@ -86,10 +72,17 @@ from global_tags import GlobalTags
GlobalTags.legacy_layer_base(True)
```

## Examples
* [ModelNet40](examples/modelnet/)
* [ShapeNet](examples/shapenet/)
* [S3DIS](examples/s3dis/)
* [Semantic3D](examples/semantic3d)
* [NPM3D](examples/npm3d)
* [Airborne Lidar](examples/airborne_lidar)
## Usage
Step 1: Prepare las files.
```
python airborne_lidar/prepare_airborne_lidar_label.py --folder /path/to/las/folder --dest path/to/input/folder --csv file.csv
```
Step 2: Prepare a config file and train a model.
A config file template can be found [here](airborne_lidar/config_template.yaml).
```
python airborne_lidar/airborne_lidar_seg.py --config /path/to/config.yaml
```
Step 3: Inference on new las files.
```
python airborne_lidar/airborne_lidar_inference.py --modeldir /path/to/model/folder --rootdir path/to/input/las --test_step int
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
import torch.nn.functional as F
import convpoint.knn.lib.python.nearest_neighbors as nearest_neighbors
import utils.metrics as metrics
from examples.airborne_lidar.airborne_lidar_utils import InformationLogger, print_metric, write_config, read_parameters, wblue, wgreen
from airborne_lidar import InformationLogger, print_metric, write_config, read_parameters, wblue, wgreen
from pathlib import Path
from examples.airborne_lidar.airborne_lidar_viz import prediction2ply, error2ply
from examples.airborne_lidar.airborne_lidar_datasets import PartDatasetTrainVal, PartDatasetTest
from airborne_lidar import prediction2ply
from airborne_lidar import PartDatasetTrainVal, PartDatasetTest
from mlflow import log_params, set_tracking_uri, set_experiment


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed doc/convPoint.png
Binary file not shown.
25 changes: 0 additions & 25 deletions examples/modelnet/README.md

This file was deleted.

Loading

0 comments on commit 56fd2fd

Please sign in to comment.