Skip to content

Nahtreom/Paper2Video

Repository files navigation

全流程

现在可以使用全流程生成 manim 代码以及对应的讲解稿了。

一个例子供大家用,Feel free to have fun!

python master_pipeline.py 2024.acl-long.810.md images
python master_pipeline.py <论文markdown> <markdown对应的图片文件夹路径>

Chapter · Method

🛠️ 需要准备什么

  1. Python环境: Python 3.7+
  2. 依赖包:
    pip install Pillow
  3. API密钥: 需要配置GPT API密钥,config.json中需要配置
  4. 输入文件: Markdown 格式的论文文件
  5. 图片目录: 论文相关的图片文件夹

怎么跑程序

第一次用

cd Method_Agent
chmod +x pipeline.py  # 给脚本执行权限
python pipeline.py your_paper.md

Quick Start

cd Method_Agent
python pipeline.py your_paper.md

完整用法

python 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_output

参数说明

  • paper.md: 输入的论文文件(必须)
  • --output-base-dir: 输出目录(可选,默认./pipeline_output)
  • --images-dir: 图片目录

📊 基本效果

输出:

output/
├── 论文名_segmentation/        # AI智能分割结果
│   └── split_pages/           # 每页独立的md文件
├── 论文名_generated_code/     # 每页对应的Manim动画代码
└── 论文名_generated_speech/   # 每页对应的配音文本

About

Code for Paper2Video Agent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages