Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update agilerl version and simplified CNN definition #1182

Merged
merged 5 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tutorials/AgileRL/agilerl_maddpg.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
NET_CONFIG = {
"arch": "cnn", # Network architecture
"h_size": [32, 32], # Network hidden size
"c_size": [3, 32], # CNN channel size
"k_size": [(1, 3, 3), (1, 3, 3)], # CNN kernel size
"c_size": [32, 32], # CNN channel size
"k_size": [3, 3], # CNN kernel size
"s_size": [2, 2], # CNN stride size
"normalize": True, # Normalize image from range [0,255] to [0,1]
}
Expand All @@ -36,7 +36,8 @@
# Swap image channels dimension from last to first [H, W, C] -> [C, H, W]
"CHANNELS_LAST": True,
"BATCH_SIZE": 8, # Batch size
"LR": 0.01, # Learning rate
"LR_ACTOR": 0.001, # Actor learning rate
"LR_CRITIC": 0.01, # Critic learning rate
"GAMMA": 0.95, # Discount factor
"MEMORY_SIZE": 10000, # Max memory buffer size
"LEARN_STEP": 5, # Learning frequency
Expand Down
3 changes: 2 additions & 1 deletion tutorials/AgileRL/agilerl_matd3.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
# Swap image channels dimension from last to first [H, W, C] -> [C, H, W]
"CHANNELS_LAST": False,
"BATCH_SIZE": 32, # Batch size
"LR": 0.01, # Learning rate
"LR_ACTOR": 0.001, # Actor learning rate
"LR_CRITIC": 0.01, # Critic learning rate
"GAMMA": 0.95, # Discount factor
"MEMORY_SIZE": 100000, # Max memory buffer size
"LEARN_STEP": 5, # Learning frequency
Expand Down
3 changes: 2 additions & 1 deletion tutorials/AgileRL/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
agilerl==0.1.19
agilerl>=0.1.21; python_version >= '3.9'
agilerl==0.1.20; python_version < '3.9'
pettingzoo[classic,atari,mpe]>=1.23.1
SuperSuit>=3.9.0
torch>=2.0.1
Expand Down
Loading