Thinklab-SJTU / GENN-Astar

Implementation of our CVPR 2021 paper "Combinatorial Learning of Graph Edit Distance via Dynamic Embedding".
Other
26 stars 3 forks source link

Question: Cython Compilation #4

Open NathanielOy opened 10 months ago

NathanielOy commented 10 months ago

Hi and thank you for your excellent work.

Please I am trying to run your solution on Google colab but am finding it difficult to use the compiled cython code in colab.

I compiled using this command: python3 setup.py build_ext --inplace

But when I try to run the main.py file, I get this error: ImportError: dynamic module does not define module export function (PyInit_a_star)

Can you please advise? Thank you.

rogerwwww commented 10 months ago

Hi there,

Thank you so much for your interest in this code base! Would you mind trying pip install pygmtools and pygm.genn_astar (docs here)? If everything works fine, you will get a pre-compiled A* solver with pretrained weights.

NathanielOy commented 10 months ago

Thank you for the quick response. I will try this out and get back to you.

Meanwhile, I was just thinking of how to pass values to the feat1, feat2, A1, A2, parameters since my graph g1 and g2 are currently a pythyon nested list of nodes and edges.

Thank you.