Paper | Dataset | Benchmark | Models
LLaVA-SpaceSGG is a multimodal large language model (MLLM) designed to tackle the challenges of Scene Graph Generation (SGG) by improving spatial relation modeling and enabling open-vocabulary generalization. SGG converts visual scenes into structured graph representations, providing deeper scene understanding for complex vision tasks.
Clone the repository and set up the environment:
git clone https://github.com/Endlinc/LLaVA-SpaceSGG.git
cd LLaVA-SpaceSGG
pip install -r requirements.txt
The scene graph description generation process in Stage 1 is built upon the All-Seeing v2 project. Please refer to their repository for detailed instructions and implementation.
python d2p.py --dataset-path dataset/coco --scale-factor 5000 --world-coordinates
python layers_aggregation.py \
--input-file asv2_level.json \
--depth-dir ./depth-output \
--mask-dir ./mask-output \
--output-file processed_annotations.json \
--dataset-base /home/ming/Datasets/all-seeing-v2/materials/ \
--data-prefix ../data/
python multiview_layers.py \
--input-file asv2_level.json \
--point-cloud-dir ./point_clouds \
--mask-dir ./mask-output \
--output-file processed_annotations.json \
--dataset-base /home/ming/Datasets/all-seeing-v2/materials/ \
--data-prefix ../data/
python llm_based_query.py \
--anno-file annotations.json \
--prompt-function create_layer_prompt \
--output-file layer_description.json
python llm_based_query.py \
--anno-file annotations.json \
--prompt-function create_between_prompt \
--output-file between_qa.json
python llm_based_query.py \
--anno-file annotations.json \
--prompt-function create_rotation_prompt \
--output-file rotation_prompts.json
After preparing the dataset, train the LLaVA-SpaceSGG model using the scripts provide in project LLaVA and The All-Seeing Project V2
If you use LLaVA-SpaceSGG or SpaceSGG dataset in your research, please cite our work:
@inproceedings{llava_spacesgg2025,
title={LLaVA-SpaceSGG: Visual Instruct Tuning for Open-vocabulary Scene Graph Generation with Enhanced Spatial Relations},
author={Mingjie Xu, Mengyang Wu, Yuzhi Zhao, Jason Chun Lok Li, Weifeng Ou},
booktitle={Proceedings of WACV 2025},
year={2025}
}
This project is licensed under the Apache License.
For questions or feedback, please contact parasolohalo@gmail.com.
Let me know if you need adjustments!
8 commits
Python
100.0%
Paper | Dataset | Benchmark | Models
LLaVA-SpaceSGG is a multimodal large language model (MLLM) designed to tackle the challenges of Scene Graph Generation (SGG) by improving spatial relation modeling and enabling open-vocabulary generalization. SGG converts visual scenes into structured graph representations, providing deeper scene understanding for complex vision tasks.
Clone the repository and set up the environment:
git clone https://github.com/Endlinc/LLaVA-SpaceSGG.git
cd LLaVA-SpaceSGG
pip install -r requirements.txt
The scene graph description generation process in Stage 1 is built upon the All-Seeing v2 project. Please refer to their repository for detailed instructions and implementation.
python d2p.py --dataset-path dataset/coco --scale-factor 5000 --world-coordinates
python layers_aggregation.py \
--input-file asv2_level.json \
--depth-dir ./depth-output \
--mask-dir ./mask-output \
--output-file processed_annotations.json \
--dataset-base /home/ming/Datasets/all-seeing-v2/materials/ \
--data-prefix ../data/
python multiview_layers.py \
--input-file asv2_level.json \
--point-cloud-dir ./point_clouds \
--mask-dir ./mask-output \
--output-file processed_annotations.json \
--dataset-base /home/ming/Datasets/all-seeing-v2/materials/ \
--data-prefix ../data/
python llm_based_query.py \
--anno-file annotations.json \
--prompt-function create_layer_prompt \
--output-file layer_description.json
python llm_based_query.py \
--anno-file annotations.json \
--prompt-function create_between_prompt \
--output-file between_qa.json
python llm_based_query.py \
--anno-file annotations.json \
--prompt-function create_rotation_prompt \
--output-file rotation_prompts.json
After preparing the dataset, train the LLaVA-SpaceSGG model using the scripts provide in project LLaVA and The All-Seeing Project V2
If you use LLaVA-SpaceSGG or SpaceSGG dataset in your research, please cite our work:
@inproceedings{llava_spacesgg2025,
title={LLaVA-SpaceSGG: Visual Instruct Tuning for Open-vocabulary Scene Graph Generation with Enhanced Spatial Relations},
author={Mingjie Xu, Mengyang Wu, Yuzhi Zhao, Jason Chun Lok Li, Weifeng Ou},
booktitle={Proceedings of WACV 2025},
year={2025}
}
This project is licensed under the Apache License.
For questions or feedback, please contact parasolohalo@gmail.com.
Let me know if you need adjustments!
8 commits
Python
100.0%