Views
No views yet

1from transformers import AutoModel
2
3model = AutoModel.from_pretrained("han-xudong/ballnet", trust_remote_code=True)
4x = torch.zeros((1, 6)) # Example input: batch size of 1, 6D motion
5output = model(x)1# Example code to load onnx
2import onnxruntime as ort
3import numpy as np
4from huggingface_hub import hf_hub_download
5
6onnx_model_path = hf_hub_download("han-xudong/ballnet", filename="model.onnx")
7ort_session = ort.InferenceSession(onnx_model_path)
8
9# Example input
10x = np.zeros((1, 6), dtype=np.float32) # Batch size of 1, 6D motion
11output = ort_session.run(None, {"motion": x})1@article{liu2024proprioceptive,
2 title={Proprioceptive learning with soft polyhedral networks},
3 author={Liu, Xiaobo and Han, Xudong and Hong, Wei and Wan, Fang and Song, Chaoyang},
4 journal={The International Journal of Robotics Research},
5 volume = {43},
6 number = {12},
7 pages = {1916-1935},
8 year = {2024},
9 publisher={SAGE Publications Sage UK: London, England},
10 doi = {10.1177/02783649241238765}
11}