changed treatment of obs shape in minecraft

This commit is contained in:
NM512
2023-08-03 08:12:44 +09:00
parent d94a719421
commit 3f6659d365
2 changed files with 10 additions and 11 deletions

View File

@@ -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"],