Gran

Efficient Graph Generation with Graph Recurrent Attention Networks, Deep Generative Model of Graphs, Graph Neural Networks, NeurIPS 2019
Alternatives To Gran
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Draw501
5 years ago9apache-2.0Python
TensorFlow Implementation of "DRAW: A Recurrent Neural Network For Image Generation"
Gran363
a year ago7mitC++
Efficient Graph Generation with Graph Recurrent Attention Networks, Deep Generative Model of Graphs, Graph Neural Networks, NeurIPS 2019
Ccm187
5 years ago6apache-2.0Python
This project is a tensorflow implement of our work, CCM.
Draw131
8 years ago4Lua
Torch implementation of DRAW: A Recurrent Neural Network For Image Generation
Neural Question Generation103
3 years ago9mitPython
Pytorch implementation of Paragraph-level Neural Question Generation with Maxout Pointer and Gated Self-attention Networks
Treegen70
a year ago23mitPython
A Tree-Based Transformer Architecture for Code Generation. (AAAI'20)
Tf Var Attention55
3 years agomitPython
Tensorflow Implementation of Variational Attention for Sequence to Sequence Models (COLING 2018)
Show_attend_and_tell_pytorch51
4 years ago5Python
Pytorch implement Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
Encoder Agnostic Adaptation38
3 years ago8mitPython
Encoder-Agnostic Adaptation for Conditional Language Generation
Recosa36
3 years agoPython
ReCoSa: Detecting the Relevant Contexts with Self-Attention for Multi-turn Dialogue Generation
Alternatives To Gran
Select To Compare


Alternative Project Comparisons
Readme

GRAN

This is the official PyTorch implementation of Efficient Graph Generation with Graph Recurrent Attention Networks as described in the following NeurIPS 2019 paper:

@inproceedings{liao2019gran,
  title={Efficient Graph Generation with Graph Recurrent Attention Networks}, 
  author={Liao, Renjie and Li, Yujia and Song, Yang and Wang, Shenlong and Nash, Charlie and Hamilton, William L. and Duvenaud, David and Urtasun, Raquel and Zemel, Richard}, 
  booktitle={NeurIPS},
  year={2019}
}

Visualization

Generation of GRAN per step:

Overall generation process:

Dependencies

Python 3, PyTorch(1.2.0)

Other dependencies can be installed via

pip install -r requirements.txt

Run Demos

Train

  • To run the training of experiment X where X is one of {gran_grid, gran_DD, gran_DB, gran_lobster}:

    python run_exp.py -c config/X.yaml

Note:

  • Please check the folder config for a full list of configuration yaml files.
  • Most hyperparameters in the configuration yaml file are self-explanatory.

Test

  • After training, you can specify the test_model field of the configuration yaml file with the path of your best model snapshot, e.g.,

    test_model: exp/gran_grid/xxx/model_snapshot_best.pth

  • To run the test of experiments X:

    python run_exp.py -c config/X.yaml -t

Note:

Trained Models

  • You could use our trained model for comparisons. Please make sure you are using the same split of the dataset. Running the following script will download the trained model:

    ./download_model.sh

Sampled Graphs from GRAN

  • Proteins Graphs from Training Set:

  • Proteins Graphs Sampled from GRAN:

Cite

Please cite our paper if you use this code in your research work.

Questions/Bugs

Please submit a Github issue or contact [email protected] if you have any questions or find any bugs.

Popular Attention Projects
Popular Generation Projects
Popular Machine Learning Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
C Plus Plus
Graph
Yaml
Generation
Attention
Generative Model