Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Christian Werner 66e3ce309f
Update plotting notebook (still buggy)
2 years ago
1645594514
Remove local dvc remote
3 years ago
826a45e2c9
Add constants and gitignore file
3 years ago
1c02e2846e
Make the model inference type selectable (#20)
3 years ago
96e4390280
Track bestmodel.ckpt (should be semi-automated to promote model result to this state in the future)
2 years ago
c6f4048bc7
Allow the user to train in rgb, rgbn and single and multi class mode by changing hparams in conf
2 years ago
c6aadfffa9
Update inference stats stage in dvc
2 years ago
e45c331f46
Adjust inference code to work with new multi-channel setup
2 years ago
1c02e2846e
Make the model inference type selectable (#20)
3 years ago
66e3ce309f
Update plotting notebook (still buggy)
2 years ago
89215020b1
Add inference stats to stages
2 years ago
96e54bfc40
Generalized dice loss (#30)
2 years ago
675ce01d03
Add missing .dockerignore fille
3 years ago
71df18bee0
Add dvc init files to project and dotenv requirement to setup
3 years ago
fb5a759a8a
Add pre-commit hook configuration files
3 years ago
8b22f4c05b
Add gitattributes file to fix github project lamguage analysis
3 years ago
bf67b063f3
Minor cleanup in train script
2 years ago
9074b5fdc2
Move isort cfg to pyproject.toml
3 years ago
f9997053a1
Initial commit
3 years ago
1c02e2846e
Make the model inference type selectable (#20)
3 years ago
1c02e2846e
Make the model inference type selectable (#20)
3 years ago
c6aadfffa9
Update inference stats stage in dvc
2 years ago
89215020b1
Add inference stats to stages
2 years ago
35c51e6e7c
Remove MONAI (#42)
2 years ago
e569045649
Change preprocessing stages to handle new smaller sizes tiles and move to new 4-channel subtile format
2 years ago
fefc12437c
Move pytest config to pyproject.toml
3 years ago
35c51e6e7c
Remove MONAI (#42)
2 years ago
9e2ec5be4d
Slurm sweep (#45)
2 years ago
8d93077832
Add more model architectures (#43)
2 years ago
9e2ec5be4d
Slurm sweep (#45)
2 years ago
9e2ec5be4d
Slurm sweep (#45)
2 years ago
Storage Buckets
Data Pipeline
Legend
DVC Managed File
Git Managed File
Metric
Stage File
External File

README.md

You have to be logged in to leave a comment. Sign In

DeadTrees

PyTorch Lightning Config: Hydra FastAPI Streamlit


Description

Map dead trees from ortho photos. A Unet (semantic segmentation model) is trained on a ortho photo collection of Luxembourg (year: 2019). This repository contains the preprocessing pipeline, training scripts, models, and a docker-based demo app (backend: FastAPI, frontend: Streamlit).

Streamlit frontend Fig 1: Streamlit UI for interactive prediction of dead trees in ortho photos.

How to run

# clone project
git clone https://github.com/cwerner/deadtrees
cd deadtrees

# [OPTIONAL] create virtual environment (using venve, pyenv, etc.) 
# and activate it

# install requirements (basic requirements):
pip install -e . 

# [OPTIONAL] install extra requirements for training:
pip install -e ".[train]"

# [OPTIONAL] install extra requirements to preprocess the raw data
# (instead of reading preprocessed data from S3):
pip install -e ".[preprocess]"

# [ALTERNATIVE] install all subpackages:
pip install -e ".[all]"

Train model with default configuration:

cd scripts
python train.py

Tip!

Press p or to see the previous file or, n or to see the next file

About

Semantic Segmentation model for the detection of dead trees from ortho photos.

Collaborators 1

Comments

Loading...