building-footprint-segmentation

Building footprint segmentation from satellite and aerial imagery

https://github.com/fuzailpalnak/building-footprint-segmentation

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.7%) to scientific vocabulary

Keywords

building-footprint-segmentation building-footprints deep-learning gis pytorch satellite-imagery satellite-imagery-segmentation semantic-segmentation
Last synced: 6 months ago · JSON representation ·

Repository

Building footprint segmentation from satellite and aerial imagery

Basic Info
Statistics
  • Stars: 157
  • Watchers: 2
  • Forks: 33
  • Open Issues: 2
  • Releases: 7
Topics
building-footprint-segmentation building-footprints deep-learning gis pytorch satellite-imagery satellite-imagery-segmentation semantic-segmentation
Created over 5 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog Funding License Citation

README.md

Building Footprint Segmentation

Library to train building footprint on satellite and aerial imagery.

Python Contributions welcome Licence Downloads

Buy Me a Coffee at ko-fi.com

merge1

Installation

pip install building-footprint-segmentation

Dataset

Training

Visualize Training

Test images at end of every epoch
Visualizing on Tensorboard

```python from buildingfootprintsegmentation.helpers.callbacks import CallbackList, TensorBoardCallback wheretologthecallback = r"pathtolog_callback"
callbacks = CallbackList()

Ouptut from all the callbacks caller will be stored at the path specified in log_dir

callbacks.append(TensorBoardCallback(wheretologthecallback))

```

To view Tensorboard dash board

tensorboard --logdir="path_to_log_callback"

Defining Custom Callback

```python from buildingfootprintsegmentation.helpers.callbacks import CallbackList, Callback

class CustomCallback(Callback): def init(self, logdir): super().init(logdir)

wheretologthecallback = r"pathtolog_callback"
callbacks = CallbackList()

Ouptut from all the callbacks caller will be stored at the path specified in log_dir

callbacks.append(CustomCallback(wheretologthecallback)) ```

Split the images in smaller sample

```python import glob import os

from image_fragment.fragment import ImageFragment

FOR .jpg, .png, .jpeg

from imageio import imread, imsave

FOR .tiff

from tifffile import imread, imsave

ORIGINALDIMOFIMAGE = (1500, 1500, 3) CROPTO_DIM = (384, 384, 3)

imagefragment = ImageFragment.imagefragment3d( fragmentsize=(384, 384, 3), orgsize=ORIGINALDIMOFIMAGE )

IMAGEDIR = r"pth\to\input\dir" SAVEDIR = r"pth\to\save\dir"

for file in glob.glob( os.path.join(IMAGEDIR, "*") ): image = imread(file) for i, fragment in enumerate(imagefragment): # GET DATA THAT BELONGS TO THE FRAGMENT fragmentedimage = fragment.getfragment_data(image)

    imsave(
        os.path.join(
            SAVE_DIR,
            f"{i}_{os.path.basename(file)}",
        ),
        fragmented_image,
    )

```

Inference

Segmentation for building footprint

  • [x] binary
  • [ ] building with boundary (multi class segmentation)

Weight File

Refer gtkit for commonly used utility task when working with Geotiff

Owner

  • Name: Fuzail Palnak
  • Login: fuzailpalnak
  • Kind: user
  • Location: Graz, Austria
  • Company: Joanneum Research

In a quest to improve my machine learning and computer vision skills

Citation (CITATION.cff)

cff-version: 1.2.0
message: "Please cite this repository If you found it helpful in your reserach."
preferred-citation:
  type: generic
  authors:
  - family-names: "Palnak"
    given-names: "Fuzail A."
  title: "building-footprint-segmentation"
  url: "https://github.com/fuzailpalnak/building-footprint-segmentation"

GitHub Events

Total
  • Watch event: 23
  • Fork event: 3
Last Year
  • Watch event: 23
  • Fork event: 3

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 67
  • Total Committers: 1
  • Avg Commits per committer: 67.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Fuzail palnak f****k@g****m 67

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 19
  • Total pull requests: 31
  • Average time to close issues: 2 months
  • Average time to close pull requests: less than a minute
  • Total issue authors: 14
  • Total pull request authors: 2
  • Average comments per issue: 6.26
  • Average comments per pull request: 0.0
  • Merged pull requests: 30
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • santhi-2020 (3)
  • gmommi (2)
  • JuliaWasala (2)
  • teresalisanti (2)
  • kavin160100 (1)
  • trecuu (1)
  • fitzgeraldja (1)
  • hieule88 (1)
  • Tclack88 (1)
  • Finn-Neo (1)
  • raialvaro (1)
  • fbernardini (1)
  • Juldeng (1)
  • Plan-T42 (1)
Pull Request Authors
  • fuzailpalnak (30)
  • AndyWarrior123 (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 49 last-month
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 1
    (may contain duplicates)
  • Total versions: 12
  • Total maintainers: 1
proxy.golang.org: github.com/fuzailpalnak/building-footprint-segmentation
  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 6.4%
Average: 6.7%
Dependent repos count: 6.9%
Last synced: 6 months ago
pypi.org: building-footprint-segmentation

Building footprint segmentation from satellite and aerial imagery

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 49 Last month
Rankings
Forks count: 7.2%
Stargazers count: 7.3%
Dependent packages count: 10.1%
Average: 12.5%
Downloads: 16.2%
Dependent repos count: 21.6%
Maintainers (1)
Last synced: 6 months ago

Dependencies

requirements.txt pypi
  • PyYAML ==5.3.1
  • albumentations ==0.5.0
  • numpy ==1.19.2
  • opencv_python_headless ==4.4.0.44
  • py_oneliner ==0.0.1
  • scikit_learn ==0.23.2
  • torch *
  • torchvision *
  • tqdm ==4.51.0
.github/workflows/python-publish.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • pypa/gh-action-pypi-publish 27b31702a0e7fc50959f5ad993c78deac1bdfc29 composite
setup.py pypi