-
Notifications
You must be signed in to change notification settings - Fork 18
Home
SP Mohanty edited this page Aug 6, 2019
·
2 revisions
Welcome to the real_robots wiki!
-
Scripts for converting between formats of datasets (with wrong class references)
# Old format of goals dataset
# data = np.load("./goals_dataset.npy.npz", allow_pickle=True)
# data_items = list(data.items())[0][1]
# new_goals = []
# for old_goal in data_items:
# new_goals.append(
# Goal(
# initial_state=old_goal.initial_state,
# final_state=old_goal.final_state,
# retina=old_goal.retina,
# retina_before=old_goal.retina_before,
# challenge=old_goal.challenge,
# ))
# np.savez_compressed("./goals.npy.npz", new_goals)