Skip to content

Commit 0a7e1b8

Browse files
Remove useless requirement (#302)
* Remove useless requirement * Change activation type on reacher config * docs: add sehyun-hwang as a contributor (#303) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * Update ray version * Fix typo Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
1 parent 1465d16 commit 0a7e1b8

File tree

9 files changed

+64
-51
lines changed

9 files changed

+64
-51
lines changed

.all-contributorsrc

+9
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@
7676
"contributions": [
7777
"code"
7878
]
79+
},
80+
{
81+
"login": "sehyun-hwang",
82+
"name": "Sehyun Hwang",
83+
"avatar_url": "https://avatars3.githubusercontent.com/u/23437715?v=4",
84+
"profile": "https://github.com/sehyun-hwang",
85+
"contributions": [
86+
"maintenance"
87+
]
7988
}
8089
],
8190
"contributorsPerLine": 7,

README.md

+12-10
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/medipixel/rl_algorithms.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/medipixel/rl_algorithms/context:python)
55
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
66
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
7-
[![All Contributors](https://img.shields.io/badge/all_contributors-8-orange.svg?style=flat-square)](#contributors-)
7+
[![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors-)
88
<!-- ALL-CONTRIBUTORS-BADGE:END -->
99

1010
</p>
@@ -36,21 +36,23 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
3636
<!-- markdownlint-disable -->
3737
<table>
3838
<tr>
39-
<td align="center"><a href="https://github.com/Curt-Park"><img src="https://avatars3.githubusercontent.com/u/14961526?v=4" width="100px;" alt=""/><br /><sub><b>Jinwoo Park (Curt)</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=Curt-Park" title="Code">💻</a></td>
40-
<td align="center"><a href="https://github.com/MrSyee"><img src="https://avatars3.githubusercontent.com/u/17582508?v=4" width="100px;" alt=""/><br /><sub><b>Kyunghwan Kim</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=MrSyee" title="Code">💻</a></td>
41-
<td align="center"><a href="https://github.com/darthegg"><img src="https://avatars3.githubusercontent.com/u/16010242?v=4" width="100px;" alt=""/><br /><sub><b>darthegg</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=darthegg" title="Code">💻</a></td>
42-
<td align="center"><a href="https://github.com/mclearning2"><img src="https://avatars3.githubusercontent.com/u/43226417?v=4" width="100px;" alt=""/><br /><sub><b>Mincheol Kim</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=mclearning2" title="Code">💻</a></td>
43-
<td align="center"><a href="https://github.com/minseop4898"><img src="https://avatars1.githubusercontent.com/u/34338299?v=4" width="100px;" alt=""/><br /><sub><b>김민섭</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=minseop4898" title="Code">💻</a></td>
44-
<td align="center"><a href="https://github.com/jinPrelude"><img src="https://avatars1.githubusercontent.com/u/16518993?v=4" width="100px;" alt=""/><br /><sub><b>Leejin Jung</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=jinPrelude" title="Code">💻</a></td>
45-
<td align="center"><a href="https://github.com/cyoon1729"><img src="https://avatars2.githubusercontent.com/u/33583101?v=4" width="100px;" alt=""/><br /><sub><b>Chris Yoon</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=cyoon1729" title="Code">💻</a></td>
39+
<td align="center"><a href="https://github.com/Curt-Park"><img src="https://avatars3.githubusercontent.com/u/14961526?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jinwoo Park (Curt)</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=Curt-Park" title="Code">💻</a></td>
40+
<td align="center"><a href="https://github.com/MrSyee"><img src="https://avatars3.githubusercontent.com/u/17582508?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kyunghwan Kim</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=MrSyee" title="Code">💻</a></td>
41+
<td align="center"><a href="https://github.com/darthegg"><img src="https://avatars3.githubusercontent.com/u/16010242?v=4?s=100" width="100px;" alt=""/><br /><sub><b>darthegg</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=darthegg" title="Code">💻</a></td>
42+
<td align="center"><a href="https://github.com/mclearning2"><img src="https://avatars3.githubusercontent.com/u/43226417?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mincheol Kim</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=mclearning2" title="Code">💻</a></td>
43+
<td align="center"><a href="https://github.com/minseop4898"><img src="https://avatars1.githubusercontent.com/u/34338299?v=4?s=100" width="100px;" alt=""/><br /><sub><b>김민섭</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=minseop4898" title="Code">💻</a></td>
44+
<td align="center"><a href="https://github.com/jinPrelude"><img src="https://avatars1.githubusercontent.com/u/16518993?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Leejin Jung</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=jinPrelude" title="Code">💻</a></td>
45+
<td align="center"><a href="https://github.com/cyoon1729"><img src="https://avatars2.githubusercontent.com/u/33583101?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Chris Yoon</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=cyoon1729" title="Code">💻</a></td>
4646
</tr>
4747
<tr>
48-
<td align="center"><a href="https://jiseonghan.github.io/"><img src="https://avatars2.githubusercontent.com/u/48741026?v=4" width="100px;" alt=""/><br /><sub><b>Jiseong Han</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=jiseongHAN" title="Code">💻</a></td>
48+
<td align="center"><a href="https://jiseonghan.github.io/"><img src="https://avatars2.githubusercontent.com/u/48741026?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jiseong Han</b></sub></a><br /><a href="https://github.com/medipixel/rl_algorithms/commits?author=jiseongHAN" title="Code">💻</a></td>
49+
<td align="center"><a href="https://github.com/sehyun-hwang"><img src="https://avatars3.githubusercontent.com/u/23437715?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sehyun Hwang</b></sub></a><br /><a href="#maintenance-sehyun-hwang" title="Maintenance">🚧</a></td>
4950
</tr>
5051
</table>
5152

52-
<!-- markdownlint-enable -->
53+
<!-- markdownlint-restore -->
5354
<!-- prettier-ignore-end -->
55+
5456
<!-- ALL-CONTRIBUTORS-LIST:END -->
5557
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification.
5658

configs/reacher_v2/bc_ddpg.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
- Author: Kyunghwan Kim
44
55
"""
6-
import torch
7-
8-
from rl_algorithms.common.helper_functions import identity
96

107
agent = dict(
118
type="BCDDPGAgent",
@@ -34,12 +31,14 @@
3431
head=dict(
3532
actor=dict(
3633
type="MLP",
37-
configs=dict(hidden_sizes=[256, 256], output_activation=torch.tanh,),
34+
configs=dict(hidden_sizes=[256, 256], output_activation="tanh",),
3835
),
3936
critic=dict(
4037
type="MLP",
4138
configs=dict(
42-
hidden_sizes=[256, 256], output_size=1, output_activation=identity,
39+
hidden_sizes=[256, 256],
40+
output_size=1,
41+
output_activation="identity",
4342
),
4443
),
4544
),

configs/reacher_v2/bc_sac.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
- Author: Kyunghwan Kim
44
55
"""
6-
from rl_algorithms.common.helper_functions import identity
76

87
agent = dict(
98
type="BCSACAgent",
@@ -36,18 +35,22 @@
3635
head=dict(
3736
actor=dict(
3837
type="TanhGaussianDistParams",
39-
configs=dict(hidden_sizes=[256, 256], output_activation=identity,),
38+
configs=dict(hidden_sizes=[256, 256], output_activation="identity",),
4039
),
4140
critic_vf=dict(
4241
type="MLP",
4342
configs=dict(
44-
hidden_sizes=[256, 256], output_activation=identity, output_size=1,
43+
hidden_sizes=[256, 256],
44+
output_activation="identity",
45+
output_size=1,
4546
),
4647
),
4748
critic_qf=dict(
4849
type="MLP",
4950
configs=dict(
50-
hidden_sizes=[256, 256], output_activation=identity, output_size=1,
51+
hidden_sizes=[256, 256],
52+
output_activation="identity",
53+
output_size=1,
5154
),
5255
),
5356
),

configs/reacher_v2/ddpg.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
- Author: Kyunghwan Kim
44
55
"""
6-
import torch
7-
8-
from rl_algorithms.common.helper_functions import identity
96

107
agent = dict(
118
type="DDPGAgent",
@@ -25,12 +22,14 @@
2522
head=dict(
2623
actor=dict(
2724
type="MLP",
28-
configs=dict(hidden_sizes=[256, 256], output_activation=torch.tanh,),
25+
configs=dict(hidden_sizes=[256, 256], output_activation="tanh",),
2926
),
3027
critic=dict(
3128
type="MLP",
3229
configs=dict(
33-
hidden_sizes=[256, 256], output_size=1, output_activation=identity,
30+
hidden_sizes=[256, 256],
31+
output_size=1,
32+
output_activation="identity",
3433
),
3534
),
3635
),

configs/reacher_v2/sac.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
- Author: Kyunghwan Kim
44
55
"""
6-
from rl_algorithms.common.helper_functions import identity
76

87
agent = dict(
98
type="SACAgent",
@@ -27,18 +26,22 @@
2726
head=dict(
2827
actor=dict(
2928
type="TanhGaussianDistParams",
30-
configs=dict(hidden_sizes=[256, 256], output_activation=identity,),
29+
configs=dict(hidden_sizes=[256, 256], output_activation="identity",),
3130
),
3231
critic_vf=dict(
3332
type="MLP",
3433
configs=dict(
35-
hidden_sizes=[256, 256], output_activation=identity, output_size=1,
34+
hidden_sizes=[256, 256],
35+
output_activation="identity",
36+
output_size=1,
3637
),
3738
),
3839
critic_qf=dict(
3940
type="MLP",
4041
configs=dict(
41-
hidden_sizes=[256, 256], output_activation=identity, output_size=1,
42+
hidden_sizes=[256, 256],
43+
output_activation="identity",
44+
output_size=1,
4245
),
4346
),
4447
),

configs/reacher_v2/td3.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
- Author: Kyunghwan Kim
44
55
"""
6-
import torch
7-
8-
from rl_algorithms.common.helper_functions import identity
96

107
agent = dict(
118
type="TD3Agent",
@@ -23,12 +20,14 @@
2320
head=dict(
2421
actor=dict(
2522
type="MLP",
26-
configs=dict(hidden_sizes=[400, 300], output_activation=torch.tanh,),
23+
configs=dict(hidden_sizes=[400, 300], output_activation="tanh",),
2724
),
2825
critic=dict(
2926
type="MLP",
3027
configs=dict(
31-
hidden_sizes=[400, 300], output_size=1, output_activation=identity,
28+
hidden_sizes=[400, 300],
29+
output_size=1,
30+
output_activation="identity",
3231
),
3332
),
3433
),

requirements.txt

+16-17
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1-
numpy == 1.18.0
2-
torch == 1.6.0
3-
gym == 0.17.3
4-
atari-py == 0.2.6
5-
box2d-py == 2.3.8
6-
scipy == 1.5.4
7-
opencv-python == 4.4.0.46
8-
addict == 2.4.0
1+
numpy==1.18.0
2+
torch==1.6.0
3+
gym==0.17.3
4+
atari-py==0.2.6
5+
box2d-py==2.3.8
6+
scipy==1.5.4
7+
opencv-python==4.4.0.46
8+
addict==2.4.0
99
tqdm
1010

1111
# for distributed learning
12-
redis == 3.3.2 # for ray
13-
ray == 1.0.1.post1
14-
chardet == 3.0.4
15-
pyzmq == 20.0.0
16-
pyarrow == 2.0.0
12+
redis==3.5.3 # for ray
13+
ray==1.1.0
14+
pyzmq==20.0.0
15+
pyarrow==2.0.0
1716

1817
# for log
19-
six >= 1.13.0
20-
wandb == 0.10.11
21-
matplotlib == 3.3.3
22-
plotly == 4.13.0
18+
six>=1.13.0
19+
wandb==0.10.11
20+
matplotlib==3.3.3
21+
plotly==4.13.0

tools/check_version.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ if [ "$VERSION" = "$TAG" ]; then
1414
else
1515
echo "Tag and version are not same. Check again."
1616
exit 1
17-
fi;
17+
fi;

0 commit comments

Comments
 (0)