kuds / atari-pong-v4-ppo

huggingface.co
Total runs: 1
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: November 02 2025
reinforcement-learning

Introduction of atari-pong-v4-ppo

Model Details of atari-pong-v4-ppo

DQN Agent playing PongNoFrameskip-v4

Then, you can load the model using the following Python code:

import gymnasium as gym
from stable_baselines3 import PPO
from stable_baselines3.common.env_util import make_atari_env
from stable_baselines3.common.vec_env import VecTransposeImage
from stable_baselines3.common.atari_wrappers import WarpFrame

# Load the trained model
model = PPO.load("best-model.zip")

# Create the environment
env = make_atari_env("PongNoFrameskip-v4", n_envs=1)
env = VecFrameStack(env, n_stack=4)
env = VecTransposeImage(env)

# Reset the environment
obs, info = env.reset()

# Enjoy the trained agent
for _ in range(1000):
    action, _states = model.predict(obs, deterministic=True)
    obs, rewards, terminated, truncated, info = env.step(action)
    if terminated or truncated:
        obs, info = env.reset()
    env.render()
env.close()
Hugging Face Hub

You can also use the Hugging Face Hub to load the model. First, you need to install the Hugging Face Hub library:

pip install huggingface_hub

Then, you can load the model from the hub using the following code:

from huggingface_hub import hf_hub_download
import torch as th
import gymnasium as gym
from stable_baselines3 import PPO
from stable_baselines3.common.env_util import make_atari_env
from stable_baselines3.common.vec_env import VecTransposeImage
from stable_baselines3.common.atari_wrappers import WarpFrame

# Download the model from the Hub
model_path = hf_hub_download(repo_id="kuds/atari-pong-v4-ppo", filename="best-model.zip")

# Load the model
model = PPO.load(model_path)

# Create the environment
env = make_atari_env("PongNoFrameskip-v4", n_envs=1)
env = VecFrameStack(env, n_stack=4)
env = VecTransposeImage(env)

# Enjoy the trained agent
obs = env.reset()
for i in range(1000):
    action, _states = model.predict(obs, deterministic=True)
    obs, rewards, dones, info = env.step(action)
    env.render("human")

Runs of kuds atari-pong-v4-ppo on huggingface.co

1
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About atari-pong-v4-ppo huggingface.co Model

More atari-pong-v4-ppo license Visit here:

https://choosealicense.com/licenses/mit

atari-pong-v4-ppo huggingface.co

atari-pong-v4-ppo huggingface.co is an AI model on huggingface.co that provides atari-pong-v4-ppo's model effect (), which can be used instantly with this kuds atari-pong-v4-ppo model. huggingface.co supports a free trial of the atari-pong-v4-ppo model, and also provides paid use of the atari-pong-v4-ppo. Support call atari-pong-v4-ppo model through api, including Node.js, Python, http.

atari-pong-v4-ppo huggingface.co Url

https://huggingface.co/kuds/atari-pong-v4-ppo

kuds atari-pong-v4-ppo online free

atari-pong-v4-ppo huggingface.co is an online trial and call api platform, which integrates atari-pong-v4-ppo's modeling effects, including api services, and provides a free online trial of atari-pong-v4-ppo, you can try atari-pong-v4-ppo online for free by clicking the link below.

kuds atari-pong-v4-ppo online free url in huggingface.co:

https://huggingface.co/kuds/atari-pong-v4-ppo

atari-pong-v4-ppo install

atari-pong-v4-ppo is an open source model from GitHub that offers a free installation service, and any user can find atari-pong-v4-ppo on GitHub to install. At the same time, huggingface.co provides the effect of atari-pong-v4-ppo install, users can directly use atari-pong-v4-ppo installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

atari-pong-v4-ppo install url in huggingface.co:

https://huggingface.co/kuds/atari-pong-v4-ppo

Url of atari-pong-v4-ppo

atari-pong-v4-ppo huggingface.co Url

Provider of atari-pong-v4-ppo huggingface.co

kuds
ORGANIZATIONS

Other API from kuds

huggingface.co

Total runs: 40
Run Growth: 38
Growth Rate: 95.00%
Updated:October 20 2025
huggingface.co

Total runs: 15
Run Growth: -31
Growth Rate: -206.67%
Updated:October 20 2025
huggingface.co

Total runs: 2
Run Growth: 0
Growth Rate: 0.00%
Updated:October 20 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 14 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 20 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 20 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 25 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 06 2024