baowenbo / DAIN

Depth-Aware Video Frame Interpolation (CVPR 2019)
https://sites.google.com/view/wenbobao/dain
MIT License
8.23k stars 840 forks source link

"Legacy autograd function with non-static forward method is deprecated. " #69

Open miltosc opened 4 years ago

miltosc commented 4 years ago

Hello!

when i run "CUDA_VISIBLE_DEVICES=0 python3 demo_MiddleBury.py" i get the following error

"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)

Please help. Thanks in advance.

baowenbo commented 4 years ago

It might be the mismatch of pytorch version, check if you are using pytorch 1.0.

DavieHR commented 3 years ago

@miltosc Degrading your pytorch version is not a good idea. I have the save issue. According to the nvidia flownet git issue , you should update correlation.py, or manually add staticmethod in this file.

Avery-xu commented 3 years ago

@miltosc I have also encountered the same problem. Thank @DavieHR for the solution in flownet2-pytorch!