tgm dlm
1.0.0

これは、AAAI 2024 Paper:拡散言語モデルを備えたテキスト誘導分子生成のコードです。
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.py次の詳細は、実際にこのモデルを自分で訓練する前に知ることが重要です!
python text_sample.py; python post_sample.py最終ファイルOURMODEL_OUTPUT.txtは出力です。ev.pyを実行することにより、text2molを除くすべてのメトリックを評価できます。 text2molについては、詳細についてはmolt5にアクセスしてください。
コードを使用する場合は、私たちの論文を引用してください。
@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}
}
このコードは、https://github.com/xiangli1999/diffusion-lmおよびhttps://github.com/blender-nlp/molt5に基づいています