yinboc / DGP

Rethinking Knowledge Graph Propagation for Zero-Shot Learning, in CVPR 2019
MIT License
320 stars 57 forks source link

Hi! I saw in another issue that you explain the funtion 'induce_parent', saying its purpose is to attach imagenet21k and related node to the xml-node. I find this line confusing. Base on your explanation in the aforemetioned issue, I presume that this line should check whether one parent node belongs to xml-node but find it checking imagenet21k-node, and I'm therefore lost. Another thing is that there doesn't seem to be a line attaching the missing node itself to the xml-node. Could you enlighten me about this? #21

Closed RowenaHe closed 11 months ago

RowenaHe commented 11 months ago

https://github.com/yinboc/DGP/blob/b497ebba0f43b21a77059c7fc3eb4e5d599c5679/materials/make_induced_graph.py#L40