PPO Agent playing LunarLander-v3

This is a trained model of a PPO agent playing LunarLander-v3 using the stable-baselines3 library.

Usage (with Stable-baselines3)

import gymnasium as gym

from stable_baselines3 import PPO
from huggingface_sb3 import load_from_hub

model_filename = load_from_hub(repo_id, 'models/ppo-LunarLander-v3/best_model.zip')

model = PPO.load(model_filename)

env = gym.make(**LunarLander-v3**, render_mode="human")
    obs, info = env.reset()

    done = False

    while not done:
        action, _states = model.predict(obs, deterministic=True)
        obs, rewards, done, truncated, info = env.step(action)
        env.render()

    env.close()
Downloads last month
-
Video Preview
loading

Evaluation results