ChrisColeTech commited on
Commit
434ad28
Β·
verified Β·
1 Parent(s): 141060c

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +91 -1
README.md CHANGED
@@ -1,3 +1,93 @@
1
  ---
2
- license: unknown
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ pipeline_tag: image-to-3d
4
+ tags:
5
+ - image-to-3d
6
+ - 3d-generation
7
+ - mesh-generation
8
+ - triposg
9
+ base_model:
10
+ - VAST-AI/TripoSG
11
  ---
12
+
13
+ # TripoSG β€” image-to-3D mesh
14
+
15
+ 1.5B rectified-flow image-to-mesh generator. **~20–30 s** per mesh on an
16
+ RTX 5090, producing dense watertight geometry straight from a single photo.
17
+
18
+ > **What this repo is:** the TripoSG and TripoSG-scribble pipelines plus the
19
+ > RMBG-1.4 background remover they need β€” weights only, not a retrain. The
20
+ > samples below were generated with this build, not copied from upstream.
21
+
22
+ ---
23
+
24
+ ## Samples
25
+
26
+ Single image in, mesh out. Source images were rendered with Z-Image Turbo;
27
+ the meshes are Blender Workbench clay renders of the raw `.glb` output β€” no
28
+ cleanup, no retopology, no texturing.
29
+
30
+ <table>
31
+ <tr><td><img src="https://huggingface.co/ChrisColeTech/TripoSG/resolve/main/samples/src-robot.png" width="330" alt="source photograph of a retro robot toy"></td><td><img src="https://huggingface.co/ChrisColeTech/TripoSG/resolve/main/samples/mesh-robot.png" width="330" alt="generated mesh, front three-quarter view"></td></tr>
32
+ <tr><td><sub>**source** β€” `a cute chunky retro robot toy standing upright, rounded metal body, simple friendly face, studio product photograph on a plain white background`</sub></td><td><sub>**mesh** β€” 15.2 MB `.glb`, generated in 30 s, seed 42</sub></td></tr>
33
+ <tr><td><img src="https://huggingface.co/ChrisColeTech/TripoSG/resolve/main/samples/src-teapot.png" width="330" alt="source photograph of a porcelain teapot"></td><td><img src="https://huggingface.co/ChrisColeTech/TripoSG/resolve/main/samples/mesh-teapot.png" width="330" alt="generated mesh, front three-quarter view"></td></tr>
34
+ <tr><td><sub>**source** β€” `an ornate ceramic teapot with a curved spout and handle, glazed blue and white porcelain, studio product photograph`</sub></td><td><sub>**mesh** β€” 37.6 MB `.glb`, generated in 18 s, seed 42</sub></td></tr>
35
+ </table>
36
+
37
+ ### Turntable
38
+
39
+ Four views of the same mesh, 90Β° apart β€” the back is inferred, not copied.
40
+
41
+ ![robot turntable](https://huggingface.co/ChrisColeTech/TripoSG/resolve/main/samples/turntable-robot.png)
42
+
43
+ ![teapot turntable](https://huggingface.co/ChrisColeTech/TripoSG/resolve/main/samples/turntable-teapot.png)
44
+
45
+ The chest panel, hand hooks and boot flare survive on the front; the unseen
46
+ back is plausibly closed rather than hollow or spiked. Fine surface text and
47
+ sub-millimetre detail do **not** survive β€” this is a shape model.
48
+
49
+ ## Recommended settings
50
+
51
+ | Parameter | Production value | Meaning |
52
+ |---|---|---|
53
+ | `seed` | any | Deterministic per seed |
54
+ | input | one RGB(A) image | Background is removed automatically via RMBG-1.4 |
55
+ | output | `.glb` | Watertight triangle mesh, no texture |
56
+
57
+ **Supported modes:** `img2mesh`, `img2mesh_textured` (texturing is a separate paint stage β€” see gotchas)
58
+
59
+ ### Notes and gotchas
60
+
61
+ - **Give it one clean, centred subject on a plain background.** The pipeline
62
+ runs RMBG-1.4 first; a busy background costs you geometry, not just time.
63
+ - **Mesh sizes vary hugely with subject complexity** β€” 15 MB for the robot,
64
+ 38 MB for the teapot at identical settings. Budget disk accordingly if you
65
+ are generating in bulk.
66
+ - **Output is untextured.** Colour comes from a separate paint stage
67
+ (`img2mesh_textured`, which chains a texturing model). On this build that
68
+ stage is **currently unstable** β€” it segfaults during the paint model's
69
+ load in our environment, most likely a native CUDA-extension build
70
+ mismatch. Untextured `img2mesh` is solid.
71
+ - **Orientation is consistent**: generated meshes come out facing +Y with the
72
+ source image's front as the front, so a fixed camera works across batches.
73
+ - ~10 GB VRAM resident at default settings.
74
+
75
+ ---
76
+
77
+ ## Files
78
+
79
+ | Path | Size | Role |
80
+ |---|---|---|
81
+ | `split/TripoSG/transformer/` | 5.76 GB | main rectified-flow transformer |
82
+ | `split/TripoSG/vae/` | 971 MB | shape VAE |
83
+ | `split/TripoSG/image_encoder_dinov2/` | 1.22 GB | DINOv2 image encoder |
84
+ | `split/TripoSG-scribble/` | 4.7 GB | scribble-conditioned variant (transformer + VAE + CLIP text encoder) |
85
+ | `split/RMBG-1.4/` | 176 MB | background remover (run before meshing) |
86
+
87
+ ---
88
+
89
+ ## Provenance
90
+
91
+ - **Upstream base model:** [`VAST-AI/TripoSG`](https://huggingface.co/VAST-AI/TripoSG) (MIT)
92
+ - **This build:** redistributed as a split component tree alongside the scribble variant and RMBG-1.4. Weights are not retrained here.
93
+ - **License:** MIT, per upstream.