Image and video generation

Restore old footage with an RTX 5090: a local SwiftVR guide

SwiftVR restores contours and texture in existing video

SwiftVR takes a low-quality video file, restores its frames1, and saves an enlarged video file. It is a video-restoration model based on Wan2.2-TI2V-5B.

The example’s upscale=4 setting multiplies width and height resolution by four each. Check the source aspect ratio and pixel dimensions to decide whether the result fits your target display or editing format.

First check frame restoration and MP4 output with a short input, then process the full source file with the same settings. Check your own job’s completion time separately from published FPS2.

Requirements and key details
  • SwiftVR is a video-restoration model based on Wan2.2-TI2V-5B. Its input and purpose differ from prompt-based creation of a new scene.
  • The author reports about 26 FPS at 1080p on an RTX 5090 with BF16, default PyTorch SDPA, and causal chunks.
  • Check restored frames and MP4 output on a short clip, then use the same settings to time the full source file by wall clock.

Choose a clip and define what to check

If you want to watch an old 480p travel video on a large screen, start by checking whether people’s outlines and the edges of grass and buildings become clearer. SwiftVR is designed to restore contours and texture present in the source. Include motion stability as a criterion, not just still frames.

The model card is titled Real-Time One-Step Generative Video Restoration. SwiftVR is based on Wan2.2-TI2V-5B and was released in June 2026; this guide follows an example that restores an existing low-quality video.

Record the source frame rate, resolution, and duration. Match the playback size and clip segment when comparing. Inspecting several still frames along with motion helps separate contour preservation from stability across frames.

A desktop PC beside a monitor showing a road scene
Along with sharpness, check whether the road scene’s contours remain faithful to the source.

Read the published FPS together with its hardware and settings

The SwiftVR author reports about 26 FPS at 1080p on one RTX 5090 using BF163, default PyTorch4 SDPA, and causal chunks. This is a frame-processing rate. It does not guarantee the full video completion time, which also includes input reading and decoding5, chunk buffering, output encoding, and saving.

A separate model-card table reports an average of 0.766 seconds, 31.32 FPS, and 38.01 GB peak memory on a single H100 at 2560×1440, with causal streaming and 24 frames. The same card reports about 14 FPS for 4K on an H100. The GPU6 and resolution differ from the RTX 5090 1080p result, so do not read these as RTX 5090 results.

The LightX2V repository reports a 1.91× speedup per request and 65.71% lower peak GPU memory on a single H100 when running SwiftVR through its separate runner. Multiplying those figures by the roughly 26 FPS on a 5090 would create an unmeasured result. Establish the official runner as a baseline first; if you use LightX2V, measure it separately on the same RTX 5090, input, and output resolution.

Published results with different GPUs, resolutions, and runners are not interchangeable.
Published resultGPU and settingsWhat it describes
~26 FPS, 1080pRTX 5090, BF16, default SDPA, causal chunksModel-card result on a consumer GPU
31.32 FPS, QHD, 24 framesSingle H100, causal streamingSeparate H100 benchmark
~14 FPS, 4KSingle H100Reported H100 result at 4K
1.91×, 65.71% lower memoryLightX2V measurement on one H100Not applied to a 5090 estimate
A sequence of film frames shows a person riding past on a bicycle
Inspect the restoration across several moving frames as well as a still frame.

Prepare a CUDA 12.8 environment and run a short MP4

The repository example includes CUDA7 12.4 wheel commands for PyTorch 2.10.0 and torchvision 0.25.0, but that is not the setup to use unchanged on an RTX 5090. Install the same version pair from the official PyTorch CUDA 12.8 wheels, which support Blackwell sm_120, and check that your NVIDIA driver supports them. CUDA wheels include the user-space runtime8, separate from a local CUDA Toolkit installation. The weights and inference9 code are released under Apache-2.0.

Install the code in a separate environment and download weights from the H-oliday/SwiftVR model ID. The checkpoint10 folder must contain the ReAE weights, empty-prompt embeddings, and Diffusers-format transformer11 file directly inside it. In the check below, confirm CUDA reports 12.8, the GPU is an RTX 5090, and its capability is (12, 0); this also helps catch Python importing torch from another environment.

Install and verify CUDA 12.8 wheels for RTX 5090
git clone https://github.com/H-oliday/SwiftVR.git
cd SwiftVR
conda create -n swiftvr python=3.10 -y
conda activate swiftvr
python -m pip install torch==2.10.0 torchvision==0.25.0 --index-url https://download.pytorch.org/whl/cu128
python -m pip install -e .
python -c "import torch; print(torch.__version__, torch.version.cuda, torch.cuda.is_available()); print(torch.cuda.get_device_name(0), torch.cuda.get_device_capability(0)) if torch.cuda.is_available() else None"
huggingface-cli download H-oliday/SwiftVR --local-dir checkpoints/
Check that the GPU is shown, CUDA is 12.8, and capability is (12, 0).
Restore a short video
python scripts/inference.py \
  --input sample_short.mp4 \
  --output restored_short.mp4 \
  --checkpoint checkpoints/ \
  --upscale 4 \
  --clip-len 24 \
  --dtype bfloat16
Restore a short test clip and confirm that the MP4 output is saved through completion.

Check restored frames and the completed file separately

Play the output MP4 at the same display size as the source and check whether people’s outlines or background patterns changed. For important footage, compare source and restored frames from the same moment, including faces, text, and straight lines.

clip_len is the number of frames processed together over time; the repository example uses 24. Changing it can affect memory and chunk-boundary behavior. First confirm the default settings produce a complete MP4, then change only the chunk length on another run. If the output is empty or truncated at the end, inspect the log, whether the input was read fully, final-buffer handling, and output duration.

FPS describes frame computation rate, while total completion time includes startup loading, encoding, and saving. It does not mean a 30-second video finishes in 30 seconds. Record the source duration, start and end times, GPU, output resolution, clip_len, precision, and FPS to compare a repeated run.

A monitor shows a side-by-side coastal scene, with a film reel and a disconnected external SSD beside it.
Compare edges and fine texture to distinguish improved clarity from newly introduced detail.

Test whether the reported result applies to your video

If the short input preserves the details you need, process the full source file with the same settings and time completion. File duration, input codec12, storage location, and preprocessing also affect processing time.

If the short test preserves the details you need and total processing time fits your schedule, restore the remaining file with the same settings. If you need to adjust output size or chunk length, change one at a time in separate runs and compare the results.

Original model and execution documentation

Check the following original references for installation and model-use terms.

Terminology notes

  1. Frame — A single image that makes up part of a video.

    Back to the text
  2. FPS — Frames per second.

    Back to the text
  3. BF16 — A 16-bit floating-point format for model values. Its exponent has the same width as FP32, giving it a similarly wide value range.

    Back to the text
  4. PyTorch — A software framework for building and running AI models. Check the compatible PyTorch version and hardware support along with the model.

    Back to the text
  5. Token decoding — The stage that generates successive output tokens using the input and the response produced so far.

    Back to the text
  6. GPU — A processor designed to handle many calculations in parallel. It performs model computations during AI inference.

    Back to the text
  7. CUDA — A software platform for general-purpose computing on NVIDIA GPUs.

    Back to the text
  8. Runtime — The software environment that provides facilities needed while a program runs. In local AI, it can also refer to a model execution engine.

    Back to the text
  9. Inference — The process of using a trained model to compute an output for an input. Here, local inference means running the model on the user’s device.

    Back to the text
  10. Checkpoint — A file containing saved model weights and related state. Versions or tasks in one model family may use different checkpoints.

    Back to the text
  11. Transformer — A neural-network architecture centered on attention, which computes relationships within an input. It is used in language as well as image, audio, and video models.

    Back to the text
  12. Audio codec — A method or software for encoding, compressing, and decoding digital audio. Size, compatibility, and lossiness vary by codec.

    Back to the text

Frequently asked questions

What should you check first in this article?
SwiftVR takes a low-quality video file, restores its frames, and saves an enlarged video file. It is a video-restoration model based on Wan2.2-TI2V-5B.
How much memory does it need?
A separate model-card table reports an average of 0.766 seconds, 31.32 FPS, and 38.01 GB peak memory on a single H100 at 2560×1440, with causal streaming and 24 frames. The same card reports about 14 FPS for 4K on an H100. The GPU and resolution differ from the RTX 5090 1080p result, so do not read these as RTX 5090 results.
Where can you check the conditions and sources?
A separate model-card table reports an average of 0.766 seconds, 31.32 FPS, and 38.01 GB peak memory on a single H100 at 2560×1440, with causal streaming and 24 frames. The same card reports about 14 FPS for 4K on an H100. The GPU and resolution differ from the RTX 5090 1080p result, so do not read these as RTX 5090 results.