🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

About

Paper2Demo: Turn any academic PDF into a stunning demo video

Resources

Stars

13 stars

Watchers

0 watching

Forks

Repository files navigation

Paper2Demo Logo

Paper2Demo: Turn any academic PDF into a stunning demo video β€” fully automatically.

Drop in a research paper. Walk away with a production-quality video presentation.

License: MIT Python Remotion DeepSeek

⚠️ Early version β€” This is a v0 prototype. Expect rough edges. Contributions and feedback are very welcome.


πŸ”§ How It Works


The overall architecture of the Paper2Demo pipeline.The system transforms a raw PDF into a dynamic video via three main modules: local spatial extraction (extractor.py), AI-driven semantic structuring and summarization (analyzer.py), and dynamic video rendering with spring-physics animations (Remotion)


πŸŽ₯ Demo

OBS-Diff: Accurate Pruning for Diffusion Models in One-Shot

OBS-DIFF--ACCURATE-PRUNING-FOR-DIFFUSION.mp4

A real video abstract generated entirely by Paper2Demo.

✨ What it does

Given a PDF like this:

Attention Is All You Need (Vaswani et al., NeurIPS 2017)

It produces a ~30-second animated video with:

  • Title scene β€” paper title, authors, venue, adaptive color theme
  • Problem scene β€” the challenge the paper addresses, with animated bullet cards
  • Method scene β€” pipeline diagram + the paper's own architecture figure
  • Contributions scene β€” key contributions in a clean grid layout
  • Results scene β€” quantitative stats + the paper's results figure

Every video is automatically themed based on the paper's domain β€” blue for efficiency/compression, purple for generative models, teal for NLP, orange for RL, and more.


πŸš€ Quick Start

1. Clone and install

git clone https://github.com/yourusername/paper2demo
cd paper2demo

# Remotion (video renderer)
npm install

# Python pipeline
cd paper2demo
pip install -r requirements.txt

2. Get an API key

DeepSeek is recommended β€” cheap, fast, and works globally. Analyzing a full paper costs roughly $0.01.

export DEEPSEEK_API_KEY=sk-...

# Or use Google Gemini
export GEMINI_API_KEY=AIza...

3. Run

cd paper2demo
python main.py /path/to/paper.pdf

4. Preview

cd ..
npm run dev
# Open http://localhost:3000 β†’ select PaperDemo

5. Export

npx remotion render PaperDemo

That's it. One command, one video.


🎨 Adaptive Themes

The AI detects the paper's domain and applies a matching color theme automatically.

Domain Theme Palette
Model Compression / Pruning efficiency Blue Β· Purple
Image Generation / Diffusion creative Purple Β· Pink
NLP / Large Language Models language Teal Β· Green
Reinforcement Learning action Orange Β· Amber
Computer Vision vision Sky Blue Β· Indigo
Multimodal (Vision-Language) fusion Cyan Β· Magenta
Robotics robotics Steel Β· Orange
Medical / Bioinformatics medical Blue Β· Aqua
Theory / Optimization academic Gold Β· Purple
Systems / Infrastructure systems Emerald Β· Blue

πŸ“ Project Structure

paper2demo/              Python pipeline
β”œβ”€β”€ main.py              CLI entry point
β”œβ”€β”€ extractor.py         PDF parsing β€” text + figures (PyMuPDF)
β”œβ”€β”€ analyzer.py          AI analysis β†’ paper-data.json
└── requirements.txt

src/PaperDemo/           Remotion video composition
β”œβ”€β”€ index.tsx            Main composition + calculateMetadata
β”œβ”€β”€ types.ts             TypeScript types for paper-data.json
β”œβ”€β”€ shared.tsx           Reusable animation hooks + components
└── scenes/
    β”œβ”€β”€ TitleScene.tsx
    β”œβ”€β”€ ProblemScene.tsx
    β”œβ”€β”€ MethodScene.tsx          ← embeds extracted figure
    β”œβ”€β”€ ContributionsScene.tsx
    └── ResultsScene.tsx         ← embeds extracted figure

public/paper/            Auto-generated (gitignored)
β”œβ”€β”€ paper-data.json
└── fig_*.png

βš™οΈ CLI Options

python main.py paper.pdf [--provider deepseek|gemini] [--output /path/to/project]
Flag Default Description
--provider deepseek AI provider (deepseek or gemini)
--output parent of paper2demo/ Remotion project root

πŸ’‘ Tips

Cost β€” A full 22-page paper costs ~$0.01 with DeepSeek. The chunked pipeline makes even 100-page papers affordable.

Figure quality β€” Figures are extracted at full resolution from the PDF. The AI matches each figure to the right scene by reading caption text, not by guessing filenames.

Speed β€” Extraction is instant (local). Analysis takes 30–60 seconds depending on paper length and provider. Rendering takes ~2 minutes on a modern laptop.


πŸ—ΊοΈ TODO List

  • Direct arXiv URL input (python main.py arxiv:2312.00752)
  • Multiple video templates (minimal white, magazine, cinematic)
  • AI-generated voiceover via ElevenLabs
  • Batch processing for reading lists
  • Auto-generate animated charts from paper tables
  • Web UI β€” drag and drop, no terminal needed

🀝 Contributing

PRs are welcome. If you make a video from a cool paper, share it and tag the repo.


About

Paper2Demo: Turn any academic PDF into a stunning demo video

Resources

Stars

13 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages