浏览代码

-

/exp-vince
vincentpierre 4 年前
当前提交
c10da7ef
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 2
      config/imitation/Pyramids.yaml
  2. 6
      ml-agents/mlagents/trainers/trainer/rl_trainer.py

2
config/imitation/Pyramids.yaml


Pyramids:
trainer_type: ppo
time_horizon: 128
max_steps: 1.0e5
max_steps: 1.0e7
hyperparameters:
batch_size: 128
beta: 0.01

6
ml-agents/mlagents/trainers/trainer/rl_trainer.py


from pympler import muppy, summary
import psutil
import os
class RLTrainer(Trainer): # pylint: disable=abstract-method

all_objects = muppy.get_objects()
sum1 = summary.summarize(all_objects)
summary.print_(sum1)
process = psutil.Process(os.getpid())
mem = process.memory_info().rss
print("Total memory ", mem)
def _maybe_save_model(self, step_after_process: int) -> None:
"""

正在加载...
取消
保存