Skip to content

Mol gen #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions apps/molecular_generation/JT_VAE/scripts/sample.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
cd $(dirname $0)
cd ..

source ~/.bashrc

root_path="$(pwd)/../../.."

export PYTHONPATH="$root_path/":$PYTHONPATH

python sample.py \
--nsample 1000 \
--vocab data/zinc/vocab.txt \
--model vae_models/model.iter-422000 \
--config configs/config.json \
--output sampling_output.txt


20 changes: 20 additions & 0 deletions apps/molecular_generation/JT_VAE/scripts/train.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
cd $(dirname $0)
cd ..

source ~/.bashrc

root_path="$(pwd)/../../.."

export PYTHONPATH="$root_path/":$PYTHONPATH

CUDA_VISIBLE_DEVICES=0 python -m vae_train.py \
--train zinc_processed \
--vocab data/zinc/vocab.txt \
--config configs/config.json \
--save_dir vae_models \
--num_workers 2 \
--epoch 50 \
--batch_size 32 \
--use_gpu True

9 changes: 9 additions & 0 deletions apps/molecular_generation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Molecular Generation

[中文版本](./README_cn.md) [English Version](./README.md)

We provide the following molecular generation methods.

* [JT-VAE](./JT_VAE/README_cn.md)
* [SD-VAE](./SD_VAE/README_cn.md)
* [seq-VAE](./seq_VAE/README_cn.md)
9 changes: 9 additions & 0 deletions apps/molecular_generation/README_cn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 分子生成模型

[中文版本](./README_cn.md) [English Version](./README.md)

我们提供以下分子生成模型。

* [JT-VAE](./JT_VAE/README_cn.md)
* [SD-VAE](./SD_VAE/README_cn.md)
* [seq-VAE](./seq_VAE/README_cn.md)