Skip to content

How to view the training model and how to visualize it #151

Answered by keiohta
hongjianjiang asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @swordJJ , thanks for using tf2rl.

If you run a script, logs and models are saved under results/%Y%m%dT%H%M%S.%f. For example, following is an example of training a SAC agent on Pendulum-v0 environment.

$ cd tf2rl_root

# train SAC agent on Pendulum-v0 env.
$ python examples/run_sac.py --env-name Pendulum-v0
...
17:38:32.824 [INFO] (trainer.py:122) Total Epi:    77 Steps:   15400 Episode Steps:   200 Return: -3.3546 FPS: 235.26
17:38:33.697 [INFO] (trainer.py:122) Total Epi:    78 Steps:   15600 Episode Steps:   200 Return: -0.8957 FPS: 229.31
...

# you can find logs and saved models under `results/%Y%m%dT%H%M%S.%f`
$ ls results/20211027T174421.731912_SAC_/
20211027T174421.890139.log …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hongjianjiang
Comment options

Answer selected by hongjianjiang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants