Created
December 20, 2020 23:05
-
-
Save roclark/1371ef404c06db3cd1638ce1542beeff to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def parse_args(): | |
parser = ArgumentParser(description='Train an agent to beat Super Mario ' | |
'Bros. levels.') | |
parser.add_argument('--checkpoint', help='Specify an existing checkpoint ' | |
'which can be used to restore progress from a previous' | |
' training run.') | |
parser.add_argument('--dimension', help='The image dimensions to resize to' | |
' while preprocessing the game states.', type=int, | |
default=84) | |
parser.add_argument('--environment', help='The Super Mario Bros level to ' | |
'train on.', type=str, default='SuperMarioBros-1-1-v0') | |
parser.add_argument('--framestack', help='The number of frames to stack ' | |
'together to feed into the network.', type=int, | |
default=4) | |
parser.add_argument('--gpus', help='Number of GPUs to include in the ' | |
'cluster.', type=int, default=0) | |
parser.add_argument('--iterations', help='Number of iterations to train ' | |
'for.', type=int, default=1000000) | |
parser.add_argument('--workers', help='Number of workers to launch on the ' | |
'cluster. Hint: Must be less than the number of CPU ' | |
'cores available.', type=int, default=4) | |
return parser.parse_args() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment