GameScrub
(a) A real gameplay clip with 11 HUD elements: fixed on screen (minimap, player status, objective, ability status), moving with the scene (world markers) and appearing and vanishing (screen notices, interaction prompt). (b) The GameScrub output. The model gets only the video: the boxes are drawn here for illustration.
GameScrub removes the game HUD (minimap, health bar, crosshair, subtitles, markers, ...) from gameplay video. It needs only the video: no masks, no bounding boxes, no captions.
GameScrub is an IC-LoRA (in-context LoRA) for the LTX-2.5 22B distilled video model. The clip with the HUD is given to the model as a reference video, and the model generates the clean clip.
Files
| File | Size |
|---|---|
gamescrub_lora.safetensors |
1.3 GB |
This repository contains only the GameScrub LoRA. The base model comes from
Lightricks/LTX-2.5 (gated: accept its terms first):
File in Lightricks/LTX-2.5 |
Size |
|---|---|
diffusion_models/ltx-2.5-22b-distilled-transformer-bf16.safetensors |
42 GB |
text_encoders/gemma4-12b-with-proj-ltx-2.5-bf16.safetensors |
26 GB |
vae/ltx-2.5-video-vae-bf16.safetensors |
1.5 GB |
vae/ltx-2.5-audio-vae-bf16.safetensors |
0.4 GB |
latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors |
1 GB |
Use the video VAE above, not the -conv- variant.
hf auth login
hf download mohammadareebqazi/GameScrub gamescrub_lora.safetensors --local-dir checkpoints
hf download Lightricks/LTX-2.5 \
diffusion_models/ltx-2.5-22b-distilled-transformer-bf16.safetensors \
text_encoders/gemma4-12b-with-proj-ltx-2.5-bf16.safetensors \
vae/ltx-2.5-video-vae-bf16.safetensors \
vae/ltx-2.5-audio-vae-bf16.safetensors \
latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors \
--local-dir checkpoints
How to run
GameScrub runs on the LTX-2 two-stage IC-LoRA pipeline
(ltx_pipelines.ic_lora.ICLoraPipeline), with one change: the LoRA and the reference
video are applied in both stages (the LTX-2 default applies them in stage 1 only).
stage 1 640x352, 8 denoising steps LoRA + reference video
upsample x2 latent spatial upsampler
stage 2 1280x704, 3 refinement steps LoRA + reference video
Minimal example (single GPU, LTX-2 code at commit c1b4675):
import dataclasses
import torch
from ltx_core.loader import LTXV_LORA_COMFY_RENAMING_MAP, LoraPathStrengthAndSDOps
from ltx_core.loader.registry import ModelRegistry
from ltx_core.model.video_vae import AUTO_TILING, get_video_chunks_number
from ltx_pipelines.ic_lora import DEFAULT_IC_LORA_STAGES, ICLoraPipeline
from ltx_pipelines.utils.media_io import encode_video
from ltx_pipelines.utils.model_paths import ModelPaths
ck = "checkpoints"
stage_1, stage_2 = DEFAULT_IC_LORA_STAGES
pipeline = ICLoraPipeline(
model_paths=ModelPaths.from_split(
transformer_path=f"{ck}/diffusion_models/ltx-2.5-22b-distilled-transformer-bf16.safetensors",
text_encoder_path=f"{ck}/text_encoders/gemma4-12b-with-proj-ltx-2.5-bf16.safetensors",
video_vae_path=f"{ck}/vae/ltx-2.5-video-vae-bf16.safetensors",
audio_vae_path=f"{ck}/vae/ltx-2.5-audio-vae-bf16.safetensors",
),
spatial_upsampler_path=f"{ck}/latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors",
loras=[LoraPathStrengthAndSDOps(f"{ck}/gamescrub_lora.safetensors", 1.0, LTXV_LORA_COMFY_RENAMING_MAP)],
registry=ModelRegistry(),
stages=(stage_1, dataclasses.replace(stage_2, apply_ic_lora=True)), # LoRA + reference in stage 2 too
)
with torch.no_grad():
result = pipeline(
prompt="Remove the game HUD overlay from this footage, revealing the clean underlying gameplay video.",
seed=42, height=704, width=1280, num_frames=145, frame_rate=30.0,
images=[], video_conditioning=[("clip_with_hud.mp4", 1.0)],
tiling_config=AUTO_TILING,
)
encode_video(video=result.video, fps=30.0, audio=result.audio, output_path="clip_clean.mp4",
video_chunks_number=get_video_chunks_number(result.num_frames, result.tiling_config))
Notes:
- Use the prompt above unchanged; it is the prompt the LoRA was trained with.
- Input frames are resized and center-cropped to 1280x704. Frames are read in order with no frame-rate conversion, so convert the input to 30 fps first.
num_framesmust be 8k+1 (145 = 4.8 s at 30 fps, the training length). For longer videos, passchunk_config=ChunkConfig(chunk_pixel_frames=145, next_video_carry_frames=25)(from ltx_pipelines.chunks.layout import ChunkConfig) withnum_framesset to the video length.- Needs an 80 GB GPU (A100 80GB / H100).
Results
200 clips: 100 synthetic (HUD rendered onto clean footage) and 100 in-the-wild (real gameplay with real HUD).
| Metric | Overall | Synthetic | Wild |
|---|---|---|---|
| HUD removal (%) β | 92.0 | 93.9 | 90.1 |
| Artifact-adjusted removal (%) β | 77.1 | 82.2 | 72.0 |
| Background preservation (%) β | 95.3 | 98.3 | 92.3 |
| Background LPIPS β | 0.140 | 0.132 | 0.148 |
| Background MAE (0-255) β | 5.57 | 5.47 | 5.66 |
| HUD detector reduction (%) β | 94.3 | 97.3 | 91.2 |
- HUD removal, artifact-adjusted removal and background preservation are scored by an LLM judge.
- LPIPS and MAE compare output and input outside the HUD region.
- HUD detector reduction is the drop in detections from a dedicated HUD detector.
Speed on one NVIDIA A100-SXM4-80GB: 81 s per 5 s clip (145 frames, 1280x704, excluding model loading); peak GPU memory 40 GiB allocated / 62 GiB reserved.
License
GameScrub is a derivative of LTX-2.5 and is released under the LTX-2.x Community License Agreement, including its use restrictions (Section 4 and Attachment A).
Model tree for mohammadareebqazi/GameScrub
Base model
Lightricks/LTX-2.5