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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+
4
+
5
+
6
+
7
+ license: mit
8
+ library_name: onnxruntime
9
+ pipeline_tag: image-to-3d
10
+ tags:
11
+
12
+ * image-to-3d
13
+ * 3d
14
+ * gaussian-splatting
15
+ * 3d-gaussian-splatting
16
+ * webgpu
17
+ * onnx
18
+ * onnxruntime-web
19
+ * browser
20
+ * local-inference
21
+ * triposplat
22
+ * computer-vision
23
+ base_model:
24
+ * VAST-AI/TripoSplat
25
+
26
+
27
+
28
+ TripoSplat WebGPU
29
+
30
+ Browser-local WebGPU conversion of TripoSplat for single-image generation of 3D Gaussian splats.
31
+
32
+ This repository contains ONNX model artifacts prepared for the experimental TripoSplat WebGPU runtime.
33
+
34
+ The goal is to run the TripoSplat image-to-3D pipeline locally in a WebGPU-capable browser using ONNX Runtime WebGPU, without uploading the source image to a remote inference service.
35
+
36
+ Alpha engineering release
37
+
38
+ This is not yet a production-ready browser model. The complete five-stage pipeline executes and exports structurally valid Gaussian scenes on the recorded test system, but official end-to-end numerical and rendered-image parity has not yet been established. See Validation status and Limitations.
39
+
40
+ Model description
41
+
42
+ TripoSplat converts one 2D image into a variable-resolution 3D Gaussian representation.
43
+
44
+ The original model was developed by TripoAI and released by VAST-AI Research. This repository does not train a new model or alter the intended learned task. It converts and packages the released TripoSplat pipeline for execution through ONNX Runtime WebGPU.
45
+
46
+ Inputs
47
+
48
+ A single RGB image containing an object or foreground subject.
49
+
50
+ For the current WebGPU runtime:
51
+
52
+ * Prepared images with an isolated foreground can be processed directly.
53
+ * Arbitrary photographs require a caller-provided background-removal stage.
54
+ * Browser-local BiRefNet background removal is planned but is not yet bundled and qualified.
55
+ * Results are generally more predictable when the subject is clearly visible, centered, and not heavily occluded.
56
+
57
+ Outputs
58
+
59
+ A 3D Gaussian scene containing up to 262,144 Gaussians, exportable as:
60
+
61
+ * .ply
62
+ * .splat
63
+
64
+ The scene contains Gaussian positions, appearance, opacity, orientation, and scale data suitable for compatible Gaussian-splat viewers and downstream tools.
65
+
66
+ Intended uses
67
+
68
+ This model repository is intended for:
69
+
70
+ * Browser-local image-to-3D research
71
+ * WebGPU portability experiments
72
+ * ONNX Runtime WebGPU validation
73
+ * Gaussian-splat generation prototypes
74
+ * Interactive 3D creation tools
75
+ * AR, VR, spatial-computing, game, and simulation experiments
76
+ * Comparing browser inference against the official PyTorch implementation
77
+ * Research into local and privacy-preserving generative inference
78
+
79
+ It is currently best treated as an engineering and interoperability release, not a production inference endpoint.
80
+
81
+ Out-of-scope uses
82
+
83
+ This release should not currently be relied upon for:
84
+
85
+ * Guaranteed numerical equivalence with official TripoSplat
86
+ * Guaranteed visual equivalence with official TripoSplat
87
+ * Production workloads requiring stable latency or memory bounds
88
+ * Automated processing on unqualified low-memory devices
89
+ * Safety-critical, medical, legal, forensic, or measurement applications
90
+ * Accurate physical reconstruction from one photograph
91
+ * Recovery of unseen geometry as factual ground truth
92
+ * Deployment without reviewing browser, CDN, analytics, and application privacy behavior
93
+
94
+ Generated geometry and appearance are model predictions. They should not be interpreted as a complete or physically verified reconstruction of the depicted object.
95
+
96
+ Pipeline architecture
97
+
98
+ The browser pipeline consists of five principal stages:
99
+
100
+ 1. DINOv3 image encoder
101
+ * Encodes the prepared source image into visual features.
102
+ 2. Flux VAE encoder
103
+ * Produces latent image conditioning.
104
+ 3. Diffusion Transformer
105
+ * Performs classifier-free-guided flow sampling.
106
+ * The browser runtime supports the official fast 4-step and quality 20-step schedules.
107
+ 4. Dynamic octree
108
+ * Predicts and refines the spatial distribution of Gaussian centers over eight octree levels.
109
+ 5. Gaussian feature decoder
110
+ * Converts the final learned features into Gaussian scene attributes.
111
+
112
+ Sampling, octree traversal, scene construction, and export coordination are implemented in TypeScript around ONNX Runtime WebGPU sessions.
113
+
114
+ Repository contents
115
+
116
+ The model bundle uses an immutable manifest describing every required ONNX graph and external-data object.
117
+
118
+ Current bundle characteristics:
119
+
120
+ Property Value
121
+ Numerical format FP32
122
+ Total declared model size 6,465,182,402 bytes
123
+ Number of manifest objects 10
124
+ Maximum generated Gaussian count 262,144
125
+ Browser execution backend ONNX Runtime WebGPU
126
+ WASM fallback used for reported tests No
127
+
128
+ Some ONNX graphs use external-data sidecars. The graph and sidecar files must retain the exact paths encoded in each ONNX graph.
129
+
130
+ Do not rename or flatten external-data files without rewriting the corresponding ONNX graph.
131
+
132
+ Using the model
133
+
134
+ The model artifacts are designed for the companion runtime:
135
+
136
+ https://github.com/yosun/TripoSplatWebGPU
137
+
138
+ Clone and start the development application:
139
+
140
+ git clone https://github.com/yosun/TripoSplatWebGPU.git
141
+ cd TripoSplatWebGPU
142
+ corepack enable
143
+ pnpm install --frozen-lockfile
144
+ pnpm dev
145
+
146
+ Open:
147
+
148
+ http://localhost:<port>/e2e-lab.html
149
+
150
+ The end-to-end lab can:
151
+
152
+ 1. Load a prepared source image
153
+ 2. Execute the five-stage WebGPU pipeline
154
+ 3. Construct the Gaussian scene
155
+ 4. Export .ply and .splat
156
+ 5. Load the exported result into the browser viewer
157
+ 6. Produce a structured qualification report
158
+
159
+ The laboratory pages are validation surfaces, not polished end-user interfaces.
160
+
161
+ Hosting the model files
162
+
163
+ Because the current model bundle is approximately 6.47 GB, production deployments should serve it from static object storage or a model CDN rather than proxying it through an application server.
164
+
165
+ The host should support:
166
+
167
+ * HTTPS
168
+ * Cross-origin resource sharing
169
+ * Byte-range requests
170
+ * Long-lived caching
171
+ * Immutable versioned object paths
172
+ * Correct MIME types
173
+ * Exact ONNX external-data locations
174
+ * Sufficient file-size limits
175
+
176
+ Appropriate deployment patterns include object storage combined with a CDN.
177
+
178
+ Application serverless functions should not relay the model objects unless the platform is explicitly designed for multi-gigabyte static model delivery.
179
+
180
+ Validation status
181
+
182
+ Validation was performed against deterministic fixtures generated from the untouched official PyTorch implementation.
183
+
184
+ Component-level validation
185
+
186
+ Component Current result
187
+ TripoSplat preprocessing and DINOv3 encoder Strict pass on one recorded fixture
188
+ Flux VAE encoder Pass on one recorded fixture
189
+ One FP32 DiT invocation Strict pass
190
+ Four-step CFG/Euler loop Qualification pass, strict diagnostic fail
191
+ Twenty-step guided loop Qualification fail and strict diagnostic fail
192
+ Full eight-level octree trajectory Pass
193
+ Raw Gaussian feature decoder Pass
194
+ Packaged five-stage browser execution Structural and viewer pass
195
+ Official whole-scene parity Not established
196
+ Official render parity Not established
197
+ Repeated-generation memory qualification Not established
198
+ 16 GB device qualification Not established
199
+ Microsoft Edge qualification Not established
200
+
201
+ A component pass means that the recorded fixture met the declared numerical thresholds for that specific test. It does not establish correctness for all images or devices.
202
+
203
+ Recorded test environment
204
+
205
+ The published browser measurements were collected on:
206
+
207
+ Property Test environment
208
+ Device Apple M3 Max Mac
209
+ Unified memory 128 GB
210
+ Operating system macOS 26.3
211
+ Browser Chrome 150
212
+ Runtime ONNX Runtime WebGPU 1.27.0
213
+ WASM fallback Disabled
214
+
215
+ These results must not be extrapolated to lower-memory systems.
216
+
217
+ Recorded component measurements
218
+
219
+ Stage Recorded result
220
+ DINOv3 8,702.1 ms cold model/session load; 4,262.4 ms inference
221
+ Flux VAE 1,304.1 ms median inference
222
+ One FP32 DiT invocation 12,584.6 ms cold model/session load; 11,844.6 ms inference
223
+ Four-step sampling loop 102,268.8 ms sampling wall time across eight DiT calls
224
+ Twenty-step sampling loop 676,669.1 ms sampling wall time across forty DiT calls
225
+ Eight-level octree 1,327.4 ms model load; 5,713.7 ms primary trajectory inference
226
+ Gaussian decoder 7,929.6 ms model load; 5,370.6 ms inference
227
+ Packaged four-step generation 247,901.5 ms through generate() in the recorded qualification run
228
+ Final packaged consumer run 210,158.7 ms through PLY and .splat export
229
+
230
+ These measurements include different combinations of loading, temporary artifact preparation, pipeline execution, export, and viewer qualification. They are engineering measurements from one machine, not standardized product latency claims.
231
+
232
+ Known limitations
233
+
234
+ End-to-end parity remains open
235
+
236
+ Individual stages can closely match their PyTorch fixtures while small discrepancies accumulate across iterative sampling and scene decoding.
237
+
238
+ The current release does not claim:
239
+
240
+ * Whole-scene numerical parity
241
+ * Rendered-image parity
242
+ * Equivalent image quality to the official implementation
243
+ * Equivalent behavior across arbitrary inputs
244
+
245
+ Twenty-step sampling is not qualified
246
+
247
+ The official 20-step quality schedule completes all expected browser model calls, but its final latent state currently fails the declared qualification thresholds.
248
+
249
+ Use the 20-step path for investigation, not as a verified parity path.
250
+
251
+ Four-step sampling has a diagnostic discrepancy
252
+
253
+ The 4-step schedule passes the current qualification envelope but fails a stricter diagnostic comparison. It is sufficient for structural end-to-end testing, not for claiming exact official parity.
254
+
255
+ High memory requirements
256
+
257
+ The current model bundle is FP32 and approximately 6.47 GB before accounting for:
258
+
259
+ * WebGPU buffers
260
+ * Worker allocations
261
+ * Decoded model data
262
+ * Intermediate tensors
263
+ * Browser overhead
264
+ * Export buffers
265
+ * Viewer resources
266
+ * Unified-memory duplication or driver behavior
267
+
268
+ Browser heap counters do not expose all worker, GPU, driver, or unified-memory allocations. A reliable peak-memory figure is not yet available.
269
+
270
+ Limited hardware qualification
271
+
272
+ The current measured environment has 128 GB of unified memory.
273
+
274
+ No claim is made yet for:
275
+
276
+ * 16 GB Macs
277
+ * Integrated GPUs with limited shared memory
278
+ * Mobile browsers
279
+ * Mobile GPUs
280
+ * Intel Macs
281
+ * Discrete Windows GPUs
282
+ * Linux browser configurations
283
+ * Safari WebGPU
284
+ * Firefox WebGPU
285
+
286
+ Background removal is not bundled
287
+
288
+ The TripoSplat WebGPU package currently expects either:
289
+
290
+ * A prepared foreground input, or
291
+ * A caller-provided local removeBackground implementation
292
+
293
+ Background-removal behavior can materially affect the generated scene.
294
+
295
+ Single-view ambiguity
296
+
297
+ A single image does not fully specify hidden surfaces, depth, scale, material, or topology. The model may invent or simplify unseen geometry.
298
+
299
+ Input sensitivity
300
+
301
+ Results may degrade for:
302
+
303
+ * Multiple overlapping objects
304
+ * Heavy occlusion
305
+ * Transparent or reflective objects
306
+ * Very thin structures
307
+ * Motion blur
308
+ * Extreme crops
309
+ * Small subjects
310
+ * Highly cluttered backgrounds
311
+ * Ambiguous silhouettes
312
+ * Unusual camera projections
313
+ * Text-heavy or diagrammatic inputs
314
+
315
+ Privacy
316
+
317
+ The companion runtime is designed for browser-local inference.
318
+
319
+ Under the intended architecture:
320
+
321
+ * Source images are decoded in the browser.
322
+ * Source images are not sent to a model inference server.
323
+ * Model computation runs through local WebGPU execution.
324
+ * Generated Gaussian data can remain local unless the surrounding application uploads it.
325
+
326
+ Browser-local inference does not make every deployment private by default. Deployers must separately review:
327
+
328
+ * Analytics
329
+ * Error reporting
330
+ * Authentication
331
+ * CDN logs
332
+ * Signed URLs
333
+ * Browser extensions
334
+ * Application uploads
335
+ * Published result pages
336
+ * Content Security Policy
337
+ * Retention and deletion behavior
338
+
339
+ Do not log source images or signed model URLs unintentionally.
340
+
341
+ Security considerations
342
+
343
+ Model files should be treated as immutable executable inputs to the ONNX runtime.
344
+
345
+ Deployers should:
346
+
347
+ * Verify artifact hashes against the manifest
348
+ * Serve versioned immutable files
349
+ * Restrict allowed model origins
350
+ * Configure a suitable Content Security Policy
351
+ * Avoid loading arbitrary user-supplied ONNX graphs
352
+ * Validate exported scene sizes before allocating viewer resources
353
+ * Keep ONNX Runtime and browser versions current
354
+ * Avoid exposing private CDN credentials to browser code
355
+ * Rate-limit any optional publishing or storage service
356
+
357
+ Bias and representational limitations
358
+
359
+ This conversion inherits the behavior and limitations of the original TripoSplat model and its training data.
360
+
361
+ The WebGPU project did not train the underlying model and does not currently have sufficient information to provide a complete audit of:
362
+
363
+ * Training-data composition
364
+ * Geographic representation
365
+ * Cultural representation
366
+ * Object-category balance
367
+ * Copyright status of every training example
368
+ * Performance disparities across image domains
369
+
370
+ Users should evaluate the model on their own intended data and document domain-specific failure patterns before deployment.
371
+
372
+ Environmental considerations
373
+
374
+ Browser-local execution transfers computation from centralized inference infrastructure to the user’s device.
375
+
376
+ Potential advantages include:
377
+
378
+ * No dedicated inference server for each generation
379
+ * Local reuse of cached model artifacts
380
+ * Reduced image-upload requirements
381
+
382
+ Potential costs include:
383
+
384
+ * A large initial model download
385
+ * Significant local GPU and memory use
386
+ * Long FP32 execution times
387
+ * Repeated energy use on client hardware
388
+
389
+ Quantized models, reduced precision, graph fusion, model partitioning, and artifact deduplication have not yet been fully qualified.
390
+
391
+ Relationship to the original model
392
+
393
+ This repository is an unofficial WebGPU conversion and engineering project.
394
+
395
+ It is not the official TripoSplat repository and is not presented as an official TripoAI browser release.
396
+
397
+ The official sources remain the reference for:
398
+
399
+ * Model architecture
400
+ * Learned weights
401
+ * PyTorch numerical behavior
402
+ * Intended generation schedules
403
+ * Research claims
404
+ * Original licensing
405
+ * Scientific citation
406
+
407
+ Official model:
408
+
409
+ VAST-AI/TripoSplat
410
+
411
+ Official implementation:
412
+
413
+ https://github.com/VAST-AI-Research/TripoSplat
414
+
415
+ WebGPU implementation:
416
+
417
+ https://github.com/yosun/TripoSplatWebGPU
418
+
419
+ Licensing
420
+
421
+ The original TripoSplat code and released model weights are provided under the MIT License by their authors.
422
+
423
+ The ONNX artifacts in this repository are conversions of those released weights and remain subject to the applicable upstream license and notices.
424
+
425
+ The companion WebGPU source repository contains additional runtime and inherited software components. Review its THIRD_PARTY_NOTICES.md before redistributing the complete application or publishing a derived software package.
426
+
427
+ This repository does not grant rights over user-provided input images or generated content that are not otherwise held by the user.
428
+
429
+ Attribution
430
+
431
+ Original model
432
+
433
+ TripoSplat was developed by TripoAI and released through VAST-AI Research.
434
+
435
+ WebGPU conversion and runtime
436
+
437
+ The ONNX/WebGPU conversion, browser runtime, validation harnesses, packaging, and Gaussian export integration are maintained by Yosun Chang / AI3D.
438
+
439
+ This work builds from the ml-sharp-web browser application chassis while keeping SHARP-specific inference and TripoSplat inference logically separate.
440
+
441
+ Citation
442
+
443
+ Please cite the original TripoSplat paper when using the model:
444
+
445
+ @misc{yan2026generative3dgaussianslearned,
446
+ title = {Generative 3D Gaussians with Learned Density Control},
447
+ author = {Runjie Yan and Yan-Pei Cao and Peng Wang and Ding Liang and Yuan-Chen Guo},
448
+ year = {2026},
449
+ eprint = {2605.16355},
450
+ archivePrefix = {arXiv},
451
+ primaryClass = {cs.GR},
452
+ url = {https://arxiv.org/abs/2605.16355}
453
+ }
454
+
455
+ When discussing this specific browser conversion, also reference:
456
+
457
+ Yosun Chang. TripoSplat WebGPU: an experimental browser-local
458
+ ONNX Runtime WebGPU conversion of TripoSplat. 2026.
459
+ https://github.com/yosun/TripoSplatWebGPU
460
+
461
+ Development status
462
+
463
+ This project is under active development.
464
+
465
+ The principal remaining release gates are:
466
+
467
+ * Resolve iterative sampling drift
468
+ * Establish official whole-scene numerical parity
469
+ * Establish rendered-image parity
470
+ * Qualify repeated generations
471
+ * Measure peak total memory
472
+ * Test 16 GB hardware
473
+ * Test additional browsers and GPU families
474
+ * Bundle and validate local background removal
475
+ * Qualify reduced-precision or compressed artifacts
476
+ * Publish a stable package and immutable model revision
477
+
478
+ For current evidence, reports, fixtures, and contribution instructions, see the companion source repository.