AlayaRenderer — Generative World Renderer
Skill by ara.so — Daily 2026 Skills collection.
AlayaRenderer is a two-stage framework for high-quality video rendering:
- Inverse Renderer (RGB → G-buffers): Extracts albedo, normal, depth, roughness, and metallic maps from RGB video using a fine-tuned Cosmos-Transfer1-DiffusionRenderer 7B model.
- Game Editing (G-buffers + Text → Stylized RGB): Synthesizes photorealistic, stylized RGB video from G-buffer inputs using a fine-tuned Wan2.1 1.3B model via DiffSynth-Studio.
Installation
Clone the Repository
Important: Use
--recurse-submodules— DiffSynth-Studio is a git submodule required for Game Editing.
Two Separate Conda Environments (Recommended)
The two models have conflicting dependencies. Use separate environments:
Model Weights
Download and Place Weights
Inverse Renderer Usage
The inverse renderer decomposes an RGB video into 5 G-buffer channels: albedo, normal, depth, roughness, metallic.
Setup
Inference
Refer to the inverse_renderer/ subdirectory for the full inference script. The general pattern follows Cosmos-Transfer1-DiffusionRenderer conventions:
Game Editing Usage
Quick Start — CLI Inference
CLI Parameters
G-buffer Directory Structure
Style Prompt Examples
Multi-GPU Inference
Full Pipeline: RGB Video → Stylized Output
Online Demos
Dataset Overview
The AlayaRenderer dataset (release pending) features:
- 4M+ frames at 720p / 30 FPS
- 6 synchronized channels: RGB + albedo, normal, depth, metallic, roughness
- 40 hours from Cyberpunk 2077 and Black Myth: Wukong
- Average clip length: 8 minutes, up to 53 minutes continuous
- Weather variants: sunny, rainy, foggy, night, sunset
- Motion blur variant via sub-frame interpolation
Architecture Summary
Troubleshooting
Submodule not found / DiffSynth-Studio missing
CUDA Out of Memory
- Reduce
--num_frames(try41instead of81) - Reduce resolution:
--height 320 --width 576 - Ensure no other processes are using the GPU:
CUDA_VISIBLE_DEVICES=0
num_frames must follow 8n+1 pattern
Valid values: 9, 17, 25, 33, 41, 49, 57, 65, 73, 81
Checkpoint not found
Version conflicts between models
Always use the two separate conda environments (inverse_renderer and game_editing). Do not install both models' dependencies in one environment.

