doc-doc / HQGA

Video as Conditional Graph Hierarchy for Multi-Granular Question Answering (AAAI'22, Oral)
MIT License
31 stars 4 forks source link

Visualization #3

Open estelleafl opened 2 years ago

estelleafl commented 2 years ago

Hi, Very interesting work I wanted to know if there was a way to produce the graphs given a video like shown in the README

Thank you

doc-doc commented 2 years ago

Thanks for your interest, we use this tool to visualize the learned graphs.

estelleafl commented 2 years ago

Thank you! Is there any guidelines on how to use the tool on your data? Best

doc-doc commented 2 years ago

No such guideline :), and you need to format the learned adj matrices to adapt to the tool. Basically, you need a JS file like this:

var nodes = [
    {
        "id": 0,
        "label": "V0",
        "group": 3
    },
    {
        "id": 1,
        "label": "C1",
        "group": 2
    },
 ...
]
var edges = [
    {
        "from": 0,
        "to": 1,
        "value": "0.2441"
    },
    {
        "from": 1,
        "to": 8,
        "value": "1.0000"
    },
    ...
]