浏览代码

Fix for multi-agent with observations

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

2
python/ppo/trainer.py


idx = info.agents.index(agent)
if not info.local_done[idx]:
if self.use_observations:
history['observations'].append(info.observations[idx])
history['observations'].append([info.observations[0][idx]])
if self.use_states:
history['states'].append(info.states[idx])
if self.is_continuous:

正在加载...
取消
保存