mmaction icon indicating copy to clipboard operation
mmaction copied to clipboard

name 'args' is not defined

Open daizhenyu opened this issue 3 years ago • 7 comments

image

daizhenyu avatar Mar 15 '21 08:03 daizhenyu

image

daizhenyu avatar Mar 15 '21 08:03 daizhenyu

please help me thank very much

daizhenyu avatar Mar 15 '21 08:03 daizhenyu

同学,想问你一下,你这个问题解决了吗。我现在用windows跑也遇到了这个问题。

jlin1125 avatar Sep 04 '21 08:09 jlin1125

他的这个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.

daizhenyu avatar Sep 06 '21 07:09 daizhenyu

同学,我也遇到了同样的问题,是在parse_args()里将args定义为全局变量吗,我尝试后还是没有得到解决,方便细说一下嘛?

wuuttt avatar Dec 22 '21 09:12 wuuttt

在你的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: @.***>

daizhenyu avatar Dec 22 '21 09:12 daizhenyu

在你的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: @.***>

我按照这个试了,好像并没有作用

zzzhhh1031 avatar May 29 '22 03:05 zzzhhh1031