maddpg icon indicating copy to clipboard operation
maddpg copied to clipboard

I have train it success but how to run? How to see the visible answer?

Open zhijiejia opened this issue 4 years ago • 2 comments

I have train it success but how to run? How to see the visible answer? image

zhijiejia avatar Jul 26 '20 10:07 zhijiejia

-- coding: utf-8 --

import pickle

path = "" agent_num = 3

print("....................") print("state_reward_all") print("....................")

f = open('../report/' + path + '/stat_reward_all.pkl', 'rb') info = pickle.load(f, encoding='iso-8859-1') # Soso for i in info: print(i)

nuts-bottles avatar Aug 14 '20 02:08 nuts-bottles

To see the visual environment, use the --display option with train.py but this is not recommended during training.

What you should do is after finishing training, load the saved policy visually as below:

train.py --restore --display

This is assuming that you used the default save_dir otherwise use the option --load-dir to indicate your custom load_dir

dr-smgad avatar May 08 '21 06:05 dr-smgad