Downloads · 30 days
1
1% of all-time downloads
ImaghT/dqn-SpaceInvadersNoFrameskip-v4
dqn-SpaceInvadersNoFrameskip-v4 is a reinforcement learning model from ImaghT. 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 trained model of a DQN agent playing SpaceInvadersNoFrameskip-v4 using the stable-baselines3 library and the Deep Reinforcement Learning Course.
Downloads · 30 days
1
1% of all-time downloads
All-time downloads
107
Public
Repo size
27.6 MB
Likes
0
Public
Click a slice to open those files.
.zip27.6 MB · 100%
From the Hugging Face model README
This is a trained model of a DQN agent playing SpaceInvadersNoFrameskip-v4 using the stable-baselines3 library and the Deep Reinforcement Learning Course.
| Metric | Value |
|---|---|
| Mean Reward | 511.00 |
| Std Reward | 229.03 |
| Min Reward | 215.00 |
| Max Reward | 930.00 |
| Mean Episode Length | 775.40 |
| Score (mean - std) | 281.97 |
| Evaluation Episodes | 10 |
RTX 4060 35% Usage
Buffer size:200000 WSL memory usage:13.5GB
Total step: 10M (Not convergent) Spent:23800s
from stable_baselines3 import DQN
from stable_baselines3.common.env_util import make_atari_env
from stable_baselines3.common.vec_env import VecFrameStack
import gymnasium as gym
import ale_py
gym.register_envs(ale_py)
env = make_atari_env("ALE/SpaceInvaders-v5", n_envs=1, seed=0)
env = VecFrameStack(env, n_stack=4)
model = DQN.load("dqn-SpaceInvaders")
obs = env.reset()
for i in range(1000):
action, _states = model.predict(obs, deterministic=True)
obs, reward, done, info = env.step(action)
if done:
obs = env.reset()