Building footprint segmentation from satellite and aerial imagery
Project description
Building Footprint Segmentation
Library to train building footprint on satellite and aerial imagery.
Installation
pip install building-footprint-segmentation
Dataset
Training
-
Train With Config , Use config template for generating training config
Visualize Training
Test images at end of every epoch. Follow Example
from building_footprint_segmentation.helpers.callbacks import CallbackList, TestDuringTrainingCallback
class TestCallback(TestDuringTrainingCallback):
def inference(self, model, image, file_name, save_path, index):
"""
:param model: the model used for training
:param image: the images loaded by the test loader
:param file_name: the file name of the test image
:param save_path: path where to save the image
:param index:
:return:
"""
# Define this method on how to handle the prediction at the end of every epoch
where_to_log_the_callback = r"path_to_log_callback"
callbacks = CallbackList()
# Ouptut from all the callbacks caller will be stored at the path specified in log_dir
callbacks.append(TestCallback(where_to_log_the_callback))
Visualizing on Tensorboard
from building_footprint_segmentation.helpers.callbacks import CallbackList, TensorBoardCallback
where_to_log_the_callback = r"path_to_log_callback"
callbacks = CallbackList()
# Ouptut from all the callbacks caller will be stored at the path specified in log_dir
callbacks.append(TensorBoardCallback(where_to_log_the_callback))
To view Tensorboard dash board
tensorboard --logdir="path_to_log_callback"
Segmentation for building footprint
- binary
- building with boundary (multi class segmentation)
Weight File
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file building-footprint-segmentation-0.0.2.tar.gz
.
File metadata
- Download URL: building-footprint-segmentation-0.0.2.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a49d3e5669fa0e3c3389f73838730bc883af3dc97d5d22dd766f8f0fd9e77b31 |
|
MD5 | 44d1e6aec9f0b29569d764578357a5e3 |
|
BLAKE2b-256 | 10a4fa737acd71fd96be1a8aea9aa0f41e5a8ff9b2108a4188c3df6984937039 |