-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements, env cleanup and scripts (#108)
* PyGame Renderer (#104) * Export vehicle size * Working pygame renderer * Working renderer * Draw agents on top and map only once * Cleanup and integrate info_tensor. * Improve logging and environment. * Basic FFN * Update default params. * Speed benchmark * Improve naming and minor changes. * Basic policy / expert eval script * Minor * Exper eval script. * Fix * Clean up gym env * speed nb * wip * Important bug fix: auto_reset must be False for RL training * Minor * Set default settings to full obs * Name changes. * separate out storage and computation devices in rollout buffer (#110) * Remove cache and binding changes. --------- Co-authored-by: Aarav Pandya <[email protected]> Co-authored-by: Eugene Vinitsky <[email protected]>
- Loading branch information
1 parent
351e6a4
commit e65f4cd
Showing
21 changed files
with
5,419 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
|
||
from networks.basic_ffn import FeedForwardPolicy | ||
from dataclasses import dataclass | ||
import torch | ||
|
||
|
||
@dataclass | ||
class ExperimentConfig: | ||
""" | ||
Configurations for experiments. | ||
""" | ||
"""Configurations for experiments.""" | ||
|
||
# General | ||
device: str = "cuda" | ||
|
||
# Rendering options | ||
render: bool = False | ||
render_mode: str = "rgb_array" | ||
render_freq: int = 1 | ||
render_freq: int = 10 | ||
|
||
# TODO: Logging | ||
log_dir: str = "logs" | ||
|
||
# Hyperparameters | ||
policy: str = "MlpPolicy" | ||
policy: torch.nn.Module = FeedForwardPolicy | ||
seed: int = 42 | ||
n_steps: int = 2048 | ||
batch_size: int = 256 | ||
verbose: int = 0 | ||
n_steps: int = 180 | ||
batch_size: int = 180 | ||
verbose: int = 0 | ||
total_timesteps: int = 50_000_000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.