NathanGavenski commited on
Commit
be80052
·
verified ·
1 Parent(s): b9e5202

adapt for states

Browse files
Files changed (1) hide show
  1. frozen_lake.py +1 -1
frozen_lake.py CHANGED
@@ -58,7 +58,7 @@ class ImageSet(GeneratorBasedBuilder):
58
  with open(infos, encoding="utf-8") as data:
59
  for idx, line in enumerate(data):
60
  record = json.loads(line)
61
- index = record["obs"].split(".")[0]
62
  yield idx, {
63
  "obs": images_dict[index],
64
  "actions": record["actions"],
 
58
  with open(infos, encoding="utf-8") as data:
59
  for idx, line in enumerate(data):
60
  record = json.loads(line)
61
+ index = record["states"].split(".")[0]
62
  yield idx, {
63
  "obs": images_dict[index],
64
  "actions": record["actions"],