Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
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
96e54bfc40
Generalized dice loss (#30)
2 years ago
c3e14259fe
Better metrics and loss (#28)
2 years ago
a44ef66e62
Track shapefiles in dvc explicitly
2 years ago
dd0b7743f0
Include pl_bolts UNet code until it's replaced with segmentation_model.pytorch model
2 years ago
1c02e2846e
Make the model inference type selectable (#20)
3 years ago
8aab48516f
Add train and inference notebook and bump pytorch-lightning req to 1.2.10 (#13)
3 years ago
3f1c86a53c
Universal stats (#27)
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
6bafca2145
Update gitignore
3 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
96e54bfc40
Generalized dice loss (#30)
2 years ago
686e0d7fa2
Add (inference) setup for 2017 data (#23)
3 years ago
34be5be871
Add createbalanced stage
3 years ago
fefc12437c
Move pytest config to pyproject.toml
3 years ago
afa9f10b2f
Remove pl_bolts dependency
2 years ago
3d040a24ab
Add W&B parameter sweep file
3 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...