Git Product home page Git Product logo

fast_graph_generation_via_spectral_diffusion's Introduction

Fast Graph Generation via Spectral Diffusion

Code for the paper Fast Graph Generation via Spectral Diffusion (IEEE TPAMI 2023).

Dependencies

GSDM is built in Python 3.8.0 and Pytorch 1.10.1. Please use the following command to install the requirements:

pip install -r requirements.txt

Running Experiments

Train model

CUDA_VISIBLE_DEVICES=${gpu_ids} python main.py --type train --config ${train_config}

for example,

CUDA_VISIBLE_DEVICES=0 python main.py --type train --config community_small

Evaluation

For the evaluation of generic graph generation tasks, run the following command to compile the ORCA program (see http://www.biolab.si/supp/orca/orca.html):

cd evaluation/orca 
g++ -O2 -std=c++11 -o orca orca.cpp

To generate graphs using the trained score models, run the following command.

CUDA_VISIBLE_DEVICES=${gpu_ids} python main.py --type sample --config community_small

Citation

If you found the provided code with our paper useful in your work, we kindly request that you cite our work.

@article{luo2023fast,
  title={Fast graph generation via spectral diffusion},
  author={Luo, Tianze and Mo, Zhanfeng and Pan, Sinno Jialin},
  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year={2023},
  publisher={IEEE}
  url={https://ieeexplore.ieee.org/abstract/document/10366850}
}

fast_graph_generation_via_spectral_diffusion's People

Contributors

ltz0120 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fast_graph_generation_via_spectral_diffusion's Issues

can u tell me more about your environment, when i set the environment, i met some problem with cython

AttributeError: 'NoneType' object has no attribute 'is_builtin_type'
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-ypojl2g2/pomegranate_dc86be06e80d498b9a694194fb28a293/setup.py", line 62, in
extensions = cythonize( extensions )
File "/home/icdm/anaconda3/envs/wk_fast/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
File "/home/icdm/anaconda3/envs/wk_fast/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: pomegranate/BayesianNetwork.pyx

QM9 and ZINC config/checkpoints

Hello, compliments for your work, very interesting, I saw in your paper that you tested also on QM9 and Zinc datasets. Could you upload the configuration (and the checkpoints)? Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.