Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhijiejia opened this issue Jul 26, 2020 · 2 comments
Open

Comments

@zhijiejia
Copy link

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

@nuts-bottles
Copy link

-- 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)

@dr-smgad
Copy link

dr-smgad commented May 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants