Implement of paper Divide-and-Conquer Predictor for Unbiased Scene Graph Generation.
Overview
Installation
Dataset
Training
Pre-trained DCNet
Evaluation
We divide the predicate prediction into a few sub-tasks with a Divide-and-Conquer Predictor (DC-Predictor).
Check INSTALL.md for installation instructions.
Check DATASET.md for instructions of dataset preprocessing.
We adopted the pretrained Faster R-CNN provided by Scene Graph Benchmark. You can download the pretrained Faster R-CNN and put it into the folder:
/home/username/checkpoints/pretrained_faster_rcnn
This code include DCNet and other SGG methods.
There are three standard protocols: 1) Predicate Classification (PredCls). 2) Scene Graph Classification (SGCls), and 3) Scene Graph Detection (SGDet).
We use MODEL.ROI_RELATION_HEAD.USE_GT_BOX and MODEL.ROI_RELATION_HEAD.USE_GT_OBJECT_LABEL to select the protocols.
Test Example 1: (Neural Motifs, SGCls)
Test Example 2: (DCNet, PredCls)
Test Example 3: (DCNet, SGDet)
The checkpoint of are provided in this link.
Test Example: (SGCls)
If you find this project helps your research, please kindly consider citing our papers in your publications.
This repository is developed on top of the scene graph benchmarking framwork develped by KaihuaTang