GithubHelp home page GithubHelp logo

jrice15 / trees-pointnet Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 2.88 MB

Code for my masters thesis, "Deep Learning for Detecting Trees in the Urban Environment from Lidar"

Home Page: https://digitalcommons.calpoly.edu/theses/2569/

Python 82.40% Shell 0.72% C++ 11.30% Cuda 3.78% Dockerfile 0.10% Cython 1.69%
ai deep-learning forestry lidar neural-network pointnet pointnet2 remote-sensing

trees-pointnet's Introduction

Urban Trees Pointnet

Setting Up

Create a conda environment with tensorflow 2.4 (or 2.4-gpu), using the provided yml file

How to Run

Data Preprocessing

cd data_preprocessing

With an environment that has pdal and numpy, run the following:

python3 filter_lidar.py --infile <region las file> [--reproject ? --scale ?] With raw las/laz file, compute height above ground (HAG) dimension, filter to HAG>0, and possibly reproject (note the --scale argument when reprojecting).

Create and activate a laspy environment with the provided .yml file, then:

python3 generate_lidar_patches.py --specs ../data/elcap_lidar_specs.json --outname <dataset name> This selects all LIDAR points lying inside an annotated grid square, and saves it to a .npy file.

Optionally: python3 analyze_dataset.py --dsname <dataset name> to generate some nice diagnostic plots and such, inside data/lidar/<dataset name>

Training

First time only: ./docker_build.sh

Then, use ./docker_run N where N is the GPU index you would like to use to activate the docker container. If this is the first time you have ever activated the container, run ./compile_ops.sh inside as well. ./docker_run also accepts following position arguments as a command, so ./docker_run 3 ./compile_ops.sh runs compile_ops.sh inside the container.

Finally, run

python3 train.py -h to see the full array of command line options available for training

Evaluation

Evaluation is run automatically after training. You can also run it on its own, with:

python3 evaluate.py --name <name> which evaluates the model with the given name

trees-pointnet's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.