浏览代码

Attempted fix for #1059 (#1089)

/develop-generalizationTraining-TrainerController
Arthur Juliani 6 年前
当前提交
fee02a84
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      python/unitytrainers/ppo/trainer.py

2
python/unitytrainers/ppo/trainer.py


prev_text_actions = []
for agent_id in next_info.agents:
agent_brain_info = self.training_buffer[agent_id].last_brain_info
agent_index = agent_brain_info.agents.index(agent_id)
agent_index = agent_brain_info.agents.index(agent_id)
for i in range(len(next_info.visual_observations)):
visual_observations[i].append(agent_brain_info.visual_observations[i][agent_index])
vector_observations.append(agent_brain_info.vector_observations[agent_index])

正在加载...
取消
保存