Skip to content

Implementation of the Attribute Graph Network (AGN), described by the Multi-attribute Graph Inference for Social Relationship Recognition paper.

Notifications You must be signed in to change notification settings

eduardoatr/Multi_attribute_Graph_Inference_SRR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MaGI: Multi-attribute Graph Inference for Social Relationship Recognition

Linux Python Pytorch

⚠️ Implementation of the Attribute Graph Network (AGN) described by the Multi-attribute Graph Inference for Social Relationship Recognition paper.

Overview

The image-based relation recognition task consists of identifying the social connections between each pair of individuals in a given picture. In this work, we extract multiple attributes for the individuals forming each pair, identifying the most meaningful cues for each type of relationship, as illustrated in the following image:

classification

To achieve this, we extract the attributes using pre-trained models and represent them using a complete graph. These features are propagated by employing a GRU model, generating a final representation for the relationship, considering the contribution of multiple attributes. An overview of the framework is shown in the following figure:

architecture

Installation

Create a new environment and activate it, then clone the repository and install the requirements using the following commands:

git clone https://github.com/eduardoatr/Multi_attribute_Graph_Inference_SRR.git
cd Multi_attribute_Graph_Inference_SRR
pip install -r requirements.txt

Datasets

Download the benchmark datasets:

Additionally, download the relationship annotations for the PIPA dataset.

Pre-trained Models

The pre-trained models employed for attribute features extraction can be obtained from:

Training and Testing

Process the original data, building the tfrecords feature packs, fill in the necessary parameters and use the training.sh and testing.sh scripts to train a model and run it on inference mode.

About

Implementation of the Attribute Graph Network (AGN), described by the Multi-attribute Graph Inference for Social Relationship Recognition paper.

Topics

Resources

Stars

Watchers

Forks