SamurAI-Official commited on
Commit
431ed94
·
verified ·
1 Parent(s): 11adac4

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -83,12 +83,42 @@ runtime at the tier: **224.6 ms/frame** on an RTX 4070 Ti (CUDA provider, 102.1
83
  on the same host's CPU execution provider; the benchmark seeds a synthetic depth ramp for depth-consuming models,
84
  so those rows measure speed and the quality numbers above come from the trainer's held-out split instead.
85
 
86
- What is **not** claimed. The data is procedural - the repository generates it (`tools/gen_training_pairs.py
87
- --ratio 2.5`, each scene rendered twice, at 128 and at 320, so the target is a real render at the ratio rather
88
- than a resample onto it) - so the 58.37% is an **in-family** number: held-out pairs, but the same scenes, the same
89
- renderer and no held-out style. It is not comparable to the 2x table below, which is measured on captured frames
90
- by a different harness at a different tier. A model trained on *captured* 2.5x pairs, and the commercial
91
- comparison at this tier, are recorded follow-ups in the repository's roadmap.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
 
93
  One thing to know before comparing this model's output across hardware: ONNX Runtime's CUDA execution provider
94
  computes convolutions in TF32 by default, so this graph's CPU and CUDA outputs differ by up to **6.341e-04** (mean
@@ -103,6 +133,10 @@ its hash exactly.
103
  | `upscale_msreal_scale.onnx` | 461,501 | the released model: the two-tier (`scale` token) upscaler described above |
104
  | `ratio25/upscale_25x_procedural_depth.onnx` | 369,025 | the 2.5x model: 768x432 -> 1920x1080, inputs `color`, `depth` |
105
  | `ratio25/upscale_25x_procedural_depth.report.json` | 2,934 | that model's gate report: the configuration, the sha256, the held-out numbers and the baselines they were scored against - the repository gitignores `models/**/*.json`, so this copy is the one that travels with the weights |
 
 
 
 
106
  | `phases/upscale_subsampled.onnx` | 424,038 | the 128 -> 256 model `docs/evaluation-protocol.md` names when it explains why a model must be judged at the tier it was trained for |
107
  | `phases/upscale_mid.onnx` | 424,038 | mid-training model, kept because the phase tables compare against it |
108
  | `phases/upscale_mid_regression.onnx` | 424,038 | the mid model as a regression baseline |
 
83
  on the same host's CPU execution provider; the benchmark seeds a synthetic depth ramp for depth-consuming models,
84
  so those rows measure speed and the quality numbers above come from the trainer's held-out split instead.
85
 
86
+ What is **not** claimed about the procedural model. Its data is generated (`tools/gen_training_pairs.py
87
+ --ratio 2.5`: each scene rendered twice, at 128 and at 320, so the target is a real render at the ratio rather
88
+ than a resample onto it), so its 58.37% is an **in-family** number: held-out pairs, but the same scenes, the same
89
+ renderer and no held-out content. It is not comparable to the 2x table below either, which is measured on
90
+ captured frames by a different harness at a different tier.
91
+
92
+ ## The same ratio trained on captured frames (`ratio25/`)
93
+
94
+ These are the out-of-family numbers: the same ratio, trained on frames *captured* from Godot - the content
95
+ pipeline the released 2x model was trained on - over 840 pairs (360 train / 480 held out) of seven scenes the
96
+ model has never seen.
97
+
98
+ | model | inputs | parameters | held-out L1 vs the 2.5x bilinear baseline | SSIM | PSNR dB | MS-SSIM |
99
+ | --- | --- | --- | --- | --- | --- | --- |
100
+ | `ratio25/upscale_25x_captured_nj_depth_s2.onnx` | `color`, `depth` | 90,974 | **0.01359 vs 0.01516 → 10.37% better** | 0.9035 vs 0.8947 | 26.81 vs **27.22** | 0.9715 vs 0.9624 |
101
+ | `ratio25/upscale_25x_captured_depthjitter.onnx` | `color`, `depth`, `jitter` | 93,430 | **0.01399 vs 0.01541 → 9.24% better** | 0.9008 vs 0.8936 | 27.66 vs 27.10 | 0.9689 vs 0.9600 |
102
+
103
+ Three things a reader should know before choosing between them:
104
+
105
+ * **The `color,depth` model loses PSNR.** It is 0.41 dB *below* the bilinear baseline (26.81 against 27.22)
106
+ while gaining on L1, SSIM and MS-SSIM. The training gates score L1, and the column that disagrees is shown
107
+ rather than dropped. The `color,depth,jitter` model is above the baseline on all four metrics.
108
+ * **The `color,depth` configuration is seed-fragile on captured content: 1 of 4 seeds qualified.** One seed froze
109
+ at the bilinear plane and then diverged (residual L1 0.01756 → 0.29974), one reached 1.9% progress with its
110
+ output 0.000302 from the plane, one reached 2.5%. The published weights are the seed that qualified
111
+ (20261112). The spread is part of the result - the procedural configuration in the section above qualified on
112
+ its first seed with 58.37%.
113
+ * **The phase is what makes a jittered capture learnable.** On the *jittered* capture - the low-resolution
114
+ sample moving up to half a pixel between frames - `color,depth` measured val L1 equal to the baseline's to five
115
+ decimals (0.01541 against 0.01541), with an output 0.000155 from the plane: a half-pixel misalignment the model
116
+ was never told about has the bilinear plane as its L1 optimum. Declaring `jitter` on the same frames reached
117
+ 9.24%, with both declared inputs measurably used (depth 0.00540, jitter 0.00695).
118
+
119
+ Both graphs are trained at 128 -> 320 and are dynamic in H/W, so both render 768x432 -> 1920x1080; the runtime
120
+ rows are `docs/measurements/ratio25-captured-*` in the repository, and the training configuration, the captures
121
+ and the packing script are there too.
122
 
123
  One thing to know before comparing this model's output across hardware: ONNX Runtime's CUDA execution provider
124
  computes convolutions in TF32 by default, so this graph's CPU and CUDA outputs differ by up to **6.341e-04** (mean
 
133
  | `upscale_msreal_scale.onnx` | 461,501 | the released model: the two-tier (`scale` token) upscaler described above |
134
  | `ratio25/upscale_25x_procedural_depth.onnx` | 369,025 | the 2.5x model: 768x432 -> 1920x1080, inputs `color`, `depth` |
135
  | `ratio25/upscale_25x_procedural_depth.report.json` | 2,934 | that model's gate report: the configuration, the sha256, the held-out numbers and the baselines they were scored against - the repository gitignores `models/**/*.json`, so this copy is the one that travels with the weights |
136
+ | `ratio25/upscale_25x_captured_nj_depth_s2.onnx` | 369,025 | the same ratio trained on **captured** frames: inputs `color`, `depth`, 10.37% below its ratio's bilinear baseline on 480 held-out captured pairs |
137
+ | `ratio25/upscale_25x_captured_nj_depth_s2.report.json` | 2,955 | its gate report, including the baselines every number was scored against |
138
+ | `ratio25/upscale_25x_captured_depthjitter.onnx` | 384,090 | the same capture with the phase declared: inputs `color`, `depth`, `jitter`, 9.24% better and above the baseline on all four metrics |
139
+ | `ratio25/upscale_25x_captured_depthjitter.report.json` | 2,991 | its gate report |
140
  | `phases/upscale_subsampled.onnx` | 424,038 | the 128 -> 256 model `docs/evaluation-protocol.md` names when it explains why a model must be judged at the tier it was trained for |
141
  | `phases/upscale_mid.onnx` | 424,038 | mid-training model, kept because the phase tables compare against it |
142
  | `phases/upscale_mid_regression.onnx` | 424,038 | the mid model as a regression baseline |
ratio25/upscale_25x_captured_depthjitter.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a4aa2d18f71773aa934e40ac404285499f121e769b7ddf5ae6ae9d42ae07693
3
+ size 384090
ratio25/upscale_25x_captured_depthjitter.report.json ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "nrr_upscaler_trained",
3
+ "parameters": 93430,
4
+ "inputs": [
5
+ "color",
6
+ "depth",
7
+ "jitter"
8
+ ],
9
+ "channels": 32,
10
+ "ratio": 2.5,
11
+ "ratio_phases": [
12
+ 5,
13
+ 2
14
+ ],
15
+ "depth_channels": 8,
16
+ "motion_channels": 8,
17
+ "naive_channels": 8,
18
+ "epochs": 60,
19
+ "batch_size": 8,
20
+ "learning_rate": 0.002,
21
+ "seed": 20261111,
22
+ "loss": "l1",
23
+ "ssim_weight": 0.1,
24
+ "lr_schedule": "linear-warmup",
25
+ "detail_weight": 0.0,
26
+ "deterministic": true,
27
+ "zeroed_input": null,
28
+ "input_source": "noisy",
29
+ "task": "upscale",
30
+ "loading": "eager",
31
+ "augmentation": null,
32
+ "device": {
33
+ "used": "cuda",
34
+ "requested": "auto",
35
+ "cuda_available": true,
36
+ "torch": "2.3.1+cu121",
37
+ "cuda_build": "12.1",
38
+ "device_name": "NVIDIA GeForce RTX 4070 Ti",
39
+ "capability": "sm_89",
40
+ "total_memory_mb": 12281
41
+ },
42
+ "gpu": {
43
+ "samples": 276,
44
+ "utilization_percent": {
45
+ "mean": 92.9,
46
+ "max": 96.0
47
+ },
48
+ "memory_used_mb": {
49
+ "mean": 4314,
50
+ "max": 4422.0
51
+ }
52
+ },
53
+ "gpu_torch_peak_memory_mb": 8024,
54
+ "train_seconds": 125.29,
55
+ "dataset": {
56
+ "dir": "models/training-data/godot-v4-25x",
57
+ "manifest_sha256": "96aeff44cc0710f5941e240e93780259bab93fabba5bfcae3d6cc1f682d1e552",
58
+ "generator": "pack_godot_pairs.py",
59
+ "seed": 20261111,
60
+ "count": 840,
61
+ "sizes": {
62
+ "train": 360,
63
+ "val": 480
64
+ }
65
+ },
66
+ "measured_history": null,
67
+ "measured": {
68
+ "val_l1": 0.013988897204399109,
69
+ "val_baseline_l1": 0.015412723645567894,
70
+ "drift": 0.009238971397280693,
71
+ "depth_ablation": 0.005398247856646776,
72
+ "motion_ablation": 0.0,
73
+ "history_ablation": 0.0,
74
+ "jitter_ablation": 0.00694613391533494,
75
+ "validity_ablation": 0.0,
76
+ "history_jitter_ablation": 0.0,
77
+ "naive_ablation": 0.0,
78
+ "ssim": 0.9008036296465883,
79
+ "psnr_db": 27.662138381214838,
80
+ "ms_ssim": 0.9688889603987688,
81
+ "baseline_ssim": 0.8936408228270528,
82
+ "baseline_psnr_db": 27.104033314226072,
83
+ "baseline_ms_ssim": 0.9599814530814724,
84
+ "train_first_loss": 0.017704110261466767,
85
+ "train_last_loss": 0.013367989762789674,
86
+ "train_first_l1": 0.017704110261466767,
87
+ "train_last_l1": 0.013367989762789674,
88
+ "train_progress": 0.24492168398401346,
89
+ "objective_progress": 0.24492168398401346,
90
+ "improvement": 0.09237993711632031
91
+ },
92
+ "gates": {
93
+ "min_improvement": 0.05,
94
+ "baseline_floor": 0.001,
95
+ "conditioning_floor": 0.0001,
96
+ "failures": []
97
+ },
98
+ "export": {
99
+ "path": "models\\ratio25\\upscale_25x_captured_depthjitter.onnx",
100
+ "opset": 17,
101
+ "verify": {
102
+ "checked": true,
103
+ "onnxruntime": "1.23.2",
104
+ "max_abs_difference": 4.559755325317383e-06
105
+ },
106
+ "dynamic_size_check": {
107
+ "input_size": 160,
108
+ "output_shape": [
109
+ 1,
110
+ 3,
111
+ 400,
112
+ 400
113
+ ],
114
+ "expected": [
115
+ 1,
116
+ 3,
117
+ 400,
118
+ 400
119
+ ],
120
+ "ratio": 2.5
121
+ },
122
+ "sha256": "5a4aa2d18f71773aa934e40ac404285499f121e769b7ddf5ae6ae9d42ae07693"
123
+ }
124
+ }
ratio25/upscale_25x_captured_nj_depth_s2.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c72525f6e66f96d5e89c7b604183142000e87611fd3db5fff6678bbc6fbd891e
3
+ size 369025
ratio25/upscale_25x_captured_nj_depth_s2.report.json ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "nrr_upscaler_trained",
3
+ "parameters": 90974,
4
+ "inputs": [
5
+ "color",
6
+ "depth"
7
+ ],
8
+ "channels": 32,
9
+ "ratio": 2.5,
10
+ "ratio_phases": [
11
+ 5,
12
+ 2
13
+ ],
14
+ "depth_channels": 8,
15
+ "motion_channels": 8,
16
+ "naive_channels": 8,
17
+ "epochs": 60,
18
+ "batch_size": 8,
19
+ "learning_rate": 0.002,
20
+ "seed": 20261112,
21
+ "loss": "l1",
22
+ "ssim_weight": 0.1,
23
+ "lr_schedule": "linear-warmup",
24
+ "detail_weight": 0.0,
25
+ "deterministic": true,
26
+ "zeroed_input": null,
27
+ "input_source": "noisy",
28
+ "task": "upscale",
29
+ "loading": "eager",
30
+ "augmentation": null,
31
+ "device": {
32
+ "used": "cuda",
33
+ "requested": "auto",
34
+ "cuda_available": true,
35
+ "torch": "2.3.1+cu121",
36
+ "cuda_build": "12.1",
37
+ "device_name": "NVIDIA GeForce RTX 4070 Ti",
38
+ "capability": "sm_89",
39
+ "total_memory_mb": 12281
40
+ },
41
+ "gpu": {
42
+ "samples": 277,
43
+ "utilization_percent": {
44
+ "mean": 95.1,
45
+ "max": 99.0
46
+ },
47
+ "memory_used_mb": {
48
+ "mean": 4260,
49
+ "max": 4444.0
50
+ }
51
+ },
52
+ "gpu_torch_peak_memory_mb": 7994,
53
+ "train_seconds": 135.8,
54
+ "dataset": {
55
+ "dir": "models/training-data/godot-v4-25x-nj",
56
+ "manifest_sha256": "51572231e54963f1551873ee9df118d82f77f513ddaba55abef69bb5b015d230",
57
+ "generator": "pack_godot_pairs.py",
58
+ "seed": 20261111,
59
+ "count": 840,
60
+ "sizes": {
61
+ "train": 360,
62
+ "val": 480
63
+ }
64
+ },
65
+ "measured_history": null,
66
+ "measured": {
67
+ "val_l1": 0.013588418252766132,
68
+ "val_baseline_l1": 0.015160705894231796,
69
+ "drift": 0.009799416176974773,
70
+ "depth_ablation": 0.014358371496200562,
71
+ "motion_ablation": 0.0,
72
+ "history_ablation": 0.0,
73
+ "jitter_ablation": 0.0,
74
+ "validity_ablation": 0.0,
75
+ "history_jitter_ablation": 0.0,
76
+ "naive_ablation": 0.0,
77
+ "ssim": 0.9035381226602097,
78
+ "psnr_db": 26.809809119579274,
79
+ "ms_ssim": 0.9714561747856578,
80
+ "baseline_ssim": 0.8946825482305858,
81
+ "baseline_psnr_db": 27.215833117287666,
82
+ "baseline_ms_ssim": 0.9623879872958506,
83
+ "train_first_loss": 0.0170413414016366,
84
+ "train_last_loss": 0.009340531523856851,
85
+ "train_first_l1": 0.0170413414016366,
86
+ "train_last_l1": 0.009340531523856851,
87
+ "train_progress": 0.451889889198522,
88
+ "objective_progress": 0.451889889198522,
89
+ "improvement": 0.10370807615652466
90
+ },
91
+ "gates": {
92
+ "min_improvement": 0.05,
93
+ "baseline_floor": 0.001,
94
+ "conditioning_floor": 0.0001,
95
+ "failures": []
96
+ },
97
+ "export": {
98
+ "path": "models\\ratio25\\upscale_25x_captured_nj_depth_s2.onnx",
99
+ "opset": 17,
100
+ "verify": {
101
+ "checked": true,
102
+ "onnxruntime": "1.23.2",
103
+ "max_abs_difference": 5.409121513366699e-06
104
+ },
105
+ "dynamic_size_check": {
106
+ "input_size": 160,
107
+ "output_shape": [
108
+ 1,
109
+ 3,
110
+ 400,
111
+ 400
112
+ ],
113
+ "expected": [
114
+ 1,
115
+ 3,
116
+ 400,
117
+ 400
118
+ ],
119
+ "ratio": 2.5
120
+ },
121
+ "sha256": "c72525f6e66f96d5e89c7b604183142000e87611fd3db5fff6678bbc6fbd891e"
122
+ }
123
+ }