{
 "id": "instantmesh",
 "title": "InstantMesh",
 "aliases": [],
 "domain": "genai",
 "subdomain": "multi-view diffusion + sparse-view LRM",
 "stage": "generation",
 "realtime": "interactive",
 "platforms": [
  "cuda",
  "python"
 ],
 "year_introduced": 2024,
 "inputs": [
  "ldr-image"
 ],
 "outputs": [
  "mesh"
 ],
 "style": "both",
 "dynamic": "static",
 "summary": "Generates a fixed set of consistent views of the object with a multi-view diffusion model, then reconstructs a mesh from those views with a sparse-view LRM that extracts surfaces differentiably.",
 "how_it_works": "Step one runs a multi-view diffusion model that, from one image, produces a six-view grid at known camera poses. Step two feeds those views into a sparse-view Large Reconstruction Model, which predicts a triplane that is decoded to a differentiable iso-surface (FlexiCubes) rather than a NeRF, so training can add geometry losses on depth and normals directly on the mesh. Having a mesh representation in the loop yields cleaner surfaces than density-field marching cubes. Total inference is the diffusion sampling plus one reconstruction pass.",
 "when_to_use": "Choose it when you want a textured mesh from one picture in seconds and can accept an Apache-2.0 pipeline with a diffusion front end. Prefer `triposr` when speed and simplicity matter most, `trellis` or `hunyuan3d-2` when you need higher fidelity or PBR, and `zero-1-to-3` if you only need novel views.",
 "cost": {
  "class": "heavy",
  "notes": "Seconds on a single modern GPU as described by the authors; qualitative here."
 },
 "failure_modes": [
  "Multi-view generator hallucinations (wrong back, extra limbs) are baked into the reconstruction",
  "Fixed six views limit coverage of concavities",
  "Textures are vertex-coloured or baked from low-resolution views and blur on close inspection",
  "Unusual aspect ratios or inputs with cast shadows break the consistency of the view grid"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "arxiv:2404.07191",
   "type": "paper",
   "title": "InstantMesh: Efficient 3D Mesh Generation from a Single Image with Sparse-view Large Reconstruction Models",
   "authors": [
    "Jiale Xu",
    "Weihao Cheng",
    "Yiming Gao",
    "Xintao Wang",
    "Shenghua Gao",
    "Ying Shan"
   ],
   "year": 2024,
   "venue": "arXiv preprint (cs.CV)",
   "url": "https://arxiv.org/abs/2404.07191",
   "ids": {
    "arxiv": "2404.07191"
   },
   "license": null,
   "extra": {
    "arxiv_version": "2",
    "category": "cs.CV"
   },
   "provenance": {
    "title": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2404.07191",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2404.07191",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2404.07191",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2404.07191",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "arxiv",
     "endpoint": "https://export.arxiv.org/api/query?id_list=2404.07191",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "xu2024instantmesh"
  },
  {
   "role": "implementation",
   "key": "gh:tencentarc/instantmesh",
   "type": "code",
   "title": "TencentARC/InstantMesh",
   "description": "InstantMesh: Efficient 3D Mesh Generation from a Single Image with Sparse-view Large Reconstruction Models",
   "authors": [
    "TencentARC"
   ],
   "year": 2024,
   "venue": "GitHub",
   "url": "https://github.com/TencentARC/InstantMesh",
   "ids": {
    "repo": "TencentARC/InstantMesh"
   },
   "license": "Apache-2.0",
   "extra": {
    "stars": 4634,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2025-01-03T09:09:13Z",
    "language": "Python",
    "homepage": null,
    "license_name": "Apache License 2.0"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/TencentARC/InstantMesh",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/TencentARC/InstantMesh",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/TencentARC/InstantMesh",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/TencentARC/InstantMesh",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/TencentARC/InstantMesh",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/TencentARC/InstantMesh",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "tencentarc2024tencentarc"
  }
 ],
 "presets": [
  {
   "id": "instantmesh-live",
   "title": "InstantMesh — orthogonal triplane feature grids (left) vs FlexiCubes decoded 3D mesh (right)",
   "runtime": "glsl-fragment",
   "params": {
    "P_PLANE_GLOW": 0.9,
    "P_ISO_DETAIL": 0.75,
    "P_ROT_SPEED": 0.6,
    "P_SPLIT": 0.48
   },
   "basis": "original",
   "license_note": "MIT — written for this index.",
   "code": "const float P_PLANE_GLOW = 0.90; // P Triplane Glow [0.1, 1.6, 0.05]\nconst float P_ISO_DETAIL = 0.75; // P Mesh Detail [0.1, 1.0, 0.02]\nconst float P_ROT_SPEED = 0.60; // P Orbit Speed [0.0, 2.2, 0.05]\nconst float P_SPLIT = 0.48; // P Triplane / Mesh [0.0, 1.0, 0.02]\n\nmat2 rot2(float a) { float c = cos(a), s = sin(a); return mat2(c, -s, s, c); }\n\n// 3 orthogonal triplane feature decoders F_xy, F_xz, F_yz summed to predict FlexiCubes SDF\nfloat evalTriplaneSDF(vec3 q, float detail) {\n  float fXY = length(q.xy) - 0.52 + 0.08 * sin(q.x * 7.0) * cos(q.y * 7.0) * detail;\n  float fXZ = length(q.xz) - 0.52 + 0.08 * cos(q.x * 6.0 - q.z * 6.0) * detail;\n  float fYZ = length(q.yz) - 0.52 + 0.08 * sin(q.y * 6.0 + q.z * 6.0) * detail;\n  // Intersection of 3 orthogonal sculpted cylinders with rounded core -> mechanical artifact\n  float d = max(fXY, max(fXZ, fYZ));\n  float core = length(q) - 0.58;\n  return mix(d, core, 0.35) * 0.82;\n}\n\nvec3 calcNormal(vec3 p, float spin, float detail) {\n  vec2 e = vec2(0.0025, 0.0);\n  vec3 px = p + e.xyy; px.xz = rot2(spin) * px.xz; px.yz = rot2(0.32) * px.yz;\n  vec3 mx = p - e.xyy; mx.xz = rot2(spin) * mx.xz; mx.yz = rot2(0.32) * mx.yz;\n  vec3 py = p + e.yxy; py.xz = rot2(spin) * py.xz; py.yz = rot2(0.32) * py.yz;\n  vec3 my = p - e.yxy; my.xz = rot2(spin) * my.xz; my.yz = rot2(0.32) * my.yz;\n  vec3 pz = p + e.yyx; pz.xz = rot2(spin) * pz.xz; pz.yz = rot2(0.32) * pz.yz;\n  vec3 mz = p - e.yyx; mz.xz = rot2(spin) * mz.xz; mz.yz = rot2(0.32) * mz.yz;\n  return normalize(vec3(\n    evalTriplaneSDF(px, detail) - evalTriplaneSDF(mx, detail),\n    evalTriplaneSDF(py, detail) - evalTriplaneSDF(my, detail),\n    evalTriplaneSDF(pz, detail) - evalTriplaneSDF(mz, detail)\n  ));\n}\n\n// Visualize feature activation on one of the 3 orthogonal triplanes\nvec3 planeFeatureVis(vec2 u, vec3 tint) {\n  float inside = step(max(abs(u.x), abs(u.y)), 0.78);\n  vec2 g = abs(fract(u * 8.0) - 0.5);\n  float grid = smoothstep(0.07, 0.015, min(g.x, g.y));\n  float feat = 0.5 + 0.5 * sin(u.x * 11.0) * cos(u.y * 11.0);\n  float border = smoothstep(0.025, 0.005, abs(max(abs(u.x), abs(u.y)) - 0.78));\n  float silhouette = smoothstep(0.56, 0.44, length(u));\n  return inside * (tint * (0.18 + 0.45 * feat * silhouette) + tint * grid * 0.35 + vec3(1.0) * border * 0.85);\n}\n\nvec3 aces(vec3 x) {\n  x = max(x, 0.0);\n  return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);\n}\n\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;\n  float screenX = fragCoord.x / max(iResolution.x, 1.0);\n  float split = clamp(P_SPLIT, 0.0, 1.0);\n  float glow = clamp(P_PLANE_GLOW, 0.05, 1.8);\n  float detail = clamp(P_ISO_DETAIL, 0.05, 1.0);\n  float spin = iTime * max(P_ROT_SPEED, 0.0) * 0.55;\n\n  vec3 ro = vec3(0.0, 0.18, 2.45);\n  vec3 rd = normalize(vec3(uv - vec2(0.0, 0.03), -1.55));\n  vec3 col = mix(vec3(0.020, 0.028, 0.048), vec3(0.056, 0.078, 0.128), smoothstep(-0.55, 0.55, uv.y));\n\n  // Transform ray into object space to intersect the 3 orthogonal triplanes (z=0, y=0, x=0)\n  vec3 roO = ro; roO.xz = rot2(spin) * roO.xz; roO.yz = rot2(0.32) * roO.yz;\n  vec3 rdO = rd; rdO.xz = rot2(spin) * rdO.xz; rdO.yz = rot2(0.32) * rdO.yz;\n\n  // Raymarch decoded FlexiCubes iso-surface\n  float tHit = 1e5;\n  float t = 0.0;\n  for (int i = 0; i < 56; i++) {\n    vec3 p = roO + rdO * t;\n    float d = evalTriplaneSDF(p, detail);\n    if (d < 0.0025) { tHit = t; break; }\n    t += d;\n    if (t > 5.0) break;\n  }\n\n  vec3 meshCol = col;\n  if (tHit < 1e4) {\n    vec3 pW = ro + rd * tHit;\n    vec3 pO = roO + rdO * tHit;\n    vec3 n = calcNormal(pW, spin, detail);\n    vec3 l1 = normalize(vec3(0.62, 0.78, 0.48));\n    float diff = max(dot(n, l1), 0.0);\n    float spec = pow(max(dot(n, normalize(l1 - rd)), 0.0), 44.0);\n    float fres = pow(1.0 - max(dot(n, -rd), 0.0), 3.0);\n\n    // Subtle FlexiCubes dual-grid iso-lines\n    vec3 vg = abs(fract(pO * 9.0) - 0.5);\n    float flexWire = smoothstep(0.04, 0.01, min(vg.x, min(vg.y, vg.z)));\n    vec3 alb = mix(vec3(0.18, 0.62, 0.88), vec3(0.95, 0.56, 0.24), smoothstep(-0.45, 0.45, pO.y));\n    meshCol = alb * (0.28 + 0.82 * diff) + vec3(0.98) * spec * 0.48 + vec3(0.26, 0.88, 0.96) * fres * 0.40;\n    meshCol = mix(meshCol, vec3(0.92, 0.96, 1.0), flexWire * 0.22);\n  }\n\n  // Accumulate additive glow from the 3 orthogonal triplanes on the left side\n  vec3 triVis = vec3(0.0);\n  float tZ = -roO.z / (abs(rdO.z) < 1e-4 ? 1e-4 : rdO.z);\n  if (tZ > 0.1 && (tZ < tHit || screenX < split)) {\n    vec3 hp = roO + rdO * tZ;\n    triVis += planeFeatureVis(hp.xy, vec3(0.18, 0.78, 1.0));\n  }\n  float tY = -roO.y / (abs(rdO.y) < 1e-4 ? 1e-4 : rdO.y);\n  if (tY > 0.1 && (tY < tHit || screenX < split)) {\n    vec3 hp = roO + rdO * tY;\n    triVis += planeFeatureVis(hp.xz, vec3(0.24, 0.96, 0.58));\n  }\n  float tX = -roO.x / (abs(rdO.x) < 1e-4 ? 1e-4 : rdO.x);\n  if (tX > 0.1 && (tX < tHit || screenX < split)) {\n    vec3 hp = roO + rdO * tX;\n    triVis += planeFeatureVis(hp.yz, vec3(0.98, 0.46, 0.22));\n  }\n\n  if (screenX < split) {\n    col = mix(col, meshCol * 0.55, tHit < 1e4 ? 0.65 : 0.0) + triVis * glow * 0.72;\n  } else {\n    col = meshCol + triVis * glow * 0.14;\n  }\n\n  float sep = smoothstep(0.0035, 0.0008, abs(screenX - split));\n  col = mix(col, vec3(0.95, 0.97, 1.0), sep);\n\n  fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);\n}",
   "execution_fidelity": "conceptual-diagram",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-30",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "instantmesh",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-30T20:35:51.000Z",
     "renderer": "Headless EGL Tesla T4/PCIe/SSE2, OpenGL 3.30 Core, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.5694,
      "std": 0.2301,
      "min": 0.1587,
      "max": 0.9403
     },
     "image": "/specimens/instantmesh-live.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "triposr",
  "large-reconstruction-model",
  "zero-1-to-3",
  "trellis"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/genai/instantmesh.json"
 },
 "solves": [
  "generate a 3d mesh from one photo quickly",
  "turn a single image into textured model in seconds",
  "image to 3d output looks inconsistent from other sides",
  "need fast feed-forward single image reconstruction"
 ],
 "authority": "Xu et al., 2024",
 "url": "https://texelatlas.vercel.app/t/instantmesh/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 13.85,
  "tier": "moderate",
  "p50_ms": 0.4558,
  "p95_ms": 0.4861,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 32,
  "preset_id": "instantmesh-live",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 12.54,
   "tier": "moderate",
   "p50_ms": 0.1994,
   "p95_ms": 0.2031,
   "speedup_x": 2.29,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 9,
   "tier": "moderate",
   "p50_ms": 0.2592,
   "p95_ms": 0.2672,
   "speedup_x": 1.76,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}