Start here.
- Clone this repository.
# HTTPS git clone https://github.com/rl02898/detectron2-spacenet.git # SSH git clone git@github.com:rl02898/detectron2-spacenet.git
- Run the following command. This command will download the data, put it into directories, rename it, convert the TIFF images to PNGs, and create the JSON files for Detectron2. This will take an hour or two. You may see warnings, they are expected.
with a file structure like:
./install.sh
Spacenet/ ├─ AOI_1_Rio_train/ ... ... ... ├─ AOI_5_Khartoum_Test_public/ ├─ train/ │ ├─ images.png │ ├─ via_region_data.json ├─ val/ │ ├─ images.png │ ├─ via_region_data.json ├─ test/ │ ├─ images.png
- Follow the steps in the Medium article on how to properly use the inference functions in demo.py:
https://russland.medium.com/using-detectron2-for-instance-segmentation-on-the-spacenet-dataset-94338f739cd0