flreey commited on
Commit
4f134dc
·
verified ·
1 Parent(s): 843fa45

Add before/after comparisons and speed tests

Browse files
Files changed (3) hide show
  1. README.md +41 -0
  2. comparisons.csv +4 -0
  3. speed.csv +8 -0
README.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pretty_name: WebGPU video upscaler tests (Real-ESRGAN general-x4v3 in the browser)
4
+ task_categories:
5
+ - image-to-image
6
+ tags:
7
+ - video-upscaling
8
+ - super-resolution
9
+ - real-esrgan
10
+ - webgpu
11
+ - onnx
12
+ size_categories:
13
+ - n<1K
14
+ configs:
15
+ - config_name: comparisons
16
+ data_files: comparisons.csv
17
+ - config_name: speed
18
+ data_files: speed.csv
19
+ ---
20
+
21
+ # WebGPU video upscaler tests
22
+
23
+ Measured results for [webgpu-video-upscaler](https://github.com/flreey/webgpu-video-upscaler), an MIT-licensed video upscaler that runs Real-ESRGAN general-x4v3 with ONNX Runtime Web on WebGPU, inside a browser tab. It is the engine behind [tohd.video](https://tohd.video). I'm on the team that builds it.
24
+
25
+ ## Files
26
+
27
+ - **`comparisons.csv`**: three before/after frames from our own tests on free stock footage, scaled down or blurred on purpose and then upscaled. Each row has the problem, the input and output size, links to the "before" (normal resize) and "after" (AI enhance) frames, and the page where the sample is shown.
28
+ - **`speed.csv`**: per-frame timings. All numbers come from one machine: an Apple M2 Max (38-core GPU) in a Chromium-based browser with WebGPU, on 8 Nov 2026. No other devices have been measured yet.
29
+
30
+ ## What the tests show
31
+
32
+ - Low resolution (360p → 720p, 480p → 1080p): visibly sharper; text strokes, whiskers and eyelashes come back as clean lines.
33
+ - Slight defocus: better. Motion blur: **not fixed**.
34
+ - Heavy compression: slightly better; blocks are smoothed, lost detail does not come back.
35
+ - fp16 gives the same output as fp32 (same PSNR in our test) and was 5 to 8 times faster at 360p.
36
+
37
+ ## Limits
38
+
39
+ One machine only, so speed on other GPUs, phones and integrated laptop GPUs is unknown. Output is capped at 1080p on the short side. The frames are hosted on tohd.video; the source footage is from Pexels.
40
+
41
+ Write-up with the full tables: https://tohd.video/open-source-video-upscaler
comparisons.csv ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ scene,problem,input,output,method,before_image_url,after_image_url,page_url,result
2
+ neon shop signs,low resolution,360p,720p,general-x4v3 fp16 (AI enhance) vs normal resize,https://tohd.video/img/home-before.jpg,https://tohd.video/img/home-after.jpg,https://tohd.video/,"Chinese characters come back with crisp, clean strokes"
3
+ freckled face close-up,slight defocus,360p,720p,general-x4v3 fp16 (AI enhance) vs normal resize,https://tohd.video/img/unblur-before.jpg,https://tohd.video/img/unblur-after.jpg,https://tohd.video/unblur-video,"Sharper eyes, eyelashes and nose ring; fine freckles can be smoothed out"
4
+ children at a birthday party,low resolution,480p,1080p,general-x4v3 fp16 (AI enhance) vs normal resize,https://tohd.video/img/p1080-party-before.jpg,https://tohd.video/img/p1080-party-after.jpg,https://tohd.video/upscale-video-to-1080p,"Sharper eyes, hair and polka dots"
speed.csv ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ test,input,output,precision,ms_per_frame,device,browser,date
2
+ model only,360p,720p,fp16,206,Apple M2 Max (38-core GPU),Chromium-based with WebGPU,2026-11-08
3
+ model only,360p,720p,fp32,1067-1765,Apple M2 Max (38-core GPU),Chromium-based with WebGPU,2026-11-08
4
+ model only,360p,1080p,fp16,200,Apple M2 Max (38-core GPU),Chromium-based with WebGPU,2026-11-08
5
+ model only,480p,1080p,fp16,360,Apple M2 Max (38-core GPU),Chromium-based with WebGPU,2026-11-08
6
+ model only,720p,1080p,fp16,830-870,Apple M2 Max (38-core GPU),Chromium-based with WebGPU,2026-11-08
7
+ end to end (6 s 480p H.264 + AAC clip),480p,2x (1708x960),fp16,about 330,Apple M2 Max (38-core GPU),Chromium-based with WebGPU,2026-11-08
8
+ end to end (6 s 480p H.264 + AAC clip),480p,1080p (1920x1080),fp16,about 360,Apple M2 Max (38-core GPU),Chromium-based with WebGPU,2026-11-08