adapt for states
Browse files- 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["
|
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"],
|