FastFlowNet icon indicating copy to clipboard operation
FastFlowNet copied to clipboard

run demo.py error

Open jkl469 opened this issue 3 years ago • 1 comments

run on colab.research.google.com; and output: sh: 1: ping: not found sh: 1: ping: not found sh: 1: ping: not found sh: 1: ping: not found Traceback (most recent call last): File "/content/drive/MyDrive/FastFlowNet-main/demo.py", line 45, in output = model(input_t).data File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) File "/content/drive/MyDrive/FastFlowNet-main/models/FastFlowNet.py", line 134, in forward cv6 = torch.index_select(self.corr(f16, f26), dim=1, index=self.index.to(f16).long()) File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1102, in _call_impl return forward_call(*input, **kwargs) File "/content/drive/MyDrive/FastFlowNet-main/models/correlation_package/correlation.py", line 59, in forward result = CorrelationFunction(self.pad_size, self.kernel_size, self.max_displacement,self.stride1, self.stride2, self.corr_multiply)(input1, input2) File "/usr/local/lib/python3.7/dist-packages/torch/autograd/function.py", line 262, in call "Legacy autograd function with non-static forward method is deprecated. " RuntimeError: Legacy autograd function with non-static forward method is deprecated. Please use new-style autograd function with static forward method. (Example: https://pytorch.org/docs/stable/autograd.html#torch.autograd.Function)

jkl469 avatar Apr 14 '22 09:04 jkl469

Which version of PyTorch do you use? Have you successfully installed the Pytorch-Correlation-extension module?

ltkong218 avatar Jun 22 '22 13:06 ltkong218