Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.17 KB

File metadata and controls

36 lines (27 loc) · 1.17 KB

hsgmp

Since the data is too large, we do not provide the data, including visual & textual scene graph, please generate the data by yourself using the code in data generation.

Requirement

python>=3.6
pytorch
git submodule update --init --recursive

Install parser enviroment

pip install spacy
python -m spacy download en

Install faster R-CNN

follow the repo's instruction to install Faster R-CNN

git clone https://github.com/shilrley6/Faster-R-CNN-with-model-pretrained-on-Visual-Genome.git
cd lib
python setup.py build develop

download pre-trained model

data generation

The code of visual scene graph generation is from Unbiased Scene Graph Generation from Biased Training

The code of textual scene graph generation is from SceneGraphParser

The code of image feature extraction is from Faster-R-CNN-with-model-pretrained-on-Visual-Genome