ZimengXiong/Modelr
关于
Image to 3D on your Mac
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- +2
- 15天
- +3
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文modelr
native macos app for local image → 3d. both the shape and texture pipelines run in-process on mlx swift (no python, no pytorch, nothing leaves the machine) and render live in scenekit as they generate.
https://github.com/user-attachments/assets/555b455d-5e79-429d-8f7f-b768ad8bf8da
models
modelr ships four models: one small and one large per stage. interested in integrating hunyuan3d into your app? checkout hunyuan3d-swift
times below are measured in-app on an M4 Max (with mesh decimation before paint).
| slot | checkpoint | notes | time |
|---|---|---|---|
| shape · small | hunyuan3d-dit-v2-mini (0.6b) |
fastest, low ram | ~52 s |
| shape · large | hunyuan3d-dit-v2-0-turbo (1.1b) |
8-step consistency | ~57 s |
| paint · small | hunyuan3d-paint-v2-0 |
rgb color, 2048 atlas | ~94 s |
| paint · large | hunyuan3d-paintpbr-v2-1 |
pbr (albedo + metallic-roughness), 4096 atlas | ~139 s |
architecture!!
modelr is a simple app, but a lot of time went into designing a nice architecture for it, since generation, downloading, and painting take a lot of time, everything is designed to be responsive, including cancellations, no hung processes 😁. modelr is built around a single pure reducer: reduce(state, event) -> (state', [Effect]),
so the entire transition table (onboarding, downloads, shape, paint, cancel/fail edges,
stale-token protection) is unit-testable with no UI, network, or GPU. read
DESIGN.md for agents.
MainActor
AppState (reducer + state) Sources/Core/AppReducer.swift, AppState.swift,
- AppPhase (onboarding/ready) AppEvent.swift, AppEffect.swift
- ModelInstallStore [4 models]
- ProjectStore [shape/paint jobs, versions] Sources/ProjectStore.swift
│ effects
┌────┴─────────────┬───────────────────┐
DownloadManager EngineArbiter (swiftui views = pure f(state))
URLSession + actor: exclusive Sources/ContentView.swift,
Range resume + GPU owner, single OnboardingView, ModelManagerView,
sha256 verify model residency ProjectDetailView, MeshViewer, …
(Core/) (Core/)
│
┌────────┴────────┐
ShapeEngine PaintEngine (serial, off-main)
→ Hy3DMLX → HunyuanPaintMLX (vendored in Packages/)
misc
everything lives under ~/Library/Application Support/Modelr/:
install
modelr currently ships an apple-silicon build for macos 14 or later. download
Modelr.zip,
unzip it, and move Modelr.app to Applications. remove from quarentine:
xattr -dr com.apple.quarantine /Applications/Modelr.app
探索相关项目
加载中…