Reinforcement Learning
stable-baselines3
PandaReachDense-v3
deep-reinforcement-learning
Eval Results (legacy)
Instructions to use fshamass/a2c-PandaReachDense-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use fshamass/a2c-PandaReachDense-v3 with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="fshamass/a2c-PandaReachDense-v3", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
A2C Agent playing PandaReachDense-v3
This is a trained model of a A2C agent playing PandaReachDense-v3 using the stable-baselines3 library.
Usage (with Stable-baselines3)
from stable_baselines3 import A2C
from stable_baselines3.common.env_util import make_vec_env
from stable_baselines3.common.evaluation import evaluate_policy
import gymnasium as gym
import panda_gym
# Create the environment (make sure to use the same env as during training)
env = gym.make("PandaReachDense-v3", render_mode="rgb_array")
from stable_baselines3.common.vec_env import DummyVecEnv, VecNormalize
env = DummyVecEnv([lambda: gym.make("PandaReachDense-v3", render_mode="rgb_array")])
env = VecNormalize.load("vec_normalize.pkl", env)
env.training = False
env.norm_reward = False
# Load the trained agent
model = A2C.load("a2c-PandaReachDense-v3")
# Evaluate the agent
mean_reward, std_reward = evaluate_policy(model, env, n_eval_episodes=10)
print(f"Mean reward = {mean_reward:.2f} +/- {std_reward:.2f}")
- Downloads last month
- -
Evaluation results
- mean_reward on PandaReachDense-v3self-reported-0.25 +/- 0.14