hrishivish23 commited on
Commit
611ecfa
·
verified ·
1 Parent(s): 46a36a6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -0
README.md CHANGED
@@ -88,6 +88,33 @@ rollout_full_dir = hf_hub_download(repo_id=params.dataset_rootdir, repo_type='da
88
 
89
  ```
90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  ## Example Simulations
92
 
93
  <table>
 
88
 
89
  ```
90
 
91
+ ### Processing Train
92
+
93
+ ```python
94
+ import torch
95
+ import pickle
96
+
97
+ with open("path/to/train.obj", "rb") as f:
98
+ data = pickle.load(f)
99
+
100
+ positions = data["position"][0]
101
+ print(positions.shape) # Example output: (N, W, D)
102
+ ```
103
+
104
+ ### Processing Rollout
105
+
106
+ ```python
107
+ import torch
108
+ import pickle
109
+
110
+ with open("path/to/rollout_full.obj", "rb") as f:
111
+ data = pickle.load(f)
112
+
113
+ positions = data["position"]
114
+ print(len(positions)) # Example output: 50
115
+ print(positions.shape) # Example output: (N, T, 3)
116
+ ```
117
+
118
  ## Example Simulations
119
 
120
  <table>