Initial commit
Browse files- .gitattributes +1 -0
- README.md +87 -0
- args.yml +59 -0
- config.yml +29 -0
- dqn-BeamRiderNoFrameskip-v4.zip +3 -0
- dqn-BeamRiderNoFrameskip-v4/_stable_baselines3_version +1 -0
- dqn-BeamRiderNoFrameskip-v4/data +0 -0
- dqn-BeamRiderNoFrameskip-v4/policy.optimizer.pth +3 -0
- dqn-BeamRiderNoFrameskip-v4/policy.pth +3 -0
- dqn-BeamRiderNoFrameskip-v4/pytorch_variables.pth +3 -0
- dqn-BeamRiderNoFrameskip-v4/system_info.txt +9 -0
- env_kwargs.yml +1 -0
- results.json +1 -0
- train_eval_metrics.zip +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: stable-baselines3
|
3 |
+
tags:
|
4 |
+
- BeamRiderNoFrameskip-v4
|
5 |
+
- deep-reinforcement-learning
|
6 |
+
- reinforcement-learning
|
7 |
+
- stable-baselines3
|
8 |
+
model-index:
|
9 |
+
- name: DQN
|
10 |
+
results:
|
11 |
+
- task:
|
12 |
+
type: reinforcement-learning
|
13 |
+
name: reinforcement-learning
|
14 |
+
dataset:
|
15 |
+
name: BeamRiderNoFrameskip-v4
|
16 |
+
type: BeamRiderNoFrameskip-v4
|
17 |
+
metrics:
|
18 |
+
- type: mean_reward
|
19 |
+
value: 3956.20 +/- 1425.23
|
20 |
+
name: mean_reward
|
21 |
+
verified: false
|
22 |
+
---
|
23 |
+
|
24 |
+
# **DQN** Agent playing **BeamRiderNoFrameskip-v4**
|
25 |
+
This is a trained model of a **DQN** agent playing **BeamRiderNoFrameskip-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 |
+
|
29 |
+
The RL Zoo is a training framework for Stable Baselines3
|
30 |
+
reinforcement learning agents,
|
31 |
+
with hyperparameter optimization and pre-trained agents included.
|
32 |
+
|
33 |
+
## Usage (with SB3 RL Zoo)
|
34 |
+
|
35 |
+
RL Zoo: https://github.com/DLR-RM/rl-baselines3-zoo<br/>
|
36 |
+
SB3: https://github.com/DLR-RM/stable-baselines3<br/>
|
37 |
+
SB3 Contrib: https://github.com/Stable-Baselines-Team/stable-baselines3-contrib
|
38 |
+
SBX (SB3 + Jax): https://github.com/araffin/sbx
|
39 |
+
|
40 |
+
Install the RL Zoo (with SB3 and SB3-Contrib):
|
41 |
+
```bash
|
42 |
+
pip install rl_zoo3
|
43 |
+
```
|
44 |
+
|
45 |
+
```
|
46 |
+
# Download model and save it into the logs/ folder
|
47 |
+
python -m rl_zoo3.load_from_hub --algo dqn --env BeamRiderNoFrameskip-v4 -orga Paris12 -f logs/
|
48 |
+
python -m rl_zoo3.enjoy --algo dqn --env BeamRiderNoFrameskip-v4 -f logs/
|
49 |
+
```
|
50 |
+
|
51 |
+
If you installed the RL Zoo3 via pip (`pip install rl_zoo3`), from anywhere you can do:
|
52 |
+
```
|
53 |
+
python -m rl_zoo3.load_from_hub --algo dqn --env BeamRiderNoFrameskip-v4 -orga Paris12 -f logs/
|
54 |
+
python -m rl_zoo3.enjoy --algo dqn --env BeamRiderNoFrameskip-v4 -f logs/
|
55 |
+
```
|
56 |
+
|
57 |
+
## Training (with the RL Zoo)
|
58 |
+
```
|
59 |
+
python -m rl_zoo3.train --algo dqn --env BeamRiderNoFrameskip-v4 -f logs/
|
60 |
+
# Upload the model and generate video (when possible)
|
61 |
+
python -m rl_zoo3.push_to_hub --algo dqn --env BeamRiderNoFrameskip-v4 -f logs/ -orga Paris12
|
62 |
+
```
|
63 |
+
|
64 |
+
## Hyperparameters
|
65 |
+
```python
|
66 |
+
OrderedDict([('batch_size', 32),
|
67 |
+
('buffer_size', 10000),
|
68 |
+
('env_wrapper',
|
69 |
+
['stable_baselines3.common.atari_wrappers.AtariWrapper']),
|
70 |
+
('exploration_final_eps', 0.01),
|
71 |
+
('exploration_fraction', 0.1),
|
72 |
+
('frame_stack', 4),
|
73 |
+
('gradient_steps', 1),
|
74 |
+
('learning_rate', 0.0001),
|
75 |
+
('learning_starts', 100000),
|
76 |
+
('n_timesteps', 10000000.0),
|
77 |
+
('optimize_memory_usage', True),
|
78 |
+
('policy', 'CnnPolicy'),
|
79 |
+
('target_update_interval', 1000),
|
80 |
+
('train_freq', 4),
|
81 |
+
('normalize', False)])
|
82 |
+
```
|
83 |
+
|
84 |
+
# Environment Arguments
|
85 |
+
```python
|
86 |
+
{'render_mode': 'rgb_array'}
|
87 |
+
```
|
args.yml
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
!!python/object/apply:collections.OrderedDict
|
2 |
+
- - - algo
|
3 |
+
- dqn
|
4 |
+
- - env
|
5 |
+
- BeamRiderNoFrameskip-v4
|
6 |
+
- - env_kwargs
|
7 |
+
- null
|
8 |
+
- - eval_episodes
|
9 |
+
- 10
|
10 |
+
- - eval_freq
|
11 |
+
- 10000
|
12 |
+
- - gym_packages
|
13 |
+
- []
|
14 |
+
- - hyperparams
|
15 |
+
- null
|
16 |
+
- - log_folder
|
17 |
+
- rl-trained-agents/
|
18 |
+
- - log_interval
|
19 |
+
- -1
|
20 |
+
- - n_evaluations
|
21 |
+
- 20
|
22 |
+
- - n_jobs
|
23 |
+
- 1
|
24 |
+
- - n_startup_trials
|
25 |
+
- 10
|
26 |
+
- - n_timesteps
|
27 |
+
- -1
|
28 |
+
- - n_trials
|
29 |
+
- 10
|
30 |
+
- - num_threads
|
31 |
+
- -1
|
32 |
+
- - optimize_hyperparameters
|
33 |
+
- false
|
34 |
+
- - pruner
|
35 |
+
- median
|
36 |
+
- - sampler
|
37 |
+
- tpe
|
38 |
+
- - save_freq
|
39 |
+
- -1
|
40 |
+
- - save_replay_buffer
|
41 |
+
- false
|
42 |
+
- - seed
|
43 |
+
- 1882915395
|
44 |
+
- - storage
|
45 |
+
- null
|
46 |
+
- - study_name
|
47 |
+
- null
|
48 |
+
- - tensorboard_log
|
49 |
+
- ''
|
50 |
+
- - trained_agent
|
51 |
+
- ''
|
52 |
+
- - truncate_last_trajectory
|
53 |
+
- true
|
54 |
+
- - uuid
|
55 |
+
- true
|
56 |
+
- - vec_env
|
57 |
+
- dummy
|
58 |
+
- - verbose
|
59 |
+
- 1
|
config.yml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
!!python/object/apply:collections.OrderedDict
|
2 |
+
- - - batch_size
|
3 |
+
- 32
|
4 |
+
- - buffer_size
|
5 |
+
- 10000
|
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 |
+
- true
|
24 |
+
- - policy
|
25 |
+
- CnnPolicy
|
26 |
+
- - target_update_interval
|
27 |
+
- 1000
|
28 |
+
- - train_freq
|
29 |
+
- 4
|
dqn-BeamRiderNoFrameskip-v4.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cd1b655ee1c6e5fb7fa7f4ef9ce8559b049ac296d833f8ccc2be1c5676fb510c
|
3 |
+
size 27243903
|
dqn-BeamRiderNoFrameskip-v4/_stable_baselines3_version
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
2.4.0
|
dqn-BeamRiderNoFrameskip-v4/data
ADDED
The diff for this file is too large to render.
See raw diff
|
|
dqn-BeamRiderNoFrameskip-v4/policy.optimizer.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a589b5f4ca92a1be07df2f9b927af29cd13279222b75f47e3fa59a8a0c11a379
|
3 |
+
size 13518396
|
dqn-BeamRiderNoFrameskip-v4/policy.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2c5d73cec87940813e0553f817edd8fb233ea09ab7b9c936a58baffdcdaa4559
|
3 |
+
size 13517658
|
dqn-BeamRiderNoFrameskip-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-BeamRiderNoFrameskip-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.0
|
4 |
+
- PyTorch: 2.5.1+cu121
|
5 |
+
- GPU Enabled: True
|
6 |
+
- Numpy: 1.26.4
|
7 |
+
- Cloudpickle: 3.1.0
|
8 |
+
- Gymnasium: 1.0.0
|
9 |
+
- OpenAI Gym: 0.25.2
|
env_kwargs.yml
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
render_mode: rgb_array
|
results.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"mean_reward": 3956.2, "std_reward": 1425.2299323267107, "is_deterministic": false, "n_eval_episodes": 10, "eval_datetime": "2024-12-12T06:26:08.792597"}
|
train_eval_metrics.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:89f8c0d266f3e61ed2f020a7aa401a692babfc7d948771c6854ed9a81d81aa23
|
3 |
+
size 243986
|