STAR: A First-Ever Dataset and A Large-Scale Benchmark for Scene Graph Generation in Large-Size Satellite Imagery
The official implementation of the oriented object detection part of the paper "STAR: A First-Ever Dataset and A Large-Scale Benchmark for Scene Graph Generation in Large-Size Satellite Imagery".
TL;DR: We propose STAR, the first large-scale dataset for scene graph generation in large-size VHR SAI. Containing more than 210,000
objects and over 400,000
triplets across 1,273
complex scenarios globally.
demo.mp4
Scene graph generation (SGG) in satellite imagery (SAI) benefits promoting understanding of geospatial scenarios from perception to cognition. In SAI, objects exhibit great variations in scales and aspect ratios, and there exist rich relationships between objects (even between spatially disjoint objects), which makes it attractive to holistically conduct SGG in large-size very-high-resolution (VHR) SAI. However, there lack such SGG datasets. Due to the complexity of large-size SAI, mining triplets <subject, relationship, object> heavily relies on long-range contextual reasoning. Consequently, SGG models designed for small-size natural imagery are not directly applicable to large-size SAI. This paper constructs a large-scale dataset for SGG in large-size VHR SAI with image sizes ranging from 512 × 768 to 27,860 × 31,096 pixels, named STAR (Scene graph generaTion in lArge-size satellite imageRy), encompassing over 210K objects and over 400K triplets. To realize SGG in large-size SAI, we propose a context-aware cascade cognition (CAC) framework to understand SAI regarding object detection (OBD), pair pruning and relationship prediction for SGG. We also release a SAI-oriented SGG toolkit with about 30 OBD and 10 SGG methods which need further adaptation by our devised modules on our challenging STAR dataset. The dataset and toolkit are available at: https://linlin-dev.github.io/project/STAR.
More instructions on installation, pretrained models, training and evaluation, please refer to MMRotate 0.3.4.
-
Clone this repo:
git clone https://github.com/yangxue0827/STAR-MMRotate cd STAR-MMRotate/
-
Create a conda virtual environment and activate it:
conda create -n STAR-MMRotate python=3.8 -y conda activate STAR-MMRotate
-
Install Pytorch:
pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117
-
Install requirements:
pip install openmim mim install mmcv-full mim install mmdet cd mmrotate pip install -r requirements/build.txt pip install -v -e . pip install timm pip install ipdb # Optional, only for G-Rep git clone [email protected]:KinglittleQ/torch-batch-svd.git cd torch-batch-svd/ python setup.py install
If you find this work helpful for your research, please consider giving this repo a star ⭐ and citing our paper:
@article{li2024star,
title={STAR: A First-Ever Dataset and A Large-Scale Benchmark for Scene Graph Generation in Large-Size Satellite Imagery},
author={Li, Yansheng and Wang, Linlin and Wang, Tingzhu and Yang, Xue and Luo, Junwei and Wang, Qi and Deng, Youming and Wang, Wenbin and Sun, Xian and Li, Haifeng and Dang, Bo and Zhang, Yongjun and Yi, Yu and Yan, Junchi},
journal={arXiv preprint arXiv: 2406.09410},
year={2024}
}
This project is released under the Apache license. Parts of this project contain code and models from other sources, which are subject to their respective licenses.