Downloads · 30 days
2
8% of all-time downloads
hamzasheedi/humanoid
humanoid is a reinforcement learning model from hamzasheedi. 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 agent that learned to walk on two legs from scratch!
Downloads · 30 days
2
8% of all-time downloads
All-time downloads
26
Public
Repo size
3.3 MB
Likes
0
Public
Click a slice to open those files.
.zip3.3 MB · 100%
From the Hugging Face model README
This is a trained agent that learned to walk on two legs from scratch!
from stable_baselines3 import PPO
import gymnasium as gym
# Load the trained model
model = PPO.load("bipedal_walker_ppo_model")
# Create environment
env = gym.make('BipedalWalker-v3', render_mode='human')
# Watch it walk!
obs, _ = env.reset()
for _ in range(2000):
action, _ = model.predict(obs, deterministic=True)
obs, reward, terminated, truncated, info = env.step(action)
if terminated or truncated:
obs, _ = env.reset()
env.close()
The agent learned to coordinate:
Amazing to watch a robot learn to walk! 🚶♂️