Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Code for the ASGRA framework proposed in the paper "Attention over Scene Graphs: Indoor Scene Representations Toward CSAI Classification"

Notifications You must be signed in to change notification settings

tutuzeraa/ASGRA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASGRA - Attention over Scene Graphs 🔎🕸️

arXiv

Framework to leverage Scene Graphs and GAT's to classify indoor scenes. Official implementation of "Attention over Scene Graphs: Indoor Scene Representations Toward CSAI Classification", accepted at the 1st Workshop on From Scene Understanding to Human Modeling at the BMVC 2025.

Setup

First, you must clone the repository:

git clone [email protected]:tutuzeraa/ASGRA.git ASGRA
cd ASGRA
git submodule update --init  # to use the modified Pix2Grp

For installing the framework, run the following commands:

conda create -n ASGRA python=3.11 pytorch torchvision torchaudio -c pytorch -c nvidia
conda activate ASGRA 
pip install -r requirements.txt
python3 setup.py install

Datasets

We evaluate our approach in two datasets:

  • Places8
  • RCPD

See datasets.md for more information on how to setup the datasets.

Generating the Scene Graphs

For generating the scene graphs, we utilize this work: Pix2Grp. We did some adaptations to output the scene graphs in the format that we could process. To generate the graphs as we did, follow the instructions in here.

Weights

You can download the pretrained weights for the places8 dataset in here.

To run

To train and evaluate the model, you can run the following commands:

Training

CUDA_VISIBLE_DEVICES=0 python3 asgra/main.py -m train -c configs/asgra_best.json -w 8 -o results/run1

Inference

CUDA_VISIBLE_DEVICES=0 python3 asgra/main.py -m eval -c configs/asgra_best.json -w 8 -o results/eval-run1 --weights path-to-trained-weights

Acknowledgements

This repository is built over Pix2Grp, that is built over LAVIS and SGTR. We would like to thank them for their great open-source code and models.

Citation

About

Code for the ASGRA framework proposed in the paper "Attention over Scene Graphs: Indoor Scene Representations Toward CSAI Classification"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages