mcaoun commited on
Commit
b13b858
·
1 Parent(s): 0e0a05b

Initial commit

Browse files
README.md CHANGED
@@ -6,7 +6,7 @@ tags:
6
  - reinforcement-learning
7
  - stable-baselines3
8
  model-index:
9
- - name: DQN
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: 918.00 +/- 380.21
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,39 +43,32 @@ 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 dqn --env SpaceInvadersNoFrameskip-v4 -orga mcaoun -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 mcaoun -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 mcaoun
61
  ```
62
 
63
  ## Hyperparameters
64
  ```python
65
- OrderedDict([('batch_size', 32),
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', 10000000.0),
76
  ('optimize_memory_usage', False),
77
  ('policy', 'CnnPolicy'),
78
- ('target_update_interval', 1000),
79
- ('train_freq', 4),
80
  ('normalize', False)])
81
  ```
 
6
  - reinforcement-learning
7
  - stable-baselines3
8
  model-index:
9
+ - name: QRDQN
10
  results:
11
  - task:
12
  type: reinforcement-learning
 
16
  type: SpaceInvadersNoFrameskip-v4
17
  metrics:
18
  - type: mean_reward
19
+ value: 1603.00 +/- 724.03
20
  name: mean_reward
21
  verified: false
22
  ---
23
 
24
+ # **QRDQN** Agent playing **SpaceInvadersNoFrameskip-v4**
25
+ This is a trained model of a **QRDQN** 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 qrdqn --env SpaceInvadersNoFrameskip-v4 -orga mcaoun -f logs/
47
+ python -m rl_zoo3.enjoy --algo qrdqn --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 qrdqn --env SpaceInvadersNoFrameskip-v4 -orga mcaoun -f logs/
53
+ python -m rl_zoo3.enjoy --algo qrdqn --env SpaceInvadersNoFrameskip-v4 -f logs/
54
  ```
55
 
56
  ## Training (with the RL Zoo)
57
  ```
58
+ python -m rl_zoo3.train --algo qrdqn --env SpaceInvadersNoFrameskip-v4 -f logs/
59
  # Upload the model and generate video (when possible)
60
+ python -m rl_zoo3.push_to_hub --algo qrdqn --env SpaceInvadersNoFrameskip-v4 -f logs/ -orga mcaoun
61
  ```
62
 
63
  ## Hyperparameters
64
  ```python
65
+ OrderedDict([('buffer_size', 100000),
 
66
  ('env_wrapper',
67
  ['stable_baselines3.common.atari_wrappers.AtariWrapper']),
68
+ ('exploration_fraction', 0.025),
 
69
  ('frame_stack', 4),
 
 
 
70
  ('n_timesteps', 10000000.0),
71
  ('optimize_memory_usage', False),
72
  ('policy', 'CnnPolicy'),
 
 
73
  ('normalize', False)])
74
  ```
args.yml CHANGED
@@ -1,6 +1,6 @@
1
  !!python/object/apply:collections.OrderedDict
2
  - - - algo
3
- - dqn
4
  - - conf_file
5
  - null
6
  - - device
@@ -54,7 +54,7 @@
54
  - - save_replay_buffer
55
  - false
56
  - - seed
57
- - 4287231991
58
  - - storage
59
  - null
60
  - - study_name
 
1
  !!python/object/apply:collections.OrderedDict
2
  - - - algo
3
+ - qrdqn
4
  - - conf_file
5
  - null
6
  - - device
 
54
  - - save_replay_buffer
55
  - false
56
  - - seed
57
+ - 1132488828
58
  - - storage
59
  - null
60
  - - study_name
config.yml CHANGED
@@ -1,29 +1,15 @@
1
  !!python/object/apply:collections.OrderedDict
2
- - - - batch_size
3
- - 32
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
  - 10000000.0
22
  - - optimize_memory_usage
23
  - false
24
  - - policy
25
  - CnnPolicy
26
- - - target_update_interval
27
- - 1000
28
- - - train_freq
29
- - 4
 
1
  !!python/object/apply:collections.OrderedDict
2
+ - - - buffer_size
 
 
3
  - 100000
4
  - - env_wrapper
5
  - - stable_baselines3.common.atari_wrappers.AtariWrapper
 
 
6
  - - exploration_fraction
7
+ - 0.025
8
  - - frame_stack
9
  - 4
 
 
 
 
 
 
10
  - - n_timesteps
11
  - 10000000.0
12
  - - optimize_memory_usage
13
  - false
14
  - - policy
15
  - CnnPolicy
 
 
 
 
qrdqn-SpaceInvadersNoFrameskip-v4.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2cea7fbe1e6b350d119e91fac0847989dc3f87c1ac08ca088e4922d9793a3203
3
+ size 37025172
qrdqn-SpaceInvadersNoFrameskip-v4/_stable_baselines3_version ADDED
@@ -0,0 +1 @@
 
 
1
+ 1.8.0a2
qrdqn-SpaceInvadersNoFrameskip-v4/data ADDED
The diff for this file is too large to render. See raw diff
 
qrdqn-SpaceInvadersNoFrameskip-v4/policy.optimizer.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8dfcb1dcdcbd508cf2a0f5409b119756e679a5f2a062743837ad7810d4de0a97
3
+ size 18405963
qrdqn-SpaceInvadersNoFrameskip-v4/policy.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e208801030a2516b25c3d1b52506263270426e3bfe977535e3e80a6b9e920aeb
3
+ size 18405545
qrdqn-SpaceInvadersNoFrameskip-v4/pytorch_variables.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d030ad8db708280fcae77d87e973102039acd23a11bdecc3db8eb6c0ac940ee1
3
+ size 431
qrdqn-SpaceInvadersNoFrameskip-v4/system_info.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ - OS: Linux-5.4.0-144-generic-x86_64-with-glibc2.29 # 161-Ubuntu SMP Fri Feb 3 14:49:04 UTC 2023
2
+ - Python: 3.8.10
3
+ - Stable-Baselines3: 1.8.0a2
4
+ - PyTorch: 1.13.1+cu117
5
+ - GPU Enabled: True
6
+ - Numpy: 1.24.2
7
+ - Gym: 0.21.0
replay.mp4 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b0c334a2b0fa257a35df59740f8e6a2dbc8118680f3f7b785aff00b888fc0c32
3
- size 179568
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2bae2b8844812f8297dfec4b47a81774e2c01d32ad145fb2b345ddd12ad09b6
3
+ size 209038
results.json CHANGED
@@ -1 +1 @@
1
- {"mean_reward": 918.0, "std_reward": 380.21178308937243, "is_deterministic": false, "n_eval_episodes": 10, "eval_datetime": "2023-03-05T08:04:34.024555"}
 
1
+ {"mean_reward": 1603.0, "std_reward": 724.0276237824079, "is_deterministic": false, "n_eval_episodes": 10, "eval_datetime": "2023-03-05T19:03:28.884310"}
train_eval_metrics.zip CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b96a7a01e98e7d58d67695adefec4fc9bfc1988bec717f5d3f7a909366678a83
3
- size 273780
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70632f9f4f440d1a07cb14b6a8296ac83064086e1d165eab31da23d58345a0cf
3
+ size 244038