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

ValueError (inference) #265

Open
lineker10 opened this issue Jan 7, 2022 · 1 comment
Open

ValueError (inference) #265

lineker10 opened this issue Jan 7, 2022 · 1 comment

Comments

@lineker10
Copy link

Hello.
I cannot solve this error when inference Example on MPISintel Clean
My error message is as follows.

=======================================
Traceback (most recent call last):
File "main.py", line 68, in
tools.add_arguments_for_module(parser, torch.optim, argument_for_class='optimizer', default='Adam', skip_params=['params'])
File "/home/yspark/Down/flownet2-pytorch/utils/tools.py", line 64, in add_arguments_for_module
argspec = inspect.getargspec(class_obj.init)
File "/usr/lib/python3.8/inspect.py", line 1095, in getargspec
raise ValueError("Function has keyword-only parameters or annotations"
ValueError: Function has keyword-only parameters or annotations, use inspect.signature() API which can support them

Please, help me
Good bye and good luck to you

@b06901089
Copy link

change
inspect.getargspec
to
inspect.getfullargspec

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