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
累計下載
1413
星標
1
全站排名
#4,824
全站前 95% · 「專業領域」前 96%
平台累計安裝累計下載星標評論
ClawHub ↗3612841-
SkillHub ↗12314131—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文描述由 Retriever、Planner、Stylist、Visualizer 和 Critic 協作的圖像生成流程,並可設定候選數量、模型、畫幅和輸出檔案路徑;執行會呼叫模型提供方,候選並行可能帶來費用和耗時。應審查本地匯入及網路下載行為,使用明確的輸入輸出路徑,並在測試時控制候選數和批評輪次。

資料釋出於 2026-10-29

可以用來做什麼

  • 將論文方法流程整理為圖示任務
  • 規劃方法文字、圖注、畫幅和輸出檔案引數
  • 評估多模型候選生成的成本和路徑風險

什麼時候用

  • 使用者希望根據論文內容生成學術圖示,並已確認模型服務、費用、輸入材料與輸出路徑時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

不執行模型,先為一段方法文字設計圖示輸入、圖注和輸出路徑方案。
測試 PaperBanana 前列出需要確認的外部模型呼叫、下載和檔案路徑風險。

月度資料趨勢

累計下載1413
46097214842026-03 · 累計下載 5312026-05 · 累計下載 8782026-07 · 累計下載 11212026-08 · 累計下載 12122026-09 · 累計下載 141326-0326-09
星標1
0112026-03 · 星標 -2026-05 · 星標 12026-07 · 星標 12026-08 · 星標 12026-09 · 星標 126-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-091413—1
2026-081212+8.1%1
2026-071121—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),按月更新。口徑說明見資料方法。