CoolFace
Modelpublic

hamzasheedi/humanoid-robotics

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes3downloads
Model Card

πŸ€– PPO/SAC Agent for BipedalWalker-v3

This is a trained agent that learned to walk on two legs from scratch!

Model Description

  • β€”Algorithm: PPO or SAC (Soft Actor-Critic)
  • β€”Environment: BipedalWalker-v3
  • β€”Framework: Stable-Baselines3
  • β€”Training Steps: 500,000 steps

Performance

  • β€”Walking Success: Consistent bipedal locomotion
  • β€”Average Reward: 200+ (successful walking)
  • β€”Coordination: Learned proper leg coordination and balance

Usage

python
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()

Training Details

The agent learned to coordinate:

  • β€”4 continuous joint controls (hip + knee for each leg)
  • β€”Balance and momentum management
  • β€”Forward locomotion
  • β€”Obstacle navigation

What Makes This Impressive

  • β€”24-dimensional state space - Complex sensory input
  • β€”Continuous control - Smooth joint movements
  • β€”Physics simulation - Realistic walking dynamics
  • β€”From scratch learning - No pre-programmed walking patterns

Amazing to watch a robot learn to walk! πŸšΆβ€β™‚οΈ