BasicSR icon indicating copy to clipboard operation
BasicSR copied to clipboard

NameError: name 'deform_conv_ext' is not defined.

Open RuijiaoSun opened this issue 4 years ago • 2 comments

Hello Xintao,

I have done this: BASICSR_EXT=True python setup.py develop before I started to train. And also confirmed the .so file exists in basicsr/ops. The error is still there.

Thanks for your time.

RuijiaoSun avatar Oct 06 '21 14:10 RuijiaoSun

  1. If you use BASICSR_EXT=True python setup.py develop, that means, you git clone the repo. In this way, you should not run pip install basicsr. Otherwise, these two ways will conflict with each other.
  2. Recommend to run in PyTorch >=1.8.0, torchvision>=0.9.0. In this env, we use the official torchvision.ops.deform_conv2d instead. In such a way, there is no need to compile

xinntao avatar Oct 07 '21 02:10 xinntao