jannerm / mbpo

Code for the paper "When to Trust Your Model: Model-Based Policy Optimization"
https://jannerm.github.io/mbpo-www/
MIT License
479 stars 83 forks source link

[question] specifying a custom log directory #13

Closed samuelstanton closed 4 years ago

samuelstanton commented 4 years ago

I'd like to specify my own log directory to dump the ray logs into, but mbpo run_local doesn't seem to have a --log-dir flag enabled. It looks like this is set manually in the config files right now, but I'd like to be able to easily set the directory in the launch command. Any suggestions?

jannerm commented 4 years ago

This commit adds support for specifying a log directory by command line, eg:

mbpo run_local examples.development \
        --config=examples.config.ant.0 \
        --gpus=1 \
        --trial-gpus=1 \
        --log-dir /path/to/log-dir \

If you do not use the --log-dir flag, it will revert to that specified in the config file.

samuelstanton commented 4 years ago

Awesome! Thanks!