File size: 1,323 Bytes
33bd16c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46ea955
33bd16c
 
 
 
 
 
 
 
 
 
 
6a361d5
 
 
 
 
 
 
 
 
 
 
 
33bd16c
6a361d5
a72689a
 
 
 
 
 
 
 
33bd16c
0da8145
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
library_name: stable-baselines3
tags:
- PandaReachDense-v2
- deep-reinforcement-learning
- reinforcement-learning
- stable-baselines3
model-index:
- name: A2C
  results:
  - task:
      type: reinforcement-learning
      name: reinforcement-learning
    dataset:
      name: PandaReachDense-v2
      type: PandaReachDense-v2
    metrics:
    - type: mean_reward
      value: -1.65 +/- 0.14
      name: mean_reward
      verified: false
---

# **A2C** Agent playing **PandaReachDense-v2**
This is a trained model of a **A2C** agent playing **PandaReachDense-v2**
using the [stable-baselines3 library](https://github.com/DLR-RM/stable-baselines3).

## Usage (with Stable-baselines3)

```python
import pybullet_envs
import panda_gym
import gym

import os

from huggingface_sb3 import load_from_hub, package_to_hub

from stable_baselines3 import A2C
from stable_baselines3.common.evaluation import evaluate_policy
from stable_baselines3.common.vec_env import DummyVecEnv, VecNormalize
from stable_baselines3.common.env_util import make_vec_env

from huggingface_hub import notebook_login

load_model = load_from_hub(
	repo_id="kinkpunk/a2c-PandaReachDense-v2",
	filename="a2c-PandaReachDense-v2.zip",
)

model = A2C.load(load_model)

```

Panda Gym environments: [arxiv.org/abs/2106.13687](https://arxiv.org/abs/2106.13687)