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

AssertionError: Invalid type <class 'NoneType'> for key LR_NOISE; valid types = {<class 'str'>, <class 'bool'>, <class 'list'>, <class 'float'>, <class 'int'>, <class 'tuple'>} #11

Closed
pawopawo opened this issue Jan 4, 2021 · 2 comments

Comments

@pawopawo
Copy link

pawopawo commented Jan 4, 2021

Traceback (most recent call last):
File "./tools/main.py", line 13, in
from lib.config import cfg
File "/opt/tiger/xiaxin/work/Cream/tools/../lib/config.py", line 74, in
__C.LR_NOISE = None
File "/home/tiger/.local/lib/python3.7/site-packages/yacs/config.py", line 158, in setattr
type(value), name, _VALID_TYPES
File "/home/tiger/.local/lib/python3.7/site-packages/yacs/config.py", line 525, in _assert_with_logging
assert cond, msg
AssertionError: Invalid type <class 'NoneType'> for key LR_NOISE; valid types = {<class 'str'>, <class 'bool'>, <class 'list'>, <class 'float'>, <class 'int'>, <class 'tuple'>}

@Z7zuqer
Copy link
Collaborator

Z7zuqer commented Jan 4, 2021

Hi,

Thanks for your interest in our project!

We've settle the issue. This error comes from a useless parameter, and we've removed it.

Best,
Hao.

@Z7zuqer
Copy link
Collaborator

Z7zuqer commented Jan 4, 2021

Hi,

Could you share the environment variables with me?

I have checked that without delete, this codes run correctly.

Best,
Hao.

@Z7zuqer Z7zuqer closed this as completed Jan 6, 2021
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