A professional-grade satellite imagery analysis tool for automatic building segmentation. Built with Transformers (Segformer) and CustomTkinter, this project provides a complete pipeline from training to a standalone desktop application.

onedir executable with all dependencies bundled.app_gui.py: The core GUI application logic.neural2.py: Advanced training script with a built-in 15-minute time limit feature.classical.py: Optimized computer vision segmentation (Otsu, HSV filtering, Shape analysis).compare_models.py: Standalone CLI tool for benchmarking model performance.samples/: Integrated gallery of 20 sample images and matching ground-truth masks.PREZENTACIJA.md: Full structure for a 10-slide project presentation.BuildingSegmenter.spec: PyInstaller configuration for generating the portable .exe.Clone the repository:
git clone https://github.com/YourUsername/Building-Segmentation-AI.git
cd Building-Segmentation-AI
Download Model Weights:
.pth files (e.g., B2_segformer_...pth) from GitHub Releases - v1.0.Create and activate a virtual environment:
python -m venv .venv
.\.venv\Scripts\Activate.ps1
Install dependencies:
pip install -r requirements.txt
To launch the GUI in development mode:
python app_gui.py
The project is optimized for the Massachusetts Buildings Dataset.
python neural2.py for a high-performance two-stage training session.python neural2.py to see the best possible model achieved in a strict 15-minute window.python classical.py to evaluate traditional CV accuracy.To build the standalone .exe yourself:
pyinstaller BuildingSegmenter.spec --noconfirm
The result will be available in the dist/BuildingSegmenter/ folder.
Developed for educational and research purposes in satellite imagery analysis.
Python
100.0%
A professional-grade satellite imagery analysis tool for automatic building segmentation. Built with Transformers (Segformer) and CustomTkinter, this project provides a complete pipeline from training to a standalone desktop application.

onedir executable with all dependencies bundled.app_gui.py: The core GUI application logic.neural2.py: Advanced training script with a built-in 15-minute time limit feature.classical.py: Optimized computer vision segmentation (Otsu, HSV filtering, Shape analysis).compare_models.py: Standalone CLI tool for benchmarking model performance.samples/: Integrated gallery of 20 sample images and matching ground-truth masks.PREZENTACIJA.md: Full structure for a 10-slide project presentation.BuildingSegmenter.spec: PyInstaller configuration for generating the portable .exe.Clone the repository:
git clone https://github.com/YourUsername/Building-Segmentation-AI.git
cd Building-Segmentation-AI
Download Model Weights:
.pth files (e.g., B2_segformer_...pth) from GitHub Releases - v1.0.Create and activate a virtual environment:
python -m venv .venv
.\.venv\Scripts\Activate.ps1
Install dependencies:
pip install -r requirements.txt
To launch the GUI in development mode:
python app_gui.py
The project is optimized for the Massachusetts Buildings Dataset.
python neural2.py for a high-performance two-stage training session.python neural2.py to see the best possible model achieved in a strict 15-minute window.python classical.py to evaluate traditional CV accuracy.To build the standalone .exe yourself:
pyinstaller BuildingSegmenter.spec --noconfirm
The result will be available in the dist/BuildingSegmenter/ folder.
Developed for educational and research purposes in satellite imagery analysis.
Python
100.0%