Research internship with the Gemeente Amsterdam concerning the detection of fencing along open water within the city center.
There are the following folders in the structure:
data
: Placeholder that should contain the annotated dataset and geometryexperiments
: Placeholder for train- and validation-logs and model weightsloaders
: Folder containing the panorama- and dataloaders for trainingmodels
: Folder containing the models and training codenotebooks
: Folder containing Jupyter Notebooks for visualizationsscripts
: Folder containing scripts for inference, annotation converters, and data splitsutils
: Folder containing augmentation, logging, metrics, and other functions
- Clone this repository:
git clone https://github.com/Amsterdam-Internships/fence-detection
- Install all dependencies:
pip install -r requirements.txt
To create the visualisation linked above, run inference.py (params can be adjusted in the file itself). This creates a GeoJSON file which can be read and plotted accordingly. The visualisation linked above was made using the notebook visualisation-predictions.ipynb.
To train a model, we refer to the models folder. Model parameters, dataset references, and output directories can be specified in config.py. Then simply run train.py.
Our segmentation models use Segmentation Models for PyTorch by qubvel: