|
@ -87,7 +87,7 @@ def main(): |
|
|
|
|
|
|
|
|
imageAndVideoCallback = ImageRecorderCallback(eval_env, render_freq, n_eval_episodes=1, evaluation_method=evaluate_policy, log_dir=log_dir, deterministic=True, verbose=0) |
|
|
imageAndVideoCallback = ImageRecorderCallback(eval_env, render_freq, n_eval_episodes=1, evaluation_method=evaluate_policy, log_dir=log_dir, deterministic=True, verbose=0) |
|
|
|
|
|
|
|
|
model.learn(steps,callback=[evalCallback, imageAndVideoCallback, InfoCallback()]) |
|
|
|
|
|
|
|
|
model.learn(steps,callback=[imageAndVideoCallback, InfoCallback()]) |
|
|
model.save(f"{log_dir}/{expname(args)}") |
|
|
model.save(f"{log_dir}/{expname(args)}") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|