现在可以使用全流程生成 manim 代码以及对应的讲解稿了。
一个例子供大家用,Feel free to have fun!
python master_pipeline.py 2024.acl-long.810.md images
python master_pipeline.py <论文markdown> <markdown对应的图片文件夹路径>- Python环境: Python 3.7+
- 依赖包:
pip install Pillow
- API密钥: 需要配置GPT API密钥,
config.json中需要配置 - 输入文件: Markdown 格式的论文文件
- 图片目录: 论文相关的图片文件夹
cd Method_Agent
chmod +x pipeline.py # 给脚本执行权限
python pipeline.py your_paper.mdcd Method_Agent
python pipeline.py your_paper.mdpython pipeline.py paper.md --output-base-dir ./output --images-dir ./images这里举个简单的例子,have a try 😊!
python pipeline.py paper_info/ChatDev/ChatDev.md --images-dir paper_info/ChatDev/ChatDev_images --output-base-dir ChatDev_outputpaper.md: 输入的论文文件(必须)--output-base-dir: 输出目录(可选,默认./pipeline_output)--images-dir: 图片目录
输出:
output/
├── 论文名_segmentation/ # AI智能分割结果
│ └── split_pages/ # 每页独立的md文件
├── 论文名_generated_code/ # 每页对应的Manim动画代码
└── 论文名_generated_speech/ # 每页对应的配音文本