Download Retarget/check_data.py from gourav-wadhwa/MoCapDataset: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/datasets/gourav-wadhwa/MoCapDataset/resolve/main/Retarget/check_data.py
- Command line
-
hf download hf://datasets/gourav-wadhwa/MoCapDataset/Retarget/check_data.py
-
curl -L -o check_data.py https://huggingface.co/datasets/gourav-wadhwa/MoCapDataset/resolve/main/Retarget/check_data.py
299 Bytes
| import torch | |
| import numpy as np | |
| data = np.load("/home/ubuntu/MoCapDataset/Retarget/UnitreeG1/data_running_fast_forward_0.npy", allow_pickle=True).item() | |
| print(data.keys()) | |
| print(data["qpos"].shape) | |
| print(data["qvel"].shape) | |
| print(data["joint_names"]) | |
| print(data["qpos"][:, 7:]) | |
| torch.load(data) |