-
Notifications
You must be signed in to change notification settings - Fork 350
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
name 'args' is not defined #226
Comments
please help me thank very much |
同学,想问你一下,你这个问题解决了吗。我现在用windows跑也遇到了这个问题。 |
他的这个args 需要全局化 在函数内部的args前 加上global
…---Original---
From: ***@***.***>
Date: Sat, Sep 4, 2021 16:26 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [open-mmlab/mmaction] name 'args' is not defined (#226)
同学,想问你一下,你这个问题解决了吗。我现在用windows跑也遇到了这个问题。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
同学,我也遇到了同样的问题,是在parse_args()里将args定义为全局变量吗,我尝试后还是没有得到解决,方便细说一下嘛? |
在你的main函数里面定义全局变量:
global args
然后
args =parser-args()
…---Original---
From: ***@***.***>
Date: Wed, Dec 22, 2021 17:17 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [open-mmlab/mmaction] name 'args' is not defined (#226)
同学,我也遇到了同样的问题,是在parse_args()里将args定义为全局变量吗,我尝试后还是没有得到解决,方便细说一下嘛?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
我按照这个试了,好像并没有作用 |
The text was updated successfully, but these errors were encountered: