π₯ Convert any NeRF paper into trainable code. π₯
Seemandhar Jain Β· Keshav Gupta Β· Kunal Gupta Β· Manmohan Chandraker
University of California, San Diego
π Converting research papers into trainable Nerfstudio plugins β from weeks to minutes.
nerfify-demo.1.1.mp4
NERFIFY is a multi-agent framework that automatically converts NeRF research papers into complete, trainable NeRFStudio implementations. Given an arXiv ID or PDF, the pipeline parses the paper, plans the implementation, generates code, reviews it, tests it, and debugs any failures β all autonomously.
This repository contains two implementations of the same pipeline built on different agentic frameworks:
nerfify/ |
nerfify-crew/ |
|
|---|---|---|
| Framework | Claude Agent SDK | CrewAI |
| Multi-model support | Via LiteLLM proxy | Native (LiteLLM built-in) |
| Web search | Claude WebSearch tool | DuckDuckGo + httpx |
| Orchestration | Single orchestrator agent | CrewAI sequential process |
| Agent communication | Via Agent tool | CrewAI context passing |
| Streaming | SSE + terminal | CrewAI verbose + event bus |
Both versions implement the same 7-agent pipeline and produce identical outputs. Choose whichever framework fits your setup.
The pipeline uses 7 specialized AI agents orchestrated sequentially:
Paper (PDF / arXiv ID / URL)
β
ββ [1] Parser ββββββββββββ Download PDF β Mineru extraction β clean markdown
β (removes narrative, keeps equations/architecture/losses)
β
ββ [2] Citation Recovery ββ Fetch missing implementation details from cited papers
β (optional, skipped with --fast if paper is self-contained)
β
ββ [3] Planner ββββββββββββ Design dependency DAG + file generation order
β (chooses Nerfacto vs Vanilla NeRF base architecture)
β
ββ [4] Coder ββββββββββββββ Generate complete NeRFStudio method (8 files)
β (uses templates + in-context examples + self-check)
β
ββ [5] Reviewer βββββββββββ Code review for imports, API mismatches, consistency
β (optional, skip with --no-review)
β
ββ [6] Tester βββββββββββββ Smoke test: pip install β import β 10-iter training
β
ββ [7] Debugger βββββββββββ Diagnose & fix errors (up to 3 iterations)
+ PSNR debugging if --train enabled
| Agent | Tools |
|---|---|
| Parser | web_search, web_fetch, file_read, file_write, shell, file_glob, clean_paper |
| Citation Recovery | web_search, web_fetch, file_read, file_write |
| Planner | web_search, web_fetch, file_read, file_write |
| Coder | web_search, web_fetch, file_read, file_write, file_glob, shell |
| Reviewer | web_search, web_fetch, file_read, file_write, file_glob |
| Tester | file_read, shell |
| Debugger | web_search, web_fetch, file_read, file_write, file_glob, shell |
- Python >= 3.10
- A NeRFStudio installation (with CUDA-enabled PyTorch)
- At least one LLM API key (Anthropic, OpenAI, or Google)
- Mineru for PDF extraction
Open-source, multi-model out of the box.
git clone https://github.com/seemandhar/NERFIFY-code.git
cd NERFIFY-code/nerfify-crew
# Install
pip install -e .
# Configure API keys
cp .env.example .env
# Edit .env with your key(s)
# Run from arXiv
python main.py --arxiv 2308.12345
# Run with options
python main.py --arxiv 2308.12345 --fast --no-review
python main.py --pdf /path/to/paper.pdf --method-name my_nerf
python main.py --arxiv 2308.12345 --train --gpu 0 --dataset blender
python main.py --arxiv 2308.12345 --model openai/gpt-4o --coder-model openai/gpt-4.1
python main.py --arxiv 2308.12345 --tiered
# Web UI
python web.py # http://127.0.0.1:5000Dependencies (from pyproject.toml):
crewai[tools]>=0.118.0langchain-anthropic,langchain-openai,langchain-google-genaiddgs>=8.0,mineru,flask>=3.0,httpx>=0.25
Uses the Claude Agent SDK with a single orchestrator agent.
cd NERFIFY-code/nerfify
# Install dependencies
pip install -r requirements.txt
# Set API key
export ANTHROPIC_API_KEY=sk-ant-...
# Run from arXiv
python main.py --arxiv 2308.12345
# Run with options
python main.py --arxiv 2308.12345 --fast --no-review
python main.py --pdf /path/to/paper.pdf --method-name my_nerf
python main.py --arxiv 2308.12345 --train --gpu 0 --dataset blender
# Web UI
python web.py # http://127.0.0.1:5000
# API server
python main_api.py# Required: at least one LLM API key
ANTHROPIC_API_KEY=sk-ant-...
# OPENAI_API_KEY=sk-...
# GOOGLE_API_KEY=...
# Optional: model overrides
# NERFIFY_CODER_MODEL=anthropic/claude-opus-4-6
# NERFIFY_DEFAULT_MODEL=anthropic/claude-sonnet-4-20250514
# NERFIFY_CHEAP_MODEL=anthropic/claude-haiku-4-5-20251001
# Optional: nerfstudio conda environment name
# NERFSTUDIO_CONDA_ENV=nerfstudio| Argument | Description | Default |
|---|---|---|
--arxiv ID |
arXiv paper ID | β |
--pdf PATH |
Local PDF file path | β |
--url URL |
PDF download URL | β |
--method-name |
Override generated method name | Auto-generated |
--model |
Default LLM for all agents | anthropic/claude-sonnet-4-20250514 |
--coder-model |
LLM for code generation (most expensive) | Same as --model |
--no-review |
Skip the code review stage | False |
--no-test |
Skip the smoke testing stage | False |
--fast |
Skip citation recovery if paper is self-contained | False |
--train |
Run full training + PSNR feedback | False |
--gpu |
GPU device ID for training | 0 |
--data |
Path to training dataset | Built-in synthetic |
--dataset |
Dataset type: blender, mipnerf360, llff |
blender |
--tiered |
Use model tiering per agent (CrewAI only) | False |
Both versions support multiple LLM providers. The CrewAI version supports any LiteLLM-compatible model natively; the Claude SDK version supports multi-model via a LiteLLM proxy.
| Provider | Model String | Required Env Var |
|---|---|---|
| Anthropic | anthropic/claude-sonnet-4-20250514 |
ANTHROPIC_API_KEY |
| OpenAI | openai/gpt-4o |
OPENAI_API_KEY |
google/gemini-2.5-pro |
GOOGLE_API_KEY |
With --tiered, agents are assigned different model tiers based on task complexity:
| Tier | Anthropic | OpenAI | Gemini | Assigned To |
|---|---|---|---|---|
| CHEAP | claude-haiku-4-5 | gpt-4o-mini | gemini-2.5-flash | Parser, Tester |
| MID | claude-sonnet-4 | gpt-4o | gemini-2.5-pro | Planner, Reviewer, Citation Recovery |
| EXPENSIVE | claude-sonnet-4 | gpt-4.1 | gemini-2.5-pro | Coder, Debugger |
NERFIFY-code/
βββ readme.md
β
βββ nerfify/ # Claude Agent SDK version
β βββ main.py # CLI entry point
β βββ main_api.py # API server
β βββ config.py # Pipeline configuration
β βββ eval.py # Evaluation utilities
β βββ litellm_proxy.py # LiteLLM proxy for multi-model
β βββ read_tb.py # TensorBoard PSNR extraction
β βββ web.py # Flask web UI
β βββ requirements.txt # Dependencies
β βββ agents/
β β βββ definitions.py # Agent definitions
β βββ base-code/ # NeRFStudio method templates
β βββ PapersAndCode/ # In-context examples (paper/code pairs)
β βββ implementations/ # Example generated implementations
β βββ templates/ # Web UI frontend
β βββ demo-images/ # Demo screenshots
β
βββ nerfify-crew/ # CrewAI version
β βββ main.py # CLI entry point
β βββ crew.py # CrewAI Crew assembly + execution
β βββ config.py # Pipeline configuration + model tiers
β βββ tasks.py # 7 task definitions with dependencies
β βββ read_tb.py # TensorBoard PSNR extraction
β βββ web.py # Flask web UI with SSE streaming
β βββ pyproject.toml # Package definition + dependencies
β βββ .env.example # API key template
β βββ agents/
β β βββ definitions.py # Build 7 CrewAI Agent objects
β β βββ prompts.py # Agent role/goal/backstory prompts
β βββ tools/
β β βββ web_search.py # DuckDuckGo search + httpx fetch
β β βββ file_ops.py # File read/write/glob
β β βββ shell.py # Shell command execution
β β βββ clean_paper.py # LLM-based paper cleaning
β βββ base-code/ # NeRFStudio method templates
β βββ PapersAndCode/ # In-context examples (paper/code pairs)
β βββ templates/ # Web UI frontend
β
βββ workspace/ # Per-run intermediate files (auto-generated)
βββ generated/ # Per-run generated implementations (auto-generated)
Each run produces a complete NeRFStudio method:
generated/<run_id>/
βββ method_template/
β βββ __init__.py # Exports method_spec entry point
β βββ template_config.py # MethodSpecification + hyperparameters
β βββ template_model.py # Paper-specific model + loss functions
β βββ template_field.py # Custom field architecture (encodings, MLPs)
β βββ template_datamanager.py # Data pipeline configuration
β βββ template_pipeline.py # DDP-aware model/data wiring
βββ pyproject.toml # Dependencies + NeRFStudio entry point
βββ README.md # Generated method docs + usage
βββ training_outputs/ # Training results (if --train enabled)
cd generated/<run_id>
# Install the generated method
pip install -e .
# Register with NeRFStudio
ns-install-cli
# Train
ns-train <method-name> --data /path/to/dataset- User provides a research paper (arXiv ID, PDF, or URL)
- Parser downloads and extracts the PDF using Mineru, then cleans it into implementation-focused markdown (equations, architecture, losses, hyperparameters)
- Citation Recovery (optional) fetches missing implementation details from cited papers
- Planner designs the NeRFStudio architecture with a dependency DAG and file generation order
- Coder generates all implementation files using templates and in-context examples, with a mandatory self-check
- Reviewer (optional) performs code review for imports, API mismatches, and consistency
- Tester runs smoke tests:
pip installβ import check β 10-iteration training - Debugger fixes any errors (up to 3 iterations), with optional PSNR debugging
- Output: Complete, installable NeRFStudio package ready to use with
ns-train
If you find this work useful, please cite:
@inproceedings{jain2026nerfify,
title={NERFIFY: A Multi-Agent Framework for Turning NeRF Papers into Code},
author={Jain, Seemandhar and Gupta, Keshav and Gupta, Kunal and Chandraker, Manmohan},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
pages={24384--24394},
year={2026}
}