seoul-world-model
```markdown
What this skill does
```markdown
---
name: seoul-world-model
description: Skill for using the Seoul World Model — a world simulation model grounded in a real-world metropolis (Seoul) by Naver AI
triggers:
- seoul world model
- world simulation model
- grounding world model in real city
- street view world model
- naver seoul simulation
- urban world model inference
- seoul street view generation
- metropolis world model
---
# Seoul World Model
> Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection.
## What Is Seoul World Model?
**Seoul World Model** (by Naver AI) is a research project that grounds world simulation models in real-world urban data from Seoul, South Korea. It enables:
- **World simulation**: Generate realistic video continuations of street-level scenes in Seoul
- **Street-view interpolation**: Synthesize smooth video transitions between street-view frames
- **Urban scene understanding**: Leverage a large-scale real-world metropolis dataset for training/evaluation
The project provides:
- Model checkpoints for world simulation inference
- Synthetic training data (Seoul street-view)
- Street-view interpolation model code and checkpoints
> ⚠️ **Note**: As of March 2026, the repository is undergoing internal review. Model checkpoints, inference code, and training data are planned for release. Monitor the [project page](https://seoul-world-model.github.io/#tldr) and repository for updates.
---
## Installation
### Clone the Repository
```bash
git clone https://github.com/naver-ai/seoul-world-model.git
cd seoul-world-model
```
### Python Environment (Recommended)
```bash
# Create and activate a conda environment
conda create -n seoul-world-model python=3.10 -y
conda activate seoul-world-model
# Install dependencies (once requirements.txt is released)
pip install -r requirements.txt
```
### Common Deep Learning Dependencies (Anticipated)
Based on the project type (video generation / world models), install:
```bash
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
pip install diffusers transformers accelerate
pip install einops timm imageio[ffmpeg] opencv-python
pip install numpy pillow tqdm
```
---
## Project Structure (Anticipated)
```
seoul-world-model/
├── README.md
├── checkpoints/ # Model weights (to be released)
├── data/ # Synthetic training data (to be released)
├── inference/ # Inference scripts (to be released)
│ ├── world_model.py
│ └── interpolation.py
├── train/ # Training code (to be released)
├── configs/ # Model and training configs
└── utils/ # Utilities
```
---
## Key Concepts
| Component | Description |
|-----------|-------------|
| **World Simulation Model** | Generates future video frames conditioned on current observations and actions |
| **Street-View Interpolation** | Fills in smooth transitions between sparse street-view keyframes |
| **Seoul Dataset** | Large-scale real-world urban driving/walking data from Seoul |
| **Grounding** | Training on real-world data to improve simulation realism and physical plausibility |
---
## Inference (Anticipated API Pattern)
Once released, inference will likely follow this pattern:
### World Model Inference
```python
import torch
from PIL import Image
# Load model (path subject to change on release)
# from inference.world_model import SeoulWorldModel
# model = SeoulWorldModel.from_pretrained("checkpoints/world_model")
# model = model.to("cuda").eval()
# Prepare input frames
def load_frames(image_paths: list[str]) -> torch.Tensor:
from torchvision import transforms
transform = transforms.Compose([
transforms.Resize((256, 512)),
transforms.ToTensor(),
transforms.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]),
])
frames = [transform(Image.open(p).convert("RGB")) for p in image_paths]
return torch.stack(frames).unsqueeze(0) # (1, T, C, H, W)
# context_frames = load_frames(["frame_000.jpg", "frame_001.jpg", "frame_002.jpg"])
# Run generation
# with torch.no_grad():
# generated_frames = model.generate(
# context=context_frames.cuda(),
# num_frames=16,
# guidance_scale=7.5,
# )
# Save output
# save_video(generated_frames, "output.mp4", fps=10)
```
### Street-View Interpolation
```python
# Interpolate between two keyframe images
# from inference.interpolation import StreetViewInterpolator
# interpolator = StreetViewInterpolator.from_pretrained("checkpoints/interpolation")
# interpolator = interpolator.to("cuda").eval()
from PIL import Image
import torch
from torchvision import transforms
def preprocess_image(path: str, size=(256, 512)) -> torch.Tensor:
transform = transforms.Compose([
transforms.Resize(size),
transforms.ToTensor(),
transforms.Normalize([0.5]*3, [0.5]*3),
])
return transform(Image.open(path).convert("RGB")).unsqueeze(0)
# frame_a = preprocess_image("frame_start.jpg").cuda()
# frame_b = preprocess_image("frame_end.jpg").cuda()
# with torch.no_grad():
# interpolated = interpolator.interpolate(
# frame_a, frame_b,
# num_intermediate=8,
# )
# save_video(interpolated, "interpolated.mp4", fps=8)
```
### Utility: Save Video
```python
import imageio
import numpy as np
import torch
def save_video(frames: torch.Tensor, output_path: str, fps: int = 10):
"""
Save a tensor of frames as an MP4 video.
Args:
frames: Tensor of shape (T, C, H, W) in range [-1, 1] or [0, 1]
output_path: Path to save .mp4
fps: Frames per second
"""
# Denormalize if in [-1, 1]
if frames.min() < 0:
frames = (frames + 1) / 2
frames_np = (frames.clamp(0, 1).permute(0, 2, 3, 1).cpu().numpy() * 255).astype(np.uint8)
with imageio.get_writer(output_path, fps=fps, codec="libx264", quality=8) as writer:
for frame in frames_np:
writer.append_data(frame)
print(f"Saved video to {output_path}")
```
---
## Configuration (Anticipated)
World model configs will likely be YAML-based:
```yaml
# configs/world_model.yaml (example structure)
model:
type: "SeoulWorldModel"
checkpoint: "checkpoints/world_model/model.ckpt"
image_size: [256, 512]
num_frames: 16
temporal_stride: 2
inference:
guidance_scale: 7.5
num_inference_steps: 50
seed: 42
device: "cuda"
data:
context_frames: 3
fps: 10
```
Load config in Python:
```python
import yaml
def load_config(config_path: str) -> dict:
with open(config_path, "r") as f:
return yaml.safe_load(f)
config = load_config("configs/world_model.yaml")
print(config["model"]["checkpoint"])
```
---
## Environment Variables
```bash
# Set GPU device
export CUDA_VISIBLE_DEVICES=0
# Set checkpoint directory (if configurable via env)
export SEOUL_WM_CHECKPOINT_DIR=/path/to/checkpoints
# For HuggingFace model downloads (if applicable)
export HF_HOME=/path/to/hf_cache
export HUGGINGFACE_HUB_TOKEN=$HF_TOKEN # do NOT hardcode tokens
```
---
## Common Patterns
### Batch Inference Over a Dataset
```python
import os
from pathlib import Path
def batch_infer(input_dir: str, output_dir: str, model, batch_size: int = 4):
input_dir = Path(input_dir)
output_dir = Path(output_dir)
output_dir.mkdir(parents=True, exist_ok=True)
scene_dirs = sorted([d for d in input_dir.iterdir() if d.is_dir()])
for scene_dir in scene_dirs:
frames = sorted(scene_dir.glob("*.jpg"))
if len(frames) < 3:
continue
context = load_frames([str(f) for f in frames[:3]])
with torch.no_grad():
output = model.generate(context.cuda(), num_frames=16)
out_path = output_dir / f"{scene_dir.name}_generated.mp4"
save_video(output.squeeze(0), str(out_path))
print(f"Processed: {scene_dir.name}")
```
### Evaluate Temporal Consistency (FVD-style)
```python
impoRelated in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.