Spaces:
Running
Running
Download tests/check_keyframes.py from Boopster/reachy_mini_danceml: direct link, hf CLI and curl.
- Browser
- Download file 641 Bytes
-
https://huggingface.co/spaces/Boopster/reachy_mini_danceml/resolve/main/tests/check_keyframes.py
- Command line
-
hf download hf://spaces/Boopster/reachy_mini_danceml/tests/check_keyframes.py
-
curl -L -o check_keyframes.py https://huggingface.co/spaces/Boopster/reachy_mini_danceml/resolve/main/tests/check_keyframes.py
641 Bytes
| """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") | |