Skip to content

Overview & Scope Boundaries ​

FrameFlow unifies neural optical-flow frame interpolation (GameFI) and real-time 2× super-resolution (GameSR) into a single export specification and zero-dependency browser inference suite (WebGPU Compute -> WebGL2 Fragment Shaders).

Component Layers ​

LayerResponsibilityKey Files
Model & Export (frameflow/)GameFINet, GameSRNet, shaders-matched operators, losses, and format_version=1 exportersframeflow/model.py, frameflow/sr_model.py
Browser Runtime (runtime/)Capability probing, WebGPU/WebGL2 backends, binary16 loader, and zero-stall pacerruntime/index.js, runtime/loader.js
Pipelines & Scripts (scripts/)Open-media slicing, bf16 training & KD, Edge parity verification, and release bundlingscripts/train.py, scripts/package_release.py
Fast CPU Tests (tests/)Deterministic PyTorch checks + zero-GPU Node loader & pacer unit teststests/test_frameflow.py, tests/test_runtime_node.mjs

Model Presets ​

ModelPresetTaskParamsBinary16 SizeRecommended Target
GameFI-Stdstdinterp775,811~1.52 MBDesktop iGPU/dGPU & flagship mobile WebGPU
GameFI-Liteliteinterp222,179~434 KBUniversal WebGL2 fallback & mobile targets
GameSR-Stdsr_stdsr (2×)~11,548~22.6 KBHigher-detail 2× edge and UI sharpening
GameSR-Litesr_litesr (2×)~6,936~13.5 KBUltra-lightweight 2× scaling in WebGPU / WebGL2

Continue to Browser & Emulator Integration, Training, Distillation & Releases, or API & Format Reference.