RepositoryJupyter NotebookCNChina
CAPTAIN-WHU

CAPTAIN-WHU/iSAID_Devkit

[CVPR'W19-Oral] Official repository for "iSAID: A Large-scale Dataset for Instance Segmentation in Aerial Images"

154stars
20forks
10issues
5views

PWC PWC

iSAID: A Large-scale Dataset for Instance Segmentation in Aerial Images, CVPR workshops, 2019.

Codes for Data Preparation and Evaluation

  1. Environment and dependencies installation

    1. Create the conda environment conda env create -f environment.yml
    2. Activate the current working environment source activate py_isaid
    3. Setup pycocotols for the evalaution server - cd cocoapi/PythonAPI - make - python setup.py install
    4. Setup cityscapesScripts for the evalaution server - cd preprocess/cityscapesScripts - python setup.py install
    5. Setup detectron for the evalaution server - cd preprocess/Detectron - make
    6. Note: opencv version == 3.4.2
  2. Data Preparation for Training, Validation and Testing

    1. Please download iSAID dataset that contains image segmentation masks. Also, download original images from DOTA dataset. Make sure that the final dataset must have this structure:
        iSAID
        ├── test
        │   └── images
        │       ├── P0006.png
        │       └── ...
        │       └── P0009.png
        ├── train
        │   └── images
        │       ├── P0002_instance_color_RGB.png
        │       ├── P0002_instance_id_RGB.png
        │       ├── P0002.png
        │       ├── ...
        │       ├── P0010_instance_color_RGB.png
        │       ├── P0010_instance_id_RGB.png
        │       └── P0010.png
        └── val
            └── images
                ├── P0003_instance_color_RGB.png
                ├── P0003_instance_id_RGB.png
                ├── P0003.png
                ├── ...
                ├── P0004_instance_color_RGB.png
                ├── P0004_instance_id_RGB.png
                └── P0004.png
    

    Note that the segmentation masks for the test images are withheld for the evaluation server.

    1. Change the current working directory to preprocess folder. cd preprocess

    2. Create symlink for iSAID dataset as ln -s /path-of-iSAID-dataset ./dataset/

    3. Split training and validation images into patches python split.py --set train,val

    4. Split test images into patches python split.py --set test

    5. Create coco-format json annotation files for train and val split images python preprocess.py --set train,val

      Make sure that the final dataset after preprocesing must have this structure:

    iSAID_patches
    ├── test
    │   └── images
    │       ├── P0006_0_0_800_800.png
    │       └── ...
    │       └── P0009_0_0_800_800.png
    ├── train
    │   └── instance_only_filtered_train.json
    │   └── images
    │       ├── P0002_0_0_800_800_instance_color_RGB.png
    │       ├── P0002_0_0_800_800_instance_id_RGB.png
    │       ├── P0002_0_800_800.png
    │       ├── ...
    │       ├── P0010_0_0_800_800_instance_color_RGB.png
    │       ├── P0010_0_0_800_800_instance_id_RGB.png
    │       └── P0010_0_800_800.png
    └── val
        └── instance_only_filtered_val.json
        └── images
            ├── P0003_0_0_800_800_instance_color_RGB.png
            ├── P0003_0_0_800_800_instance_id_RGB.png
            ├── P0003_0_0_800_800.png
            ├── ...
            ├── P0004_0_0_800_800_instance_color_RGB.png
            ├── P0004_0_0_800_800_instance_id_RGB.png
            └── P0004_0_0_800_800.png
    
  3. Method

    1. Run your instance segmentation method on patches and generate json file of predictions
  4. Evaluation

    1. Change the current working directory to evaluate folder. cd ../evaluate
    2. Given json of predictions and json of val set ground truth (obtained after preprocess.py), Compute Average Precision python evaluate.py

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
ultralytics/ultralytics

Ultralytics YOLO27, YOLO26, YOLO11, YOLOv8 — object detection, instance segmentation, semantic segmentation, image classification, pose estimation, object tracking

63.9k
Dec 1, 2026
RepositoryPython
open-mmlab/mmdetection

OpenMMLab Detection Toolbox and Benchmark

33.1k
Aug 21, 2024
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryPython
Comfy-Org/ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

149.6k
Dec 2, 2026
RepositoryJupyter Notebook
rasbt/LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step

109.4k
Nov 26, 2026
RepositoryPython
ultralytics/yolov5

Ultralytics YOLOv5 in PyTorch for object detection, instance segmentation, classification, training, and export.

58.3k
Nov 23, 2026
RepositoryPython
roboflow/supervision

We write your reusable computer vision tools. 💜

51.7k
Nov 27, 2026
RepositoryPython
WZMIAOMIAO/deep-learning-for-image-processing

deep learning for image processing including classification and object-detection etc.

26.5k
Jan 1, 2026
RepositoryPython
matterport/Mask_RCNN

Mask R-CNN for object detection and instance segmentation on Keras and TensorFlow

25.6k
Jun 7, 2024