shoaibazam commited on
Commit
d2ba030
1 Parent(s): 3ffe83f

Initial commit

Browse files
.gitattributes CHANGED
@@ -30,3 +30,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
  *.zip filter=lfs diff=lfs merge=lfs -text
31
  *.zst filter=lfs diff=lfs merge=lfs -text
32
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
30
  *.zip filter=lfs diff=lfs merge=lfs -text
31
  *.zst filter=lfs diff=lfs merge=lfs -text
32
  *tfevents* filter=lfs diff=lfs merge=lfs -text
33
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: stable-baselines3
3
+ tags:
4
+ - SpaceInvadersNoFrameskip-v4
5
+ - deep-reinforcement-learning
6
+ - reinforcement-learning
7
+ - stable-baselines3
8
+ model-index:
9
+ - name: DQN
10
+ results:
11
+ - metrics:
12
+ - type: mean_reward
13
+ value: 466.00 +/- 213.32
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**
24
+ This is a trained model of a **DQN** agent playing **SpaceInvadersNoFrameskip-v4**
25
+ using the [stable-baselines3 library](https://github.com/DLR-RM/stable-baselines3)
26
+ and the [RL Zoo](https://github.com/DLR-RM/rl-baselines3-zoo).
27
+
28
+ The RL Zoo is a training framework for Stable Baselines3
29
+ reinforcement learning agents,
30
+ with hyperparameter optimization and pre-trained agents included.
31
+
32
+ ## Usage (with SB3 RL Zoo)
33
+
34
+ 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 rl_zoo3.load_from_hub --algo dqn --env SpaceInvadersNoFrameskip-v4 -orga shoaibazam -f logs/
41
+ python enjoy.py --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/
42
+ ```
43
+
44
+ If you installed the RL Zoo3 via pip (`pip install rl_zoo3`), from anywhere you can do:
45
+ ```
46
+ python -m rl_zoo3.load_from_hub --algo dqn --env SpaceInvadersNoFrameskip-v4 -orga shoaibazam -f logs/
47
+ rl_zoo3 enjoy --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/
48
+ ```
49
+
50
+ ## Training (with the RL Zoo)
51
+ ```
52
+ python train.py --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/
53
+ # Upload the model and generate video (when possible)
54
+ python -m rl_zoo3.push_to_hub --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/ -orga shoaibazam
55
+ ```
56
+
57
+ ## Hyperparameters
58
+ ```python
59
+ OrderedDict([('batch_size', 32),
60
+ ('buffer_size', 100000),
61
+ ('env_wrapper',
62
+ ['stable_baselines3.common.atari_wrappers.AtariWrapper']),
63
+ ('exploration_final_eps', 0.01),
64
+ ('exploration_fraction', 0.1),
65
+ ('frame_stack', 4),
66
+ ('gradient_steps', 1),
67
+ ('learning_rate', 0.0001),
68
+ ('learning_starts', 100000),
69
+ ('n_timesteps', 1000000),
70
+ ('optimize_memory_usage', False),
71
+ ('policy', 'CnnPolicy'),
72
+ ('target_update_interval', 1000),
73
+ ('train_freq', 4),
74
+ ('normalize', False)])
75
+ ```
args.yml ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ !!python/object/apply:collections.OrderedDict
2
+ - - - algo
3
+ - dqn
4
+ - - device
5
+ - auto
6
+ - - env
7
+ - SpaceInvadersNoFrameskip-v4
8
+ - - env_kwargs
9
+ - null
10
+ - - eval_episodes
11
+ - 5
12
+ - - eval_freq
13
+ - 25000
14
+ - - gym_packages
15
+ - []
16
+ - - hyperparams
17
+ - null
18
+ - - log_folder
19
+ - logs/
20
+ - - log_interval
21
+ - -1
22
+ - - max_total_trials
23
+ - null
24
+ - - n_eval_envs
25
+ - 1
26
+ - - n_evaluations
27
+ - null
28
+ - - n_jobs
29
+ - 1
30
+ - - n_startup_trials
31
+ - 10
32
+ - - n_timesteps
33
+ - -1
34
+ - - n_trials
35
+ - 500
36
+ - - no_optim_plots
37
+ - false
38
+ - - num_threads
39
+ - -1
40
+ - - optimization_log_path
41
+ - null
42
+ - - optimize_hyperparameters
43
+ - false
44
+ - - progress
45
+ - false
46
+ - - pruner
47
+ - median
48
+ - - sampler
49
+ - tpe
50
+ - - save_freq
51
+ - -1
52
+ - - save_replay_buffer
53
+ - false
54
+ - - seed
55
+ - 30654782
56
+ - - storage
57
+ - null
58
+ - - study_name
59
+ - null
60
+ - - tensorboard_log
61
+ - ''
62
+ - - track
63
+ - false
64
+ - - trained_agent
65
+ - ''
66
+ - - truncate_last_trajectory
67
+ - true
68
+ - - uuid
69
+ - false
70
+ - - vec_env
71
+ - dummy
72
+ - - verbose
73
+ - 1
74
+ - - wandb_entity
75
+ - null
76
+ - - wandb_project_name
77
+ - sb3
78
+ - - yaml_file
79
+ - null
config.yml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - 1000000
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:974869e233848a02fe6e628eb1134f14571d688257d8107ff8303c982972d47f
3
+ size 27225007
dqn-SpaceInvadersNoFrameskip-v4/_stable_baselines3_version ADDED
@@ -0,0 +1 @@
 
 
1
+ 1.6.2
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:e4bea3d67cad0cf737d8fb4fea6c4a8d2b0d5277a19b6328417d1c60a144bc81
3
+ size 13505739
dqn-SpaceInvadersNoFrameskip-v4/policy.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:949675f3cfac08c9aded6796a2e36efd0157620fb9e7c9f8f03c467554fc0ffc
3
+ size 13504937
dqn-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
dqn-SpaceInvadersNoFrameskip-v4/system_info.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ OS: Linux-5.15.0-48-generic-x86_64-with-glibc2.17 #54~20.04.1-Ubuntu SMP Thu Sep 1 16:17:26 UTC 2022
2
+ Python: 3.8.13
3
+ Stable-Baselines3: 1.6.2
4
+ PyTorch: 1.12.0+cu116
5
+ GPU Enabled: True
6
+ Numpy: 1.23.3
7
+ Gym: 0.21.0
env_kwargs.yml ADDED
@@ -0,0 +1 @@
 
 
1
+ {}
replay.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbfef1c07742f1c30899e63be389d936384ff2f0db2b04875d0cb09109e32655
3
+ size 195967
results.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"mean_reward": 466.0, "std_reward": 213.31666601557413, "is_deterministic": false, "n_eval_episodes": 10, "eval_datetime": "2022-10-12T16:14:15.254381"}
train_eval_metrics.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f654c06862a25798e54975ac56ea6d3cd8adca238dd55ef13245a12ae9a28417
3
+ size 38565