Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cleanrl_utils/enjoy.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def parse_args():
help="the id of the environment")
parser.add_argument("--eval-episodes", type=int, default=10,
help="the number of evaluation episodes")
parser.add_argument("--capture-video", action="store_true",
help="whether to capture videos of the agent performances (check out `videos` folder)")
args = parser.parse_args()
# fmt: on
return args
Expand Down
4 changes: 2 additions & 2 deletions docs/get-started/CleanRL_Huggingface_Integration_Demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
"source": [
"## Enjoy Utility\n",
"\n",
"We have a simple way to load the model by running our \"enjoy\" utility, which automatically pull the model from 🤗 HuggingFace and run for a few episodes. It also produces a rendered video through the `--capture_video` flag. See more at our [📜 Documentation](https://docs.cleanrl.dev/get-started/zoo/)."
"We have a simple way to load the model by running our \"enjoy\" utility, which automatically pull the model from 🤗 HuggingFace and run for a few episodes. It also produces a rendered video through the `--capture-video` flag. See more at our [📜 Documentation](https://docs.cleanrl.dev/get-started/zoo/)."
]
},
{
Expand Down Expand Up @@ -338,7 +338,7 @@
}
],
"source": [
"!python -m cleanrl_utils.enjoy --exp-name dqn_atari_jax --env-id BreakoutNoFrameskip-v4 --eval-episodes 2 --capture_video"
"!python -m cleanrl_utils.enjoy --exp-name dqn_atari_jax --env-id BreakoutNoFrameskip-v4 --eval-episodes 2 --capture-video"
]
},
{
Expand Down
Loading