ThomasSimonini HF staff commited on
Commit
6d62c03
1 Parent(s): b63d9a7

Initial commit

Browse files
README.md CHANGED
@@ -8,16 +8,17 @@ tags:
8
  model-index:
9
  - name: DQN
10
  results:
11
- - metrics:
12
- - type: mean_reward
13
- value: 274.50 +/- 31.50
14
- name: mean_reward
15
- task:
16
  type: reinforcement-learning
17
  name: reinforcement-learning
18
  dataset:
19
  name: SpaceInvadersNoFrameskip-v4
20
  type: SpaceInvadersNoFrameskip-v4
 
 
 
 
 
21
  ---
22
 
23
  # **DQN** Agent playing **SpaceInvadersNoFrameskip-v4**
@@ -35,17 +36,28 @@ RL Zoo: https://github.com/DLR-RM/rl-baselines3-zoo<br/>
35
  SB3: https://github.com/DLR-RM/stable-baselines3<br/>
36
  SB3 Contrib: https://github.com/Stable-Baselines-Team/stable-baselines3-contrib
37
 
 
 
 
 
 
38
  ```
39
  # Download model and save it into the logs/ folder
40
- python -m utils.load_from_hub --algo dqn --env SpaceInvadersNoFrameskip-v4 -orga ThomasSimonini -f logs/
41
- python enjoy.py --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/
 
 
 
 
 
 
42
  ```
43
 
44
  ## Training (with the RL Zoo)
45
  ```
46
- python train.py --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/
47
  # Upload the model and generate video (when possible)
48
- python -m utils.push_to_hub --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/ -orga ThomasSimonini
49
  ```
50
 
51
  ## Hyperparameters
@@ -60,8 +72,8 @@ OrderedDict([('batch_size', 32),
60
  ('gradient_steps', 1),
61
  ('learning_rate', 0.0001),
62
  ('learning_starts', 100000),
63
- ('n_timesteps', 100000.0),
64
- ('optimize_memory_usage', True),
65
  ('policy', 'CnnPolicy'),
66
  ('target_update_interval', 1000),
67
  ('train_freq', 4),
 
8
  model-index:
9
  - name: DQN
10
  results:
11
+ - task:
 
 
 
 
12
  type: reinforcement-learning
13
  name: reinforcement-learning
14
  dataset:
15
  name: SpaceInvadersNoFrameskip-v4
16
  type: SpaceInvadersNoFrameskip-v4
17
+ metrics:
18
+ - type: mean_reward
19
+ value: 6.00 +/- 9.17
20
+ name: mean_reward
21
+ verified: false
22
  ---
23
 
24
  # **DQN** Agent playing **SpaceInvadersNoFrameskip-v4**
 
36
  SB3: https://github.com/DLR-RM/stable-baselines3<br/>
37
  SB3 Contrib: https://github.com/Stable-Baselines-Team/stable-baselines3-contrib
38
 
39
+ Install the RL Zoo (with SB3 and SB3-Contrib):
40
+ ```bash
41
+ pip install rl_zoo3
42
+ ```
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 ThomasSimonini -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 ThomasSimonini -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 ThomasSimonini
61
  ```
62
 
63
  ## Hyperparameters
 
72
  ('gradient_steps', 1),
73
  ('learning_rate', 0.0001),
74
  ('learning_starts', 100000),
75
+ ('n_timesteps', 10000.0),
76
+ ('optimize_memory_usage', False),
77
  ('policy', 'CnnPolicy'),
78
  ('target_update_interval', 1000),
79
  ('train_freq', 4),
args.yml CHANGED
@@ -1,6 +1,8 @@
1
  !!python/object/apply:collections.OrderedDict
2
  - - - algo
3
  - dqn
 
 
4
  - - device
5
  - auto
6
  - - env
@@ -41,6 +43,8 @@
41
  - null
42
  - - optimize_hyperparameters
43
  - false
 
 
44
  - - pruner
45
  - median
46
  - - sampler
@@ -50,7 +54,7 @@
50
  - - save_replay_buffer
51
  - false
52
  - - seed
53
- - 2326486648
54
  - - storage
55
  - null
56
  - - study_name
@@ -73,3 +77,5 @@
73
  - null
74
  - - wandb_project_name
75
  - sb3
 
 
 
1
  !!python/object/apply:collections.OrderedDict
2
  - - - algo
3
  - dqn
4
+ - - conf_file
5
+ - dqn.yml
6
  - - device
7
  - auto
8
  - - env
 
43
  - null
44
  - - optimize_hyperparameters
45
  - false
46
+ - - progress
47
+ - false
48
  - - pruner
49
  - median
50
  - - sampler
 
54
  - - save_replay_buffer
55
  - false
56
  - - seed
57
+ - 3958810720
58
  - - storage
59
  - null
60
  - - study_name
 
77
  - null
78
  - - wandb_project_name
79
  - sb3
80
+ - - wandb_tags
81
+ - []
config.yml CHANGED
@@ -18,9 +18,9 @@
18
  - - learning_starts
19
  - 100000
20
  - - n_timesteps
21
- - 100000.0
22
  - - optimize_memory_usage
23
- - true
24
  - - policy
25
  - CnnPolicy
26
  - - target_update_interval
 
18
  - - learning_starts
19
  - 100000
20
  - - n_timesteps
21
+ - 10000.0
22
  - - optimize_memory_usage
23
+ - false
24
  - - policy
25
  - CnnPolicy
26
  - - target_update_interval
dqn-SpaceInvadersNoFrameskip-v4.zip CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9ce4f7f148be8adc919ae44c2faed67deb1933a30dc2139278877a4a687e5a5d
3
- size 13719480
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7c9bf4358bf89fdf5a760b196deadff9905b42b5b1eda63b9537e6338eebd65
3
+ size 13710057
dqn-SpaceInvadersNoFrameskip-v4/_stable_baselines3_version CHANGED
@@ -1 +1 @@
1
- 1.5.1a7
 
1
+ 2.0.0a5
dqn-SpaceInvadersNoFrameskip-v4/data CHANGED
The diff for this file is too large to render. See raw diff
 
dqn-SpaceInvadersNoFrameskip-v4/policy.optimizer.pth CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d2cbea93aa998a3114d7b0e19fbd3e65edc311a58b95199b7b2a09052fe1b3ed
3
- size 623
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b69a6cb94f8a9599ea4291f66c0618fbf541f7509cd0bdc82e64322acea359b
3
+ size 687
dqn-SpaceInvadersNoFrameskip-v4/policy.pth CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:167d57b29bb31f06666a6c0f145355a0719abe6b28af1d0979a796ae5dba29c5
3
- size 13504745
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34d57bbb9d8a1ed7580ddd62130f35447d23a25e026521976a31e3555f1f3cb2
3
+ size 13504937
dqn-SpaceInvadersNoFrameskip-v4/system_info.txt CHANGED
@@ -1,7 +1,9 @@
1
- OS: Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic #1 SMP Sun Apr 24 10:03:06 PDT 2022
2
- Python: 3.7.13
3
- Stable-Baselines3: 1.5.1a7
4
- PyTorch: 1.11.0+cu113
5
- GPU Enabled: False
6
- Numpy: 1.21.6
7
- Gym: 0.21.0
 
 
 
1
+ - OS: Linux-5.10.147+-x86_64-with-glibc2.31 # 1 SMP Sat Dec 10 16:00:40 UTC 2022
2
+ - Python: 3.10.11
3
+ - Stable-Baselines3: 2.0.0a5
4
+ - PyTorch: 2.0.0+cu118
5
+ - GPU Enabled: True
6
+ - Numpy: 1.22.4
7
+ - Cloudpickle: 2.2.1
8
+ - Gymnasium: 0.28.1
9
+ - OpenAI Gym: 0.26.2
results.json CHANGED
@@ -1 +1 @@
1
- {"mean_reward": 274.5, "std_reward": 31.5, "is_deterministic": false, "n_eval_episodes": 10, "eval_datetime": "2022-06-07T12:25:50.495784"}
 
1
+ {"mean_reward": 6.0, "std_reward": 9.16515138991168, "is_deterministic": false, "n_eval_episodes": 10, "eval_datetime": "2023-05-04T08:15:13.257777"}
train_eval_metrics.zip CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:38f7791d5e7613c2f86340d8f3cc14fd5e4e140a03a75db08f8f64a2d10ffe04
3
- size 5776
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cb25b8059114a1995f437cfb6a2ca08b87670e89f95db40d5c459db0cff2789
3
+ size 649