dwzhu-pku

PaperBanana

专业领域v0.1.0
作者:dwzhu-pku更新于 2026-05-11paperbanana@clawhub_dwzhu-pku/paperbanana
科研学术

据 AlphaMoat 统计,截至 2026-09,PaperBanana 累计下载 1,413 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 4,824 位,在「专业领域」分类(465 个)中排名第 442 位。

累计安装
123
累计下载
1,413
星标
1
全站排名
#4,824
全站前 95% · 「专业领域」前 96%
平台累计安装累计下载星标评论
ClawHub ↗361,2841-
SkillHub ↗1231,4131—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文描述由 Retriever、Planner、Stylist、Visualizer 和 Critic 协作的图像生成流程,并可设置候选数量、模型、画幅和输出文件路径;运行会调用模型提供方,候选并行可能带来费用和耗时。应审查本地导入及网络下载行为,使用明确的输入输出路径,并在测试时控制候选数和批评轮次。

资料发布于 2026-10-29

可以用来做什么

  • 将论文方法流程整理为图示任务
  • 规划方法文本、图注、画幅和输出文件参数
  • 评估多模型候选生成的成本和路径风险

什么时候用

  • 用户希望根据论文内容生成学术图示,并已确认模型服务、费用、输入材料与输出路径时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

不运行模型,先为一段方法文本设计图示输入、图注和输出路径方案。
测试 PaperBanana 前列出需要确认的外部模型调用、下载和文件路径风险。

月度数据趋势

累计下载1,413
4609721,4842026-03 · 累计下载 5312026-05 · 累计下载 8782026-07 · 累计下载 1,1212026-08 · 累计下载 1,2122026-09 · 累计下载 1,41326-0326-09
星标1
0112026-03 · 星标 -2026-05 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 126-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-091,413—1
2026-081,212+8.1%1
2026-071,121—1
2026-05878—1
2026-03531—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.1 KB · ClawHub v0.1.0
---
name: paperbanana
description: Generate publication-quality academic diagrams from paper methodology text
license: MIT-0
dependencies:
  env:
    - OPENROUTER_API_KEY (recommended)
    - GOOGLE_API_KEY (alternative)
  runtime:
    - python3
展开全部(共 103 行)
    - uv
---

# PaperBanana

Generate publication-quality academic diagrams and pipeline figures from a paper's methodology section and figure caption. PaperBanana orchestrates a multi-agent pipeline (Retriever, Planner, Stylist, Visualizer, Critic) to produce camera-ready figures suitable for venues like NeurIPS, ICML, and ACL.

## Environment Setup

```bash
cd <repo-root>
uv pip install -r requirements.txt
```

Set your API key via environment variable or in `configs/model_config.yaml`.

**Option 1 (Recommended): OpenRouter API key** — one key for both text reasoning and image generation:
```bash
export OPENROUTER_API_KEY="sk-or-v1-..."
```

**Option 2: Google API key** — direct access to Gemini API:
```bash
export GOOGLE_API_KEY="your-key-here"
```

If both keys are configured, OpenRouter is used by default.

## Usage

```bash
python skill/run.py \
  --content "METHOD_TEXT" \
  --caption "FIGURE_CAPTION" \
  --task diagram \
  --output output.png
```

## Parameters

| Parameter | Required | Default | Description |
|-----------|----------|---------|-------------|
| `--content` | Yes* | | Method section text to visualize |
| `--content-file` | Yes* | | Path to a file containing the method text (alternative to `--content`) |
| `--caption` | Yes | | Figure caption or visual intent |
| `--task` | No | `diagram` | Task type: `diagram` |
| `--output` | No | `output.png` | Output image file path |
| `--aspect-ratio` | No | `21:9` | Aspect ratio: `21:9`, `16:9`, or `3:2` |
| `--max-critic-rounds` | No | `3` | Maximum critic refinement iterations |
| `--num-candidates` | No | `10` | Number of parallel candidates to generate |
| `--retrieval-setting` | No | `auto` | Retrieval mode: `auto`, `manual`, `random`, or `none` |
| `--main-model-name` | No | `gemini-3.1-pro-preview` | Main model for VLM agents. Provider auto-detected from configured API key |
| `--image-gen-model-name` | No | `gemini-3.1-flash-image-preview` | Model for image generation. Also supports `gemini-3-pro-image-preview` |
| `--exp-mode` | No | `demo_full` | Pipeline: `demo_full` (with Stylist) or `demo_planner_critic` (without Stylist) |

*One of `--content` or `--content-file` is required.

When `--num-candidates` > 1, output files are named `<stem>_0.png`, `<stem>_1.png`, etc.

## Output

The absolute path of each saved image is printed to stdout, one per line.

## Examples

### Diagram

```bash
python skill/run.py \
  --content "We propose a transformer-based encoder-decoder architecture. The encoder consists of 12 self-attention layers with residual connections. The decoder uses cross-attention to attend to encoder outputs and generates the target sequence autoregressively." \
  --caption "Figure 1: Overview of the proposed transformer architecture" \
  --task diagram \
  --output architecture.png
```


## Important Notes

- **Runtime**: A single candidate typically takes 3-10 minutes depending on model and network conditions. With the default 10 candidates running in parallel, expect ~10-30 minutes total. Plan accordingly.
- **API calls**: Each candidate involves multiple LLM calls (Retriever + Planner + Stylist + Visualizer + up to 3 Critic rounds). Candidates run in parallel for efficiency.
- **Image generation**: The Visualizer agent calls an image generation model (Gemini Image) to render diagrams.

## About

PaperBanana is based on the **PaperVizAgent** framework, a reference-driven multi-agent system for automated academic illustration. It was developed as part of the research paper:

> **PaperBanana: Automating Academic Illustration for AI Scientists**
> Dawei Zhu, Rui Meng, Yale Song, Xiyu Wei, Sujian Li, Tomas Pfister, Jinsung Yoon
> arXiv:2601.23265

The framework introduces a collaborative team of five specialized agents — Retriever, Planner, Stylist, Visualizer, and Critic — to transform raw scientific content into publication-quality diagrams. Evaluation is conducted on the **PaperBananaBench** benchmark.

「专业领域」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。