tgm dlm
1.0.0

นี่คือรหัสสำหรับกระดาษ AAAI 2024: การสร้างโมเลกุลที่นำด้วยข้อความพร้อมแบบจำลองภาษาการแพร่กระจาย
cd TGMDLMCODE; pip install -e improved-diffusion/; pip install -e transformers/scibertcd 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 เป็นเอาต์พุตของเรา คุณสามารถประเมินตัวชี้วัดทั้งหมดยกเว้น text2mol โดย runnning ev.py สำหรับ 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