Meyssank commited on
Commit
7d47f28
·
verified ·
1 Parent(s): 9d956ed

Initial commit

Browse files
README.md CHANGED
@@ -6,7 +6,7 @@ tags:
6
  - reinforcement-learning
7
  - stable-baselines3
8
  model-index:
9
- - name: PPO
10
  results:
11
  - task:
12
  type: reinforcement-learning
@@ -16,13 +16,13 @@ model-index:
16
  type: SpaceInvadersNoFrameskip-v4
17
  metrics:
18
  - type: mean_reward
19
- value: 171.00 +/- 74.79
20
  name: mean_reward
21
  verified: false
22
  ---
23
 
24
- # **PPO** Agent playing **SpaceInvadersNoFrameskip-v4**
25
- This is a trained model of a **PPO** agent playing **SpaceInvadersNoFrameskip-v4**
26
  using the [stable-baselines3 library](https://github.com/DLR-RM/stable-baselines3)
27
  and the [RL Zoo](https://github.com/DLR-RM/rl-baselines3-zoo).
28
 
@@ -43,39 +43,41 @@ pip install rl_zoo3
43
 
44
  ```
45
  # Download model and save it into the logs/ folder
46
- python -m rl_zoo3.load_from_hub --algo ppo --env SpaceInvadersNoFrameskip-v4 -orga Meyssank -f logs/
47
- python -m rl_zoo3.enjoy --algo ppo --env SpaceInvadersNoFrameskip-v4 -f logs/
48
  ```
49
 
50
  If you installed the RL Zoo3 via pip (`pip install rl_zoo3`), from anywhere you can do:
51
  ```
52
- python -m rl_zoo3.load_from_hub --algo ppo --env SpaceInvadersNoFrameskip-v4 -orga Meyssank -f logs/
53
- python -m rl_zoo3.enjoy --algo ppo --env SpaceInvadersNoFrameskip-v4 -f logs/
54
  ```
55
 
56
  ## Training (with the RL Zoo)
57
  ```
58
- python -m rl_zoo3.train --algo ppo --env SpaceInvadersNoFrameskip-v4 -f logs/
59
  # Upload the model and generate video (when possible)
60
- python -m rl_zoo3.push_to_hub --algo ppo --env SpaceInvadersNoFrameskip-v4 -f logs/ -orga Meyssank
61
  ```
62
 
63
  ## Hyperparameters
64
  ```python
65
  OrderedDict([('batch_size', 256),
66
- ('clip_range', 0.001),
67
- ('ent_coef', 0.01),
68
  ('env_wrapper',
69
  ['stable_baselines3.common.atari_wrappers.AtariWrapper']),
 
 
70
  ('frame_stack', 4),
 
71
  ('learning_rate', 0.0001),
72
- ('n_envs', 8),
73
- ('n_epochs', 4),
74
- ('n_steps', 128),
75
- ('n_timesteps', 100000.0),
76
- ('normalize', False),
77
  ('policy', 'CnnPolicy'),
78
- ('vf_coef', 0.5)])
 
 
79
  ```
80
 
81
  # Environment Arguments
 
6
  - reinforcement-learning
7
  - stable-baselines3
8
  model-index:
9
+ - name: DQN
10
  results:
11
  - task:
12
  type: reinforcement-learning
 
16
  type: SpaceInvadersNoFrameskip-v4
17
  metrics:
18
  - type: mean_reward
19
+ value: 465.00 +/- 117.88
20
  name: mean_reward
21
  verified: false
22
  ---
23
 
24
+ # **DQN** Agent playing **SpaceInvadersNoFrameskip-v4**
25
+ This is a trained model of a **DQN** agent playing **SpaceInvadersNoFrameskip-v4**
26
  using the [stable-baselines3 library](https://github.com/DLR-RM/stable-baselines3)
27
  and the [RL Zoo](https://github.com/DLR-RM/rl-baselines3-zoo).
28
 
 
43
 
44
  ```
45
  # Download model and save it into the logs/ folder
46
+ python -m rl_zoo3.load_from_hub --algo dqn --env SpaceInvadersNoFrameskip-v4 -orga Meyssank -f logs/
47
+ python -m rl_zoo3.enjoy --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/
48
  ```
49
 
50
  If you installed the RL Zoo3 via pip (`pip install rl_zoo3`), from anywhere you can do:
51
  ```
52
+ python -m rl_zoo3.load_from_hub --algo dqn --env SpaceInvadersNoFrameskip-v4 -orga Meyssank -f logs/
53
+ python -m rl_zoo3.enjoy --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/
54
  ```
55
 
56
  ## Training (with the RL Zoo)
57
  ```
58
+ python -m rl_zoo3.train --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/
59
  # Upload the model and generate video (when possible)
60
+ python -m rl_zoo3.push_to_hub --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/ -orga Meyssank
61
  ```
62
 
63
  ## Hyperparameters
64
  ```python
65
  OrderedDict([('batch_size', 256),
66
+ ('buffer_size', 100000),
 
67
  ('env_wrapper',
68
  ['stable_baselines3.common.atari_wrappers.AtariWrapper']),
69
+ ('exploration_final_eps', 0.01),
70
+ ('exploration_fraction', 0.1),
71
  ('frame_stack', 4),
72
+ ('gradient_steps', 1),
73
  ('learning_rate', 0.0001),
74
+ ('learning_starts', 100000),
75
+ ('n_timesteps', 1000000.0),
76
+ ('optimize_memory_usage', False),
 
 
77
  ('policy', 'CnnPolicy'),
78
+ ('target_update_interval', 1000),
79
+ ('train_freq', 4),
80
+ ('normalize', False)])
81
  ```
82
 
83
  # Environment Arguments
args.yml CHANGED
@@ -1,8 +1,8 @@
1
  !!python/object/apply:collections.OrderedDict
2
  - - - algo
3
- - ppo
4
  - - conf_file
5
- - ppo.yaml
6
  - - device
7
  - auto
8
  - - env
@@ -56,7 +56,7 @@
56
  - - save_replay_buffer
57
  - false
58
  - - seed
59
- - 2571120557
60
  - - storage
61
  - null
62
  - - study_name
 
1
  !!python/object/apply:collections.OrderedDict
2
  - - - algo
3
+ - dqn
4
  - - conf_file
5
+ - dqn.yaml
6
  - - device
7
  - auto
8
  - - env
 
56
  - - save_replay_buffer
57
  - false
58
  - - seed
59
+ - 3983418881
60
  - - storage
61
  - null
62
  - - study_name
config.yml CHANGED
@@ -1,27 +1,29 @@
1
  !!python/object/apply:collections.OrderedDict
2
  - - - batch_size
3
  - 256
4
- - - clip_range
5
- - 0.001
6
- - - ent_coef
7
- - 0.01
8
  - - env_wrapper
9
  - - stable_baselines3.common.atari_wrappers.AtariWrapper
 
 
 
 
10
  - - frame_stack
11
  - 4
 
 
12
  - - learning_rate
13
  - 0.0001
14
- - - n_envs
15
- - 8
16
- - - n_epochs
17
- - 4
18
- - - n_steps
19
- - 128
20
  - - n_timesteps
21
- - 100000.0
22
- - - normalize
23
  - false
24
  - - policy
25
  - CnnPolicy
26
- - - vf_coef
27
- - 0.5
 
 
 
1
  !!python/object/apply:collections.OrderedDict
2
  - - - batch_size
3
  - 256
4
+ - - buffer_size
5
+ - 100000
 
 
6
  - - env_wrapper
7
  - - stable_baselines3.common.atari_wrappers.AtariWrapper
8
+ - - exploration_final_eps
9
+ - 0.01
10
+ - - exploration_fraction
11
+ - 0.1
12
  - - frame_stack
13
  - 4
14
+ - - gradient_steps
15
+ - 1
16
  - - learning_rate
17
  - 0.0001
18
+ - - learning_starts
19
+ - 100000
 
 
 
 
20
  - - n_timesteps
21
+ - 1000000.0
22
+ - - optimize_memory_usage
23
  - false
24
  - - policy
25
  - CnnPolicy
26
+ - - target_update_interval
27
+ - 1000
28
+ - - train_freq
29
+ - 4
dqn-SpaceInvadersNoFrameskip-v4.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bee25d3666e2f39a518371ea7fc953d73e262fa427462435f69e312cd3a1ef77
3
+ size 27220729
dqn-SpaceInvadersNoFrameskip-v4/_stable_baselines3_version ADDED
@@ -0,0 +1 @@
 
 
1
+ 2.4.0a7
dqn-SpaceInvadersNoFrameskip-v4/data ADDED
The diff for this file is too large to render. See raw diff
 
dqn-SpaceInvadersNoFrameskip-v4/policy.optimizer.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:851faae6e89740ee953858cbe9a4593a2c170ad095c1ab061c4998d1d383797f
3
+ size 13506172
dqn-SpaceInvadersNoFrameskip-v4/policy.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abda0bffb22bd88867236114b485281855455d49375c95301d3fe79083c742a3
3
+ size 13505370
dqn-SpaceInvadersNoFrameskip-v4/pytorch_variables.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c35cea3b2e60fb5e7e162d3592df775cd400e575a31c72f359fb9e654ab00c5
3
+ size 864
dqn-SpaceInvadersNoFrameskip-v4/system_info.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ - OS: Linux-6.1.85+-x86_64-with-glibc2.35 # 1 SMP PREEMPT_DYNAMIC Thu Jun 27 21:05:47 UTC 2024
2
+ - Python: 3.10.12
3
+ - Stable-Baselines3: 2.4.0a7
4
+ - PyTorch: 2.4.1+cu121
5
+ - GPU Enabled: True
6
+ - Numpy: 1.26.4
7
+ - Cloudpickle: 2.2.1
8
+ - Gymnasium: 0.29.1
9
+ - OpenAI Gym: 0.25.2
replay.mp4 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5bccce4863e6938906fb8d09baacbd2c617489d9ea570b2e73acb32157ad566d
3
- size 250913
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:816b0f30579a74c135f36eba95521f81d65cbf44552235dd90eb5e1da649d7dc
3
+ size 237673
results.json CHANGED
@@ -1 +1 @@
1
- {"mean_reward": 171.0, "std_reward": 74.79304780526061, "is_deterministic": false, "n_eval_episodes": 10, "eval_datetime": "2024-10-03T19:50:11.227363"}
 
1
+ {"mean_reward": 465.0, "std_reward": 117.87705459503134, "is_deterministic": false, "n_eval_episodes": 10, "eval_datetime": "2024-10-03T22:39:33.144001"}
train_eval_metrics.zip CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fe5fb6ec3bd3884b5e4383f57ed4dbba051bc346cf256de0c7cc937bcb1cf020
3
- size 6912
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:498ed6aad42c82b32fa4faa3176165ff2ae93c040908539e97c2d1d3aed1c20c
3
+ size 39694