Update README.md
Browse files
README.md
CHANGED
|
@@ -100,8 +100,11 @@ dataset = load_dataset("hrishivish23/MPM-Verse-MaterialSim-Small", data_dir=".")
|
|
| 100 |
|
| 101 |
```python
|
| 102 |
import torch
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
|
| 104 |
-
data = torch.load("path/to/train.obj")
|
| 105 |
positions = data["position"][0]
|
| 106 |
print(positions.shape) # Example output: (N, W, D)
|
| 107 |
```
|
|
|
|
| 100 |
|
| 101 |
```python
|
| 102 |
import torch
|
| 103 |
+
import pickle
|
| 104 |
+
|
| 105 |
+
with open("path/to/train.obj", "rb") as f:
|
| 106 |
+
data = pickle.load(f)
|
| 107 |
|
|
|
|
| 108 |
positions = data["position"][0]
|
| 109 |
print(positions.shape) # Example output: (N, W, D)
|
| 110 |
```
|