A deeplearning pipeline to classify tree species in terrestrial panorama pictures.
Project description
treespec
A deeplearning pipeline to classify tree species in terrestrial panorama pictures.
About
treespec is a PyTorch-lightning based deep learning pipeline equipped with tools helpfull for creating datasets from images, 3D point clouds and shapefile data containing inventory information.
Features:
- match tree inventories
- create masked datasets
- train standard torchvision models
Installation
Method 1: Docker Container
Download the current treespec container on Docker Hub (Docker required).
docker pull vogelingmar/treespec:latest
Run the container with docker run and mount folders you want to work with.
docker run -it --gpus all -v *local_path*:/workspace/data vogelingmar/treespec
Method 2: GitHub Repository
Clone the treespec repository from GitHub (Git required).
When first setting up treespec you have to have Python3 installed on your system. To create a virtual environment and install all the required dependecies to run the treespec pipeline follow these steps:
- Navigate into your local treespec repo.
cd treespec/
- Run the setup script.
bash setup.sh
Usage
- Activate the virtual environment created by setup.sh.
. venv/bin/activate
- Run the pytest tests to check if everything works.
pip install -e .[dev]; pytest test
- Configure the settings of the scripts (src/treespec/scripts) in the src/conf/config.yaml file (see config.py/ config_parser.py for available options).
nano src/conf/config.yaml
- Run any script (example: train.py).
python src/scripts/train.py
Now you should see the training progress in your terminal, along with some metrics. In the end you can see some statistics and the trained model is saved to src/io/models.
If you want to look further into the training statistics run this command and follow its instructions.
tensorboard --logdir=lightning_logs/
- For further help you can build the documentation.
pip install -e .[docs]; cd docs; make html
You can now find the generated html files in docs/_build/html.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file treespec-0.1.0.tar.gz.
File metadata
- Download URL: treespec-0.1.0.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebbf8868367f1a01aad71954e0b8f737e17cc300002669e3c35f5dff5002bc9a
|
|
| MD5 |
df8659c94c493e7b57fbd05a3381a968
|
|
| BLAKE2b-256 |
8f7305c763cb2ca578da1bbca3e1a171318c46ac361ec8af6df61f2ea76af916
|
File details
Details for the file treespec-0.1.0-py3-none-any.whl.
File metadata
- Download URL: treespec-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
258e6e4a08e633993594412f8319b6374d529e15090dc0f605c1f2d42fe4b260
|
|
| MD5 |
bdb0e1a42572596232244618e74aa39a
|
|
| BLAKE2b-256 |
5e633a460e8686e36ca254ac65fcfeafad9d9bdda2dfcc2ff469fc3e9319087e
|