"src/diffusers/pipelines/ddim/pipeline_ddim.py" did not exist on "e45dae7dc062a8057879177c5663fd0bb1de3ca1"
README.md 709 Bytes
Newer Older
1
Junction Tree VAE - example for training
2
==========================================
3
4
5

This is a direct modification from https://github.com/wengong-jin/icml18-jtnn

6
7
8
9
10
11
12
13
Dependencies
--------------
* PyTorch 0.4.1+
* RDKit
* requests

How to run
-----------
14
15
16
17
18
19
20

To run the model, use
```
python3 vaetrain_dgl.py
```
The script will automatically download the data, which is the same as the one in the
original repository.
21
22
23
24
25
26
27
28
29
30
31
32
33

To disable CUDA, run with `NOCUDA` variable set:
```
NOCUDA=1 python3 vaetrain_dgl.py
```

To decode for new molecules, run
```
python3 vaetrain_dgl.py -T
```

Currently, decoding involves encoding a training example, sampling from the posterior
distribution, and decoding a molecule from that.