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

Unit 8 - part 1 - Hands on Lab #566

Open
MojtabaAbdi opened this issue Sep 24, 2024 · 1 comment
Open

Unit 8 - part 1 - Hands on Lab #566

MojtabaAbdi opened this issue Sep 24, 2024 · 1 comment

Comments

@MojtabaAbdi
Copy link

MojtabaAbdi commented Sep 24, 2024

Hi. I'm running unit 8 part 1 in my colab and get some errors. It seems some lines of code regarding parsing the arguments are missing. I added them manually, but I kept getting the error. Can any one please help me?
1
2
Point: these are the two cells on either side of cell containing the definition of the function "package_to_hub" in case you are wondering where they are coming from in the notebook file.

@ValentinGuigon
Copy link

Hi, I believe the issue arises because the kernel doesn't recognize some arguments. I went through the same issues and found a way out of them by making the following modification:

args = parser.parse_args()
args.batch_size = int(args.num_envs * args.num_steps)
    args.minibatch_size = int(args.batch_size // args.num_minibatches)
    # fmt: on
    return args

with

args, unknown = parser.parse_known_args()
args.batch_size = int(args.num_envs * args.num_steps)
    args.minibatch_size = int(args.batch_size // args.num_minibatches)
    # fmt: on
    return args

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants