Linzhan commited on
Commit
539a502
·
verified ·
1 Parent(s): 5b4bd51

Add dataset card, copyright notice, indexes and tooling

Browse files
Files changed (1) hide show
  1. scripts/README.md +25 -0
scripts/README.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Scripts
2
+
3
+ Derives both CSV indexes from the assets. Pure Python 3, no dependencies: GLB metadata is read
4
+ from each file's glTF JSON chunk and the binary payload is never touched, so probing the whole
5
+ 23 GB collection takes about ten seconds.
6
+
7
+ | script | purpose |
8
+ |---|---|
9
+ | `glb_probe.py` | Library + CLI. Parses one `.glb` and returns rig, animation and geometry stats. |
10
+ | `build_dataset.py` | Walks every asset once and writes `../metadata.csv` and `../animations.csv`. `--link` also hardlinks a source directory into `../glb/`. |
11
+
12
+ ```bash
13
+ python3 build_dataset.py # rebuild both tables in place
14
+ python3 build_dataset.py --src /path/raw --link # ingest a fresh download
15
+ python3 glb_probe.py ../glb/<file>.glb # inspect a single asset
16
+ ```
17
+
18
+ ## Notes on the probe
19
+
20
+ - Kinematic-tree roots are counted as joints whose parent is not itself a joint, so
21
+ `num_skeleton_roots > 1` marks a disconnected or multi-tree skeleton.
22
+ - Clip duration comes from the `max` of each animation sampler's input accessor, which glTF
23
+ stores in the JSON chunk.
24
+ - `animated_joints` intersects a clip's target nodes with the skin's joint set, separating clips
25
+ that drive a rig from clips that only move object-level nodes.