Spacenet
Collection
https://github.com/HarshShinde0/spacenet • 3 items • Updated
This model detects building footprints from high-resolution satellite imagery. It is a PyTorch-based U-Net model trained on the SpaceNet (Rio de Janeiro) dataset for semantic segmentation (binary: background vs. building).
This model can be used to automatically detect and extract building footprint masks from satellite imagery. It is primarily designed for high-resolution (e.g., ~50cm/pixel) RGB satellite tiles.
Trained on the SpaceNet Rio de Janeiro dataset.
Training metrics were tracked using TensorBoard and include:
You can view the full training logs and curves here on TensorBoard.
You can load the weights using PyTorch:
import torch
# Assuming the U-Net architecture is defined in your local code
# model = UNet(in_channels=3, num_classes=2)
checkpoint = torch.load("best_model.pt", map_location="cpu")
# Depending on how the state dict was saved, load it into the model
# model.load_state_dict(checkpoint['model_state_dict']) # if saved as a dictionary
# OR
# model.load_state_dict(checkpoint) # if saved as raw state_dict
model.eval()