BasicSR
BasicSR copied to clipboard
NameError: name 'deform_conv_ext' is not defined.
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.
- If you use
BASICSR_EXT=True python setup.py develop, that means, you git clone the repo. In this way, you should not runpip install basicsr. Otherwise, these two ways will conflict with each other. - 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