hrishivish23 commited on
Commit
ebb76cc
·
verified ·
1 Parent(s): 4a91b33

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -1
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
  ```