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

NameError #2

Open
WangYx-Ethan opened this issue Apr 17, 2018 · 2 comments
Open

NameError #2

WangYx-Ethan opened this issue Apr 17, 2018 · 2 comments

Comments

@WangYx-Ethan
Copy link

python main.py train --data-root=./data/train --use-gpu=True --env=classifier

Traceback (most recent call last):
File "main.py", line 170, in
import fire
File "C:\Users---\Anaconda2\envs\py36\lib\site-packages\fire\core.py", line 127, in Fire
component_trace = _Fire(component, args, context, name)
File "C:\Users---\Anaconda2\envs\py36\lib\site-packages\fire\core.py", line 366, in _Fire
component, remaining_args)
File "C:\Users---\Anaconda2\envs\py36\lib\site-packages\fire\core.py", line 542, in _CallCallable
result = fn(*varargs, **kwargs)
File "main.py", line 48, in train
def train(**kwargs):
NameError: name 'opt' is not defined

@suzhengpeng
Copy link

我也遇到了同样的问题。。请问你解决了吗?

@P-DX
Copy link

P-DX commented Nov 5, 2018

main.py中
import ...opt
这句之前加随意一句注释

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

3 participants