winkin119 commited on
Commit
a29da1b
·
verified ·
1 Parent(s): 24367c1

upload via upload_folder 2025-08-03T12:41:39.016066+00:00

Browse files
Files changed (4) hide show
  1. README.md +17 -4
  2. full_model.pt +3 -0
  3. replay.mp4 +0 -0
  4. state_dict.pt +3 -0
README.md CHANGED
@@ -5,8 +5,9 @@ tags:
5
  - sac
6
  - reinforcement-learning
7
  - custom-implementation
8
- - SAC
9
- - Pendulum
 
10
  model-index:
11
  - name: SAC-PendulumV1
12
  results:
@@ -27,9 +28,21 @@ model-index:
27
  This is a trained model of a **SAC** agent playing **Pendulum-v1**.
28
 
29
  ## Usage
 
 
 
 
 
 
30
 
31
- model = load_from_hub(repo_id="winkin119/SAC-PendulumV1", filename="sac_pendulum.pth")
32
-
 
33
 
 
34
  env = gym.make("Pendulum-v1")
 
 
35
  ...
 
 
 
5
  - sac
6
  - reinforcement-learning
7
  - custom-implementation
8
+ - policy-gradient
9
+ - pytorch
10
+ - ddpg
11
  model-index:
12
  - name: SAC-PendulumV1
13
  results:
 
28
  This is a trained model of a **SAC** agent playing **Pendulum-v1**.
29
 
30
  ## Usage
31
+ # create the conda env in https://github.com/GeneHit/drl_practice
32
+ ```bash
33
+ conda create -n drl python=3.10
34
+ conda activate drl
35
+ python -m pip install -r requirements.txt
36
+ ```
37
 
38
+ # load the full model
39
+ ```python
40
+ model = load_from_hub(repo_id="winkin119/SAC-PendulumV1", filename="full_model.pt")
41
 
42
+ # Create the environment.
43
  env = gym.make("Pendulum-v1")
44
+ state, _ = env.reset()
45
+ action = model.action(state)
46
  ...
47
+ ```
48
+ There is also a state dict version of the model.
full_model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e34af57bb8c1b527b14dd6139ddc5fa9ff6e4422b8fc835d9ac4d8664e6cf167
3
+ size 77557
replay.mp4 CHANGED
Binary files a/replay.mp4 and b/replay.mp4 differ
 
state_dict.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:091c9500fd325af86f13110fdd0737d16f1beeb330bf227f6ef6bf57e6678124
3
+ size 75445