浏览代码

remove print

/develop/centralizedcritic/counterfact
Ruo-Ping Dong 4 年前
当前提交
413246c2
共有 3 个文件被更改,包括 1 次插入5 次删除
  1. 1
      Project/Assets/ML-Agents/Examples/Hallway/Scripts/HallwayTeamManager.cs
  2. 1
      Project/Assets/ML-Agents/Examples/Hallway/TFModels/HallwayCollab.onnx.meta
  3. 4
      ml-agents/mlagents/trainers/agent_processor.py

1
Project/Assets/ML-Agents/Examples/Hallway/Scripts/HallwayTeamManager.cs


public override void RegisterAgent(Agent agent)
{
m_AgentList.Add(agent);
Debug.Log($"Total # of agents registered for team manager {GetId()}: {m_AgentList.Count}");
}
public override void OnAgentDone(Agent agent, Agent.DoneReason doneReason, List<ISensor> sensors)

1
Project/Assets/ML-Agents/Examples/Hallway/TFModels/HallwayCollab.onnx.meta


fileIDToRecycleName:
11400000: main obj
11400002: model data
2186277476908879412: ImportLogs
externalObjects: {}
userData:
assetBundleName:

4
ml-agents/mlagents/trainers/agent_processor.py


self.last_take_action_outputs[global_id] = take_action_outputs
# Iterate over all the terminal steps
# print("processing terminal_step")
for terminal_step in terminal_steps.values():
local_id = terminal_step.agent_id
global_id = get_global_agent_id(worker_id, local_id)

global_id = get_global_agent_id(worker_id, local_id)
self._assemble_trajectory(terminal_step, global_id)
self.current_group_obs.clear()
# print("clear terminal_step")
# Clean the last experience dictionary for terminal steps
for terminal_step in terminal_steps.values():

# Iterate over all the decision steps
# print("processing decision_steps")
for ongoing_step in decision_steps.values():
local_id = ongoing_step.agent_id
global_id = get_global_agent_id(worker_id, local_id)

global_id = get_global_agent_id(worker_id, local_id)
self._assemble_trajectory(ongoing_step, global_id)
self.current_group_obs.clear()
# print("clear decision_steps")
for _gid in action_global_agent_ids:
# If the ID doesn't have a last step result, the agent just reset,

正在加载...
取消
保存