Spaces:
Running
Running
File size: 641 Bytes
c8edd3d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
"""Check keyframe counts in library moves."""
import sys
sys.path.append(".")
from reachy_mini_danceml.dataset_loader import MoveLibrary
lib = MoveLibrary()
lib.load()
# Check a few moves
sample_moves = ["a_firm_categorical_no", "a_robotic_grid_snapping", "you_look_around_use"]
for name in sample_moves:
record = lib.get_move(name)
if record:
print(f"\n{name}:")
print(f" Keyframes: {len(record.keyframes)}")
print(f" Duration: {record.keyframes[-1].t:.2f}s")
print(f" Rate: {len(record.keyframes) / record.keyframes[-1].t:.1f} keyframes/sec")
else:
print(f"\n{name}: NOT FOUND")
|