Instructions to use huggsook/connect-ai-Humanoid-v5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use huggsook/connect-ai-Humanoid-v5 with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="huggsook/connect-ai-Humanoid-v5", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
- huggsook/connect-ai/Humanoid-v5
- 1. Create Humanoid Environment
- env = VecNormalize.load("models/vec_normalize.pkl", env)
- 2. Load Model from Hugging Face Hub
- model = PPO.load("ppo_humanoid.zip", env=env)
- 3. Test & Render
- obs = env.reset()
- for _ in range(1000):
- action, _states = model.predict(obs, deterministic=True)
- obs, rewards, dones, info = env.step(action)
- if dones:
- obs = env.reset()
huggsook/connect-ai/Humanoid-v5
๐ฌ Agent Simulation & Training Preview
๐ฅ 3D Humanoid-v5 PPO Bipedal Locomotion & Dynamic Balance Simulation
๐ Project Overview
**huggsook/connect-ai/Humanoid-v5**๋ Gymnasium์ ๊ณ ๋๋ 3D ๋ค๊ด์ ๋ณดํ ๋ก๋ด ํ๊ฒฝ์ธ **Humanoid-v5**์์ PPO(Proximal Policy Optimization) ์๊ณ ๋ฆฌ์ฆ์ ํตํด 17๊ฐ ๊ด์ ๋ชจํฐ๋ฅผ ์ ์ดํ์ฌ ์์ ์ ์ธ ์ง๋ฆฝ ๋ณดํ(Bipedal Locomotion)์ ํ์ตํ ๊ฐํํ์ต ํ๋ก์ ํธ์
๋๋ค.
โจ Key Features
- 3D Real-time Physics Simulator: Three.js ๊ธฐ๋ฐ 17-DoF ๋ก๋ด ๊ด์ ๋ชจํฐ, CoM(๋ฌด๊ฒ ์ค์ฌ์ ) ์ถ์ , ๋ฐ ์ง๋ฉด ์ ์ด๋ ฅ ๋ฐ ์ธ๋(๋ฐ๊ธฐ/๋ฐ๋) ์๋ฎฌ๋ ์ด์
- Full Process Visualization: ์ค์๊ฐ ์ํผ์๋ ๋ณด์(Reward) ๊ณก์ , 10-Ep ์ด๋ ํ๊ท ์ , Critic Value Loss & Actor Policy Loss, ์ ์ฑ ์ํธ๋กํผ ์ค์๊ฐ ๋ชจ๋ํฐ๋ง
- Neural Network Activation Inspector: 376๊ฐ ๊ฐ๊ฐ ๊ด์ธก ์ ๋ ฅ โ ์๋์ธต โ 17๊ฐ ๊ด์ ํ ํฌ ์ถ๋ ฅ ์ ํธ ์ค์๊ฐ ์๊ฐํ
- One-Click Package Export: ํ์ต๋ ๊ฐ์ค์น, ์ ๊ทํ ํต๊ณ, CSV ๋ก๊ทธ, 3D ๋ทฐํฌํธ ์คํฌ๋ฆฐ์ท ์ผ๊ด ZIP ์์ถ ๋ค์ด๋ก๋ ์ง์
โ๏ธ Hyperparameters & Training Setup
| Parameter | Value | Description |
|---|---|---|
| Environment | Humanoid-v5 |
3D Physics Bipedal Robot (17 Actions, 376 Observations) |
| Algorithm | PPO (MlpPolicy) |
Actor-Critic with Generalized Advantage Estimation |
| Learning Rate | 3e-4 |
Adam optimizer with linear/constant schedule |
| Total Timesteps | 100,000 |
Steps trained |
| Batch Size | 64 |
Mini-batch size for surrogate loss |
| n_steps | 2048 |
Rollout buffer steps per update |
| n_epochs | 10 |
Optimization epochs per update |
| Gamma ($\gamma$) | 0.99 |
Discount factor |
| GAE Lambda ($\lambda$) | 0.95 |
Generalized Advantage Estimation factor |
| Clip Range ($\epsilon$) | 0.2 |
PPO surrogate objective clipping parameter |
| Entropy Coef | 0.0 |
Exploration bonus coefficient |
| Normalization | VecNormalize |
Observation & Reward normalization enabled |
๐ How to Load and Evaluate in Python
```python import gymnasium as gym from stable_baselines3 import PPO from stable_baselines3.common.vec_env import DummyVecEnv, VecNormalize
1. Create Humanoid Environment
def make_env(): return gym.make("Humanoid-v5", render_mode="human")
env = DummyVecEnv([make_env])
env = VecNormalize.load("models/vec_normalize.pkl", env)
2. Load Model from Hugging Face Hub
model = PPO.load("ppo_humanoid.zip", env=env)
3. Test & Render
obs = env.reset()
for _ in range(1000):
action, _states = model.predict(obs, deterministic=True)
obs, rewards, dones, info = env.step(action)
if dones:
obs = env.reset()
```
๐ฆ Repository Structure
``` . โโโ README.md # Hugging Face Model Card & Overview โโโ humanoid_preview.mp4 # Agent Walk Simulation Video โโโ index.html # Interactive 3D Web Studio (Spaces Ready) โโโ styles.css # Dark Cyberpunk Glassmorphism UI โโโ models/ โ โโโ ppo_humanoid_weights.json # Actor-Critic Network Weights โ โโโ vec_normalize_stats.json # Env Normalization Parameters โโโ logs/ โ โโโ training_metrics.csv # Full Training Trajectory (Reward/Loss) โโโ js/ โโโ humanoid_sim.js # 3D Kinematics & Physics Engine โโโ charts_manager.js # Chart.js Live Analytics Manager โโโ training_engine.js # PPO Forward & Neural Inspector โโโ export_manager.js # JSZip Package Exporter ```
Developed by @huggsook with Connect-AI Studio
- Downloads last month
- -
Evaluation results
- Mean Episode Reward on Humanoid-v5self-reported6540.500