惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Blog — PlanetScale
Blog — PlanetScale
小众软件
小众软件
F
Fortinet All Blogs
博客园 - 叶小钗
博客园_首页
D
DataBreaches.Net
Apple Machine Learning Research
Apple Machine Learning Research
U
Unit 42
爱范儿
爱范儿
aimingoo的专栏
aimingoo的专栏
博客园 - Franky
Martin Fowler
Martin Fowler
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
IT之家
IT之家
M
MIT News - Artificial intelligence
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - bring-shrubbery/ml-sharp-web: Web playground to ...
bring-shrubb · 2026-05-03 · via Hacker News: Show HN

ml-sharp-web preview

A browser-based Gaussian splat generator built on top of Apple SHARP. ✨

This project lets you:

  • upload one image
  • generate Gaussian splats in the browser
  • preview the result
  • download a .ply file

Links

Before you start (important license note)

Apple's SHARP repository has separate licenses for code and model weights.

If you use Apple's released SHARP checkpoint/weights, you must follow LICENSE_MODEL (research-use restrictions apply).

What you need

  • Bun installed
  • A modern desktop browser (Chrome or Edge recommended)
  • Enough disk space and RAM for the SHARP model (the exported ONNX sidecar is large, ~2.4 GB)

Quick start (run the app) 🚀

1. Star this repo 🤩

If this project helps you, please star it:

2. Install dependencies

bun install

This also copies ONNX Runtime Web WASM assets into public/ort/ automatically.

3. Start the app

bun dev

Open the URL shown by Vite (usually http://localhost:5173).

4. Use the app

  1. Upload an image.
  2. Click Generate Splat.
  3. Preview the result and download the .ply file.

Important model file note (.onnx + .onnx.data)

SHARP exports usually produce two files:

  • sharp_web_predictor.onnx
  • sharp_web_predictor.onnx.data

Both files must be served together from the same folder (for example public/models/).

Why this matters:

  • The .onnx file is only the graph and metadata.
  • The .onnx.data file contains most of the model weights.

For that reason, the app uses the hosted model by default. Uploading only the .onnx file directly in the browser usually will not work because the .onnx.data sidecar is separate.

Export the SHARP model to ONNX (beginner-friendly steps)

Everything runs in the browser, but you still need an exported SHARP ONNX model.

1. Clone Apple's SHARP repo (reference code)

git clone https://github.com/apple/ml-sharp /tmp/ml-sharp-upstream

2. Prepare a Python environment for export

You need Python + SHARP dependencies + ONNX export dependencies.

The easiest route is to follow the upstream SHARP setup first, then run this exporter script from this repo.

3. Export the browser predictor ONNX

From this repo:

python3 scripts/export_sharp_onnx.py \
  --sharp-repo /tmp/ml-sharp-upstream \
  --output public/models/sharp_web_predictor.onnx

If the model is large (it is), the script will also write:

public/models/sharp_web_predictor.onnx.data

Optional export flags

  • --checkpoint /path/to/sharp_2572gikvuh.pt to use a manually downloaded checkpoint
  • --device cuda to export on GPU (if your environment supports it)
  • --opset 20 to change ONNX opset (default is 20)

Static build (optional)

If you want a static build instead of running bun dev:

bun run build
bun run preview

Notes:

  • bun run build copies public/ into dist/, including the model files.
  • If sharp_web_predictor.onnx.data is present, the build output will be very large.

How it works (high level)

  • React + TypeScript UI (src/)
  • ONNX Runtime Web worker for inference (src/workers/sharpWorker.ts)
  • Browser-side SHARP postprocessing (NDC -> metric gaussian conversion)
  • Browser-side PLY writer
  • In-page preview with @mkkellogg/gaussian-splats-3d

Troubleshooting 🛠️

"expected magic word ... found 3c 21 64 6f" (WASM error)

This means a WASM file request returned HTML instead.

Try:

  • run the app with bun dev (not file://...)
  • restart the dev server after bun install
  • verify these load in your browser:
    • /ort/ort-wasm-simd-threaded.asyncify.mjs
    • /ort/ort-wasm-simd-threaded.asyncify.wasm

"Failed to load external data file ... sharp_web_predictor.onnx.data"

This means the ONNX sidecar file is missing or not served correctly.

Check:

  • public/models/sharp_web_predictor.onnx
  • public/models/sharp_web_predictor.onnx.data
  • The app can reach the hosted model files in your deployment/browser environment

The app runs, but generation is very slow or crashes

SHARP is large and browser inference is heavy.

Try:

  • Chrome or Edge (desktop)
  • smaller Max gaussians in the UI
  • closing other memory-heavy tabs/apps
  • waiting longer on first run (model + runtime initialization can take time)

Tech stack

Project status

Working prototype / experimental. 🧪

The app runs end-to-end in the browser, but performance and compatibility depend heavily on browser WebGPU/WASM support and your machine's available memory.