changed treatment of obs shape in minecraft
This commit is contained in:
@@ -163,10 +163,10 @@ class MinecraftBase(gym.Env):
|
||||
"inventory": inventory,
|
||||
"inventory_max": self._max_inventory.copy(),
|
||||
"equipped": equipped,
|
||||
"health": np.float32(obs["life_stats/life"] / 20),
|
||||
"hunger": np.float32(obs["life_stats/food"] / 20),
|
||||
"breath": np.float32(obs["life_stats/air"] / 300),
|
||||
"reward": 0.0,
|
||||
"health": np.float32([obs["life_stats/life"]]) / 20,
|
||||
"hunger": np.float32([obs["life_stats/food"]]) / 20,
|
||||
"breath": np.float32([obs["life_stats/air"]]) / 300,
|
||||
"reward": [0.0],
|
||||
"is_first": obs["is_first"],
|
||||
"is_last": obs["is_last"],
|
||||
"is_terminal": obs["is_terminal"],
|
||||
|
||||
Reference in New Issue
Block a user