How phai-lab/viewnext works
ViewNeXt is a MiniMax-H3-based novel-view-synthesis application. The main workflow takes a scene specification, posed context images, and a caption through the inference CLI/API; it loads the base model and adapter, conditions generation on camera geometry, and produces target-view images or camera-path video. The repository also contains audio/video pipeline support and shared model/runtime infrastructure. README statements establish the user-facing modes and loading workflow; source-index references and the excerpts support the internal links shown. Unsampled implementation details are not inferred.
Main entry points: minimax_h3_nvs.py NVS pipeline · minimax_h3_dit.py MiniMax-H3 DiT · minimax_h3_audio_video.py Audio/video pipeline · model.py NVS model API
Components 22
Inference workflow
- Inference CLI
inference/cli.py - Scene parsing
inference/scene.py - Caption encoding
inference/captions.py - NVS model API
inference/model.py
View synthesis
- NVS pipeline
diffsynth/pipelines/minimax_h3_nvs.py - Video layouts
diffsynth/nvs/video.py - Camera geometry
diffsynth/nvs/cameras.py - Camera tokens
diffsynth/nvs/camera_tokens.py - Relative camera branch
diffsynth/nvs/camera_branch.py - Camera AdaLN
diffsynth/nvs/camera_adaln.py - Camera PRoPE
diffsynth/nvs/prope.py - Frame query tokens
diffsynth/nvs/frame_query_tokens.py - Adapter loading
diffsynth/nvs/checkpoint.py
H3 model components
- MiniMax-H3 DiT
diffsynth/models/minimax_h3_dit.py - Text encoder
diffsynth/models/minimax_h3_text_encoder.py - Video VAE
diffsynth/models/minimax_h3_video_vae.py - Audio/video pipeline
diffsynth/pipelines/minimax_h3_audio_video.py
Shared runtime
- Attention backend
diffsynth/core/attention/attention.py - Device support
diffsynth/core/device/npu_compatible_device.py - LoRA utilities
diffsynth/utils/lora/general.py
Other components
- Scene user
- Generated views
Connections 28
- Scene user → Inference CLI: runs commands
README.md - Inference CLI → Scene parsing: loads scene
inference/cli.py - Inference CLI → Caption encoding: encodes caption
inference/cli.py - Inference CLI → NVS model API: invokes generation
inference/cli.py - NVS model API → Scene parsing: accepts scene data
inference/model.py - NVS model API → NVS pipeline: loads mode pipeline
inference/model.py - NVS model API → Adapter loading: loads adapter
inference/model.py - NVS model API → Generated views: returns generated views
inference/model.py - NVS pipeline → MiniMax-H3 DiT: runs denoising
diffsynth/pipelines/minimax_h3_nvs.py - NVS pipeline → Camera geometry: uses camera inputs
diffsynth/pipelines/minimax_h3_nvs.py - NVS pipeline → Camera tokens: configures camera tokens
diffsynth/pipelines/minimax_h3_nvs.py - NVS pipeline → Camera AdaLN: uses camera encoding
diffsynth/pipelines/minimax_h3_nvs.py - NVS pipeline → Relative camera branch: uses camera branch
diffsynth/pipelines/minimax_h3_nvs.py - NVS pipeline → Camera PRoPE: uses camera PRoPE
diffsynth/pipelines/minimax_h3_nvs.py - NVS pipeline → Frame query tokens: uses frame queries
diffsynth/pipelines/minimax_h3_nvs.py - NVS pipeline → Video layouts: uses video layouts
diffsynth/pipelines/minimax_h3_nvs.py - MiniMax-H3 DiT → Relative camera branch: applies branch
diffsynth/models/minimax_h3_dit.py - MiniMax-H3 DiT → Camera PRoPE: applies camera PRoPE
diffsynth/models/minimax_h3_dit.py - MiniMax-H3 DiT → Attention backend: runs attention
diffsynth/models/minimax_h3_dit.py - Video layouts → Camera tokens: uses camera tokens
diffsynth/nvs/video.py - Video layouts → Frame query tokens: packs frame queries
diffsynth/nvs/video.py - Audio/video pipeline → MiniMax-H3 DiT: uses DiT model
diffsynth/pipelines/minimax_h3_audio_video.py - Audio/video pipeline → Video VAE: decodes video
diffsynth/pipelines/minimax_h3_audio_video.py - Audio/video pipeline → Text encoder: uses text encoder
diffsynth/pipelines/minimax_h3_audio_video.py - Audio/video pipeline → Device support: uses device support
diffsynth/pipelines/minimax_h3_audio_video.py - Audio/video pipeline → LoRA utilities: uses LoRA support
diffsynth/pipelines/minimax_h3_audio_video.py - MiniMax-H3 DiT → Relative camera branch: consumes camera inputs
diffsynth/models/minimax_h3_dit.py - Scene user → Caption encoding: provides caption
README.md