NVIDIA / flownet2-pytorch

Pytorch implementation of FlowNet 2.0: Evolution of Optical Flow Estimation with Deep Networks
Other
3.12k stars 739 forks source link

ValueError (inference) #265

Open lineker10 opened 2 years ago

lineker10 commented 2 years ago

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 commented 1 year ago

change inspect.getargspec to inspect.getfullargspec