marktrovinger commited on
Commit
35b8849
1 Parent(s): 5d77e21

Update cartpole_gym_replay.py

Browse files
Files changed (1) hide show
  1. cartpole_gym_replay.py +1 -1
cartpole_gym_replay.py CHANGED
@@ -59,7 +59,7 @@ class DecisionTransformerGymDataset(datasets.GeneratorBasedBuilder):
59
  ]
60
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
61
  def _generate_examples(self, filepath, split):
62
- with open(filepath, "rb") as f:
63
  #trajectories = pickle.load(f)
64
  traj = np.load(f)
65
  obs = traj["observations"]
 
59
  ]
60
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
61
  def _generate_examples(self, filepath, split):
62
+ with open(filepath, "r") as f:
63
  #trajectories = pickle.load(f)
64
  traj = np.load(f)
65
  obs = traj["observations"]