Datasets:
Standalone dataset card; drop constant column; clarify animated_joints
Browse files- scripts/build_dataset.py +2 -2
scripts/build_dataset.py
CHANGED
|
@@ -17,7 +17,7 @@ XL = re.compile(r"^([0-9a-f]{24})_(fbx|glb|gltf)\.glb$")
|
|
| 17 |
SKFB = re.compile(r"^([0-9a-f]{32})\.glb$")
|
| 18 |
|
| 19 |
ASSET_COLS = ["file", "object_id", "id_family", "source_format", "size_bytes",
|
| 20 |
-
"num_vertices", "num_meshes", "num_nodes", "
|
| 21 |
"num_skeleton_roots", "single_tree", "num_animations",
|
| 22 |
"total_duration_sec", "max_keyframes", "animated_joints", "generator"]
|
| 23 |
CLIP_COLS = ["file", "object_id", "clip_index", "clip_name", "duration_sec",
|
|
@@ -93,7 +93,7 @@ def main():
|
|
| 93 |
"file": "glb/" + f, "object_id": oid, "id_family": fam, "source_format": fmt,
|
| 94 |
"size_bytes": os.path.getsize(path),
|
| 95 |
"num_vertices": info["num_vertices"], "num_meshes": info["num_meshes"],
|
| 96 |
-
"num_nodes": info["num_nodes"],
|
| 97 |
"num_joints": info["num_joints"], "num_skeleton_roots": info["num_skeleton_roots"],
|
| 98 |
"single_tree": str(info["num_skeleton_roots"] == 1).lower(),
|
| 99 |
"num_animations": info["num_animations"],
|
|
|
|
| 17 |
SKFB = re.compile(r"^([0-9a-f]{32})\.glb$")
|
| 18 |
|
| 19 |
ASSET_COLS = ["file", "object_id", "id_family", "source_format", "size_bytes",
|
| 20 |
+
"num_vertices", "num_meshes", "num_nodes", "num_joints",
|
| 21 |
"num_skeleton_roots", "single_tree", "num_animations",
|
| 22 |
"total_duration_sec", "max_keyframes", "animated_joints", "generator"]
|
| 23 |
CLIP_COLS = ["file", "object_id", "clip_index", "clip_name", "duration_sec",
|
|
|
|
| 93 |
"file": "glb/" + f, "object_id": oid, "id_family": fam, "source_format": fmt,
|
| 94 |
"size_bytes": os.path.getsize(path),
|
| 95 |
"num_vertices": info["num_vertices"], "num_meshes": info["num_meshes"],
|
| 96 |
+
"num_nodes": info["num_nodes"],
|
| 97 |
"num_joints": info["num_joints"], "num_skeleton_roots": info["num_skeleton_roots"],
|
| 98 |
"single_tree": str(info["num_skeleton_roots"] == 1).lower(),
|
| 99 |
"num_animations": info["num_animations"],
|