tgm dlm
1.0.0

This is the code for the AAAI 2024 Paper: Text-Guided Molecule Generation with Diffusion Language Model.
cd TGMDLMCODE; pip install -e improved-diffusion/; pip install -e transformers/.scibert.cd improved-diffusion; cd scriptspython process_text.py -i train_val_256; python process_text.py -i testpython train.pypython train_correct_withmask.pyThe following details are important for you to know before you actually train this model by yourself!
python text_sample.py; python post_sample.py The final file OURMODEL_OUTPUT.txt is our output.you can evaluate all metrics except for Text2Mol by runnning ev.py. For Text2Mol please go to MolT5 for more details.
Please cite our paper if you use the code:
@article{gong2024text,
title={Text-Guided Molecule Generation with Diffusion Language Model},
author={Gong, Haisong and Liu, Qiang and Wu, Shu and Wang, Liang},
volume={38},
url={https://ojs.aaai.org/index.php/AAAI/article/view/27761},
DOI={10.1609/aaai.v38i1.27761},
number={1},
journal={Proceedings of the AAAI Conference on Artificial Intelligence},
year={2024},
month={Mar.},
pages={109-117}
}
This code is based on https://github.com/XiangLi1999/Diffusion-LM and https://github.com/blender-nlp/MolT5