PWC-Net icon indicating copy to clipboard operation
PWC-Net copied to clipboard

ImportError: No module named _corr

Open ZeeshanNadir opened this issue 5 years ago • 4 comments

After successfully building the external correlation package for pytorch, when I run the PWC-Net I get the following error: File "./correlation_package/_ext/corr/__init__.py", line 3, in from ._corr import lib as _lib, ffi as _ffi ImportError: No module named _corr

Looking inside the folders, I don't see any module "_corr". Can you please help me resolve this.

Python version 2.7 PyTorch 0.2

ZeeshanNadir avatar Mar 20 '19 18:03 ZeeshanNadir

I also meet this problem, have you solve that?

wyhcqq avatar Apr 24 '19 16:04 wyhcqq

if you solved this, tell me, please

wyhcqq avatar May 04 '19 05:05 wyhcqq

I meet the same problem, and have no idea how to solve it

HeliosZhao avatar Sep 10 '19 11:09 HeliosZhao

Hi all, I also run into the same problem and at the end I went for this version of pwc (PWC-net_ROB) which uses cupy and weighted ported from caffe https://github.com/sniklaus/pytorch-pwc

For the correlation layer another hint might be using the implementation of https://github.com/ClementPinard/FlowNetPytorch , I believe it is well made and in the repository there are also some links to the original nvidia impelementation. You have to skim a bit through the rep to find everything, but I have used it and it is good.

I hope this helps, Stefano

jeffbaena avatar Sep 10 '19 12:09 jeffbaena