Datasets:
Add card, index, licenses, visual script + recipes
Browse filesFiles changed (7)
- LICENSE.mdAdded+10
- README.mdAdded+81
- index.parquetAdded+3
- scripts/simsure_visuals.pyAdded+326
- visual_recipes/objaverse.jsonl.gzAdded+3
- visual_recipes/physxverse.jsonl.gzAdded+3
- visual_recipes/uniphys.jsonl.gzAdded+3
12345678910# Licenses
Each asset carries one license, given in `index.parquet` (column `license`). Texts:
- CC0-1.0: https://creativecommons.org/publicdomain/zero/1.0/- CC-BY-4.0: https://creativecommons.org/licenses/by/4.0/- CC-BY-NC-4.0: https://creativecommons.org/licenses/by-nc/4.0/- CC-BY-NC-SA-4.0: https://creativecommons.org/licenses/by-nc-sa/4.0/
Credit each asset's creator and source (columns `source`, `upstream_id`).123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081---license: otherlicense_name: per-assetlicense_link: LICENSE.mdpretty_name: SimSure-100Ktags: [robotics, simulation, mujoco, physics, articulated-objects, 3d]size_categories: [10K<n<100K]---
# SimSure-100K
Simulation-ready 3D assets with verified physics: collision geometry, mass, friction, joints andrest pose, each checked in simulation by the SimSure verifier. This repo holds 85,879 assets(85,879 verified, 19,585 articulated). The other part of the release is[3dailab/SimSure-100K-gated](https://huggingface.co/datasets/3dailab/SimSure-100K-gated).
## What v1 contains
Per asset (`<source>/<id>/` inside the tar shards):
- `sim/fixed_main/model.xml`: MuJoCo MJCF, **collision geometry only**; loads and simulates as is.- `sim/fixed_main/meshes/*.obj`: its collision meshes. `model.urdf` + `hulls/*.obj`: the same as URDF.- `asset.json`: frame, parts, masses, materials, friction, joints and fixes, rest pose, verdict, provenance.- `sim/fixed_main/*.json`: conversion record and physical properties. `gate_input.json`, `urdf_gaps.json`.- `interaction_profile.json` (where available) and `grasps.json` (grasps that passed a gravity-on test).- `priors/`: the VLM prior inputs and joint judgements used to build the asset.
**Visual meshes and textures are not re-hosted.** They stay with their original datasets.`scripts/simsure_visuals.py` downloads each asset's upstream file, checks its sha256, places itsmeshes and textures on our bodies (per-asset recipes in `visual_recipes/<source>.jsonl.gz`), checksevery placed piece against a fingerprint, and writes `sim/fixed_main/model_visual.xml` (physicsunchanged, visual-only geoms added):
```bashpython scripts/simsure_visuals.py --root simsure --recipes visual_recipes/objaverse.jsonl.gz```
Visual recipes in this version: Objaverse 1.0 33,126, UniPhys-40K 12,396, PhysXVerse 548. Other sources follow (changelog).
## Index and licenses
`index.parquet`: one row per asset (`id`, `source`, `sub_source`, `upstream_id`, `license`,`commercial_ok`, `articulated`, `n_joints_verified`, `total_mass_kg`, `shard`, ...).Each asset, and our layer for it, carries its source's license; we add no terms.
| License | Assets | Commercial use ||---|---:|---:|| [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/) | 60,238 | yes || [CC-BY-NC-SA-4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) | 13,387 | no || [CC-BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/) | 12,083 | no || [CC0-1.0](https://creativecommons.org/publicdomain/zero/1.0/) | 171 | yes |
| Source | Assets ||---|---:|| Objaverse 1.0 (allenai/objaverse) | 36,725 || UniPhys-40K (breezexian/UniPhys-40K) | 13,730 || GRScenes (InternRobotics/GRScenes) | 12,546 || Objaverse 1.0, joints authored by us | 12,242 || PhysXVerse (PhysX-Omni/PhysXVerse) | 5,838 || NVIDIA SimReady (nvidia/simready-assets) | 2,105 || Artiverse (3dlg-hcvc/artiverse) | 1,721 || Palatial (PalatialSim/palatial-nv-asset-library) | 972 |
## Load an asset
```pythonimport tarfile, mujocofrom huggingface_hub import hf_hub_downloadimport pandas as pdidx = pd.read_parquet(hf_hub_download("3dailab/SimSure-100K", "index.parquet", repo_type="dataset"))row = idx[idx.articulated].iloc[0]tar = hf_hub_download("3dailab/SimSure-100K", row.shard, repo_type="dataset")tarfile.open(tar).extractall("simsure")model = mujoco.MjModel.from_xml_path(f"simsure/{row.id}/sim/fixed_main/model.xml")```
## Changelog
- **v1 (2026-12-03)**: first release. Physics layer (collision MJCF/URDF, metadata, grasps, profiles, priors) and visual recipes for the sources listed above. Dropped from the release: CC BY-SA and GPL objects, 3DCoMPaT200.123version https://git-lfs.github.com/spec/v1oid sha256:d6fb16746fe9fc367337dc2c1776756906839aed952deb26fa8a3f61325088e4size 7746057123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326"""Put the source dataset's visual meshes into SimSure assets (user side; ships on HF as scripts/).
SimSure hosts physics only. `visual_recipes/<source>.jsonl.gz` has one recipe per asset: theupstream file (repo, path, sha256), which faces of which upstream mesh belong to which body, the4x4 into that body's frame, and a fingerprint per piece. This script downloads the upstream file(or uses a local copy), checks its sha256, places the meshes, checks every fingerprint, and writes`sim/fixed_main/model_visual.xml` = the physics MJCF + visual-only geoms (no contacts, no mass).
python simsure_visuals.py --root <extracted SimSure dir> --recipes visual_recipes/objaverse.jsonl.gz [--ids ids.txt]
The upstream file is loaded raw (no vertex merging, no face cleanup), so face numbers are thefile's own order whatever the trimesh version; a fingerprint mismatch is an error, never asilent misplacement. Needs numpy, trimesh, Pillow, huggingface_hub. Self-contained on purpose."""from __future__ import annotations
import argparseimport gzipimport hashlibimport ioimport jsonimport osimport xml.etree.ElementTree as ETfrom pathlib import Path
import numpy as np
SCHEMA = "simsure_visual_recipe/1"LOADER = {"call": "trimesh.load(force='scene', process=False); pieces = scene graph node/geometry"}FP_TOL_M = 1e-5MIN_AREA_M2 = 1e-8 # below this MuJoCo rejects a mesh ("surface area is too small")
def runs_to_idx(runs: list[list[int]]) -> np.ndarray: return np.concatenate([np.arange(a, b) for a, b in runs]) if runs else np.zeros(0, int)
def fingerprint(n_faces: int, V: np.ndarray) -> dict: return {"faces": int(n_faces), "aabb": [V.min(0).round(7).tolist(), V.max(0).round(7).tolist()]}
def load_meshes(path: Path, loader: dict) -> dict: """{"<node>|<geometry>": (4x4 node->file frame, raw Trimesh)} for every mesh instance.""" import trimesh if loader != LOADER: raise ValueError(f"unknown loader {loader}") scene = trimesh.load(str(path), force="scene", process=False) out = {} for node in scene.graph.nodes_geometry: T, geom = scene.graph[node] m = scene.geometry[geom] if isinstance(m, trimesh.Trimesh): out[f"{_tok(node, path)}|{_tok(geom, path)}"] = (np.asarray(T, float), m) return out
def _tok(name: str, path: Path) -> str: """Loaders name file-level meshes after the file (OBJ): make keys independent of it.""" for n in (path.name, path.stem): if name == n or name.startswith(n + "_"): return "@file" + name[len(n):] return name
def _sha_ok(p: Path, want: str) -> None: """sha256 of an upstream file, checked once per (size, mtime) (big archives are shared).""" st = p.stat() mark = p.with_name(p.name + f".sha256-{st.st_size}-{int(st.st_mtime)}") if mark.is_file() and mark.read_text() == want: return h = hashlib.sha256() with open(p, "rb") as fh: for blk in iter(lambda: fh.read(1 << 24), b""): h.update(blk) if h.hexdigest() != want: raise ValueError(f"{p}: sha256 {h.hexdigest()} != recipe {want} (upstream file changed)") try: mark.write_text(want) except OSError: pass
def fetch(upstream: dict, cache: Path, local: Path | None = None) -> list[Path]: """Local paths of the upstream file(s), sha256-checked. `local`: a copy you already have (a single file, or the dir holding a split archive's parts).""" parts = upstream.get("parts") or [{"path": upstream["path"], "sha256": upstream["sha256"]}] out = [] for q in parts: if local is not None: p = local / Path(q["path"]).name if local.is_dir() else local else: from huggingface_hub import hf_hub_download p = Path(hf_hub_download(upstream["repo"], q["path"], repo_type=upstream.get("repo_type", "dataset"), revision=upstream.get("revision"), cache_dir=str(cache))) _sha_ok(p, q["sha256"]) out.append(p) return out
class _Concat(io.RawIOBase): """Byte splits of one archive (`cat a b c`) read as one seekable file, without the copy."""
def __init__(self, paths: list[Path]): self.fhs = [open(p, "rb") for p in paths] self.sizes = [p.stat().st_size for p in paths] self.total, self.pos = sum(self.sizes), 0
def seekable(self): return True
def readable(self): return True
def tell(self): return self.pos
def seek(self, off, whence=0): self.pos = {0: off, 1: self.pos + off, 2: self.total + off}[whence] return self.pos
def readinto(self, b): n, start = 0, self.pos for fh, sz in zip(self.fhs, self.sizes): if start >= sz: start -= sz continue fh.seek(start) k = fh.readinto(memoryview(b)[n:n + min(len(b) - n, sz - start)]) n += k start = 0 if n >= len(b): break self.pos += n return n
def _texture_png(visual) -> tuple[bytes | None, list[float]]: mat = getattr(visual, "material", None) rgba, img = [1.0, 1.0, 1.0, 1.0], None if mat is not None: f = getattr(mat, "baseColorFactor", None) if f is not None: f = np.asarray(f, float).ravel() f = f / 255.0 if f.max() > 1.0 else f rgba = f.tolist()[:4] + [1.0] * (4 - len(f)) img = getattr(mat, "baseColorTexture", None) if img is None: img = getattr(mat, "image", None) if img is None: return None, rgba buf = io.BytesIO() img.convert("RGBA").save(buf, format="PNG") return buf.getvalue(), rgba
def _obj(V: np.ndarray, F: np.ndarray, UV: np.ndarray | None) -> bytes: out = [f"v {x:.9g} {y:.9g} {z:.9g}" for x, y, z in V] if UV is not None: out += [f"vt {u:.9g} {v:.9g}" for u, v in UV] out += [f"f {a}/{a} {b}/{b} {c}/{c}" for a, b, c in F + 1] else: out += [f"f {a} {b} {c}" for a, b, c in F + 1] return ("\n".join(out) + "\n").encode()
class Upstream: """The fetched upstream: one file, or an archive (`kind` zip / split_zip) whose members are extracted on demand (a member's whole directory, plus the MTL/textures it names). Members are relative to the dir holding `entity_marker` when given, else to the archive root."""
def __init__(self, paths: list[Path], spec: dict, loader: dict, work: Path): self.spec, self.loader, self._cache = spec, loader, {} self.kind = spec.get("kind", "file") if self.kind == "file": self.single, self.zf = paths[0], None return import zipfile raw = open(paths[0], "rb") if len(paths) == 1 else io.BufferedReader(_Concat(paths), 1 << 20) self.zf = zipfile.ZipFile(raw) self.names = set(self.zf.namelist()) self.work = work / hashlib.sha256("".join(str(p) for p in paths).encode()).hexdigest()[:16] marker = spec.get("entity_marker") hits = sorted(n for n in self.names if n.endswith("/" + marker) or n == marker) if marker else [] self.prefix = hits[0][: -len(marker)] if hits else ""
def _extract(self, name: str) -> Path: dst = self.work / name if not dst.is_file(): dst.parent.mkdir(parents=True, exist_ok=True) t = dst.with_name("." + dst.name + ".part") t.write_bytes(self.zf.read(name)) os.replace(t, dst) return dst
def path(self, member: str) -> Path: name = self.prefix + member if name not in self.names: raise ValueError(f"{member} not in the upstream archive") d = name.rsplit("/", 1)[0] + "/" if "/" in name else "" for n in self.names: if n.startswith(d) and not n.endswith("/") and "/" not in n[len(d):]: self._extract(n) f = self.work / name if f.suffix.lower() == ".obj": # MTL + textures it names, anywhere for line in f.read_text(errors="replace").splitlines(): if line.startswith("mtllib "): mtl = os.path.normpath(os.path.join(os.path.dirname(name), line.split(None, 1)[1].strip())) if mtl in self.names: m = self._extract(mtl) for ml in m.read_text(errors="replace").splitlines(): t = ml.split() if t and t[0].lower().startswith("map_") and len(t) > 1: tex = os.path.normpath(os.path.join(os.path.dirname(mtl), t[-1])) if tex in self.names: self._extract(tex) return f
def meshes(self, member: str | None) -> dict: if member not in self._cache: f = self.single if self.zf is None else self.path(member) self._cache[member] = load_meshes(f, self.loader) return self._cache[member]
def build(asset: Path, recipe: dict, meshes, textures: bool = True) -> dict[str, bytes]: """{path relative to the asset: bytes}: visual meshes/textures + model_visual.xml. `meshes`: an Upstream, or the mesh dict of a single upstream file.""" get = meshes.meshes if hasattr(meshes, "meshes") else (lambda member: meshes) fm = asset / "sim" / "fixed_main" root = ET.parse(fm / "model.xml").getroot() comp = root.find("compiler") meshdir = (comp.get("meshdir") if comp is not None else None) or "" if comp is not None and meshdir: comp.set("texturedir", meshdir) asset_el = root.find("asset") if asset_el is None: asset_el = ET.SubElement(root, "asset") bodies = {b.get("name"): b for b in root.iter("body")} files = {} for L, spec in recipe["links"].items(): T = np.asarray(spec["T_body_from_source"], float) for k, piece in enumerate(spec["pieces"]): ms = get(piece.get("file")) if piece["mesh"] not in ms: raise ValueError(f"upstream mesh {piece['mesh']!r} in {piece.get('file')} not found (loader differs?)") T_node, m = ms[piece["mesh"]] F0 = np.asarray(m.faces)[runs_to_idx(piece["faces"])] used, F = np.unique(F0, return_inverse=True) F = F.reshape(-1, 3) A = T @ T_node V = np.asarray(m.vertices)[used] @ A[:3, :3].T + A[:3, 3] fp = fingerprint(len(F0), V) want = piece["fingerprint"] if fp["faces"] != want["faces"] or np.abs(np.asarray(fp["aabb"]) - np.asarray(want["aabb"])).max() > FP_TOL_M: raise ValueError(f"piece {piece['mesh']!r} of {L}: fingerprint {fp} != recipe {want}") area = 0.5 * np.linalg.norm(np.cross(V[F[:, 1]] - V[F[:, 0]], V[F[:, 2]] - V[F[:, 0]]), axis=1).sum() if len(V) < 4 or area < MIN_AREA_M2: continue # slivers MuJoCo refuses as a mesh; invisible anyway uv = getattr(m.visual, "uv", None) UV = np.asarray(uv)[used] if uv is not None and len(uv) == len(m.vertices) else None png, rgba = _texture_png(m.visual) if textures else (None, [1.0, 1.0, 1.0, 1.0]) name = f"vis_{L}_{k}".replace("/", "_") files[os.path.join("sim/fixed_main", meshdir, f"{name}.obj")] = _obj(V, F, UV if png else None) ET.SubElement(asset_el, "mesh", {"name": name, "file": f"{name}.obj", "inertia": "shell"}) mat = {"name": f"{name}_mat", "rgba": " ".join(f"{c:.4g}" for c in rgba)} if png and UV is not None: files[os.path.join("sim/fixed_main", meshdir, f"{name}.png")] = png ET.SubElement(asset_el, "texture", {"name": f"{name}_tex", "type": "2d", "file": f"{name}.png"}) mat["texture"] = f"{name}_tex" ET.SubElement(asset_el, "material", mat) ET.SubElement(bodies[spec["body"]], "geom", { "name": name, "type": "mesh", "mesh": name, "material": f"{name}_mat", "contype": "0", "conaffinity": "0", "group": "2", "density": "0"}) files["sim/fixed_main/model_visual.xml"] = ET.tostring(root) return files
_OPEN: dict = {}
def apply(asset: Path, recipe: dict, cache: Path, local: Path | None = None) -> list[str]: if recipe.get("schema") != SCHEMA: raise ValueError(f"unknown recipe schema {recipe.get('schema')}") key = json.dumps(recipe["upstream"], sort_keys=True) if key not in _OPEN: # archives are shared by many assets _OPEN.clear() _OPEN[key] = Upstream(fetch(recipe["upstream"], cache, local), recipe["upstream"], recipe["loader"], cache / "unpacked") files = build(asset, recipe, _OPEN[key]) for rel, data in files.items(): p = asset / rel p.parent.mkdir(parents=True, exist_ok=True) t = p.with_name("." + p.name + ".tmp") t.write_bytes(data) os.replace(t, p) return sorted(files)
def main(argv=None) -> int: ap = argparse.ArgumentParser(description=__doc__.splitlines()[0]) ap.add_argument("--root", required=True, help="dir holding the extracted <source>/<id>/ asset dirs") ap.add_argument("--recipes", required=True, help="visual_recipes/<source>.jsonl.gz") ap.add_argument("--ids", help="file with asset ids to do (default: every recipe whose asset is under --root)") ap.add_argument("--local", help="upstream file you already have (with one id)") ap.add_argument("--cache", default=os.path.expanduser("~/.cache/simsure")) a = ap.parse_args(argv) want = set(Path(a.ids).read_text().split()) if a.ids else None op = gzip.open if a.recipes.endswith(".gz") else open ok = bad = 0 for l in op(a.recipes, "rt"): r = json.loads(l) asset = Path(a.root) / r["id"] if (want is not None and r["id"] not in want) or not asset.is_dir(): continue try: apply(asset, r, Path(a.cache), Path(a.local) if a.local else None) ok += 1 except Exception as e: # noqa: BLE001 — reported per asset bad += 1 print(f"ERR {r['id']}: {type(e).__name__}: {e}") print(f"placed {ok}, failed {bad}") return 1 if bad else 0
if __name__ == "__main__": raise SystemExit(main())123version https://git-lfs.github.com/spec/v1oid sha256:1775716b6e1cf55525856edde5c08f31fcbce51f00eae3a7bbbe95217002581asize 32219781123version https://git-lfs.github.com/spec/v1oid sha256:489d227e4676b2aa70152c013d5c1e0f4688f1607e13a69e634f7409b5f8d5b5size 198881123version https://git-lfs.github.com/spec/v1oid sha256:ca246ba22b2ceb651de7a76fafdde0edeba039eae0501ee66703f0890747fd19size 5043347LICENSE.mdAdded+10
README.mdAdded+81
index.parquetAdded+3
scripts/simsure_visuals.pyAdded+326
visual_recipes/objaverse.jsonl.gzAdded+3
visual_recipes/physxverse.jsonl.gzAdded+3
visual_recipes/uniphys.jsonl.gzAdded+3