Downloads · 30 days
8
0% of all-time downloads
ThomasSimonini/ppo-SpaceInvadersNoFrameskip-v4
ppo-SpaceInvadersNoFrameskip-v4 is a reinforcement learning model from ThomasSimonini. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product. It is set up for stable-baselines3.
This is a pre-trained model of a PPO agent playing SpaceInvadersNoFrameskip using the stable-baselines3 library. It is taken from RL-trained-agents
Downloads · 30 days
8
0% of all-time downloads
All-time downloads
2.9K
Public
Repo size
21 MB
Likes
3
Public
Click a slice to open those files.
.zip41.5 MB · 99%
From the Hugging Face model README
This is a pre-trained model of a PPO agent playing SpaceInvadersNoFrameskip using the stable-baselines3 library. It is taken from RL-trained-agents
Using this model becomes easy when you have stable-baselines3 and huggingface_sb3 installed:
pip install stable-baselines3
pip install huggingface_sb3
Then, you can use the model like this:
import gym
from huggingface_sb3 import load_from_hub
from stable_baselines3 import PPO
from stable_baselines3.common.evaluation import evaluate_policy
from stable_baselines3.common.env_util import make_atari_env
from stable_baselines3.common.vec_env import VecFrameStack
# Retrieve the model from the hub
## repo_id = id of the model repository from the Hugging Face Hub (repo_id = {organization}/{repo_name})
## filename = name of the model zip file from the repository
checkpoint = load_from_hub(repo_id="ThomasSimonini/ppo-SpaceInvadersNoFrameskip-v4", filename="ppo-SpaceInvadersNoFrameskip-v4.zip")
model = PPO.load(checkpoint)
Mean_reward: 627.160 (162 eval episodes)