Open RuijiaoSun opened 2 years ago
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.I'm having the same problem as you, I'm compiling in a docker container and it shows that it compiles successfully and generates the .so file, but still reports "NameError: name 'deform_conv_ext' is not defined". The final reason was that I didn't have "ninja" installed, which caused me to fall back to using "distutils" when compiling. After installing ninja and compiling again, I was able to run the file without getting the error again. I hope this provides a solution.
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.