No module '_ext'
I have the issue when trying to run testcpu.py or testcuda.py
this is the error message
\FairMOT\DCNv2> python testcpu.py
Traceback (most recent call last):
File "testcpu.py", line 11, in
My OS is windows
The following worked for me:
Copied the _ext.cpython-38-x86_64-linux-gnu.so file and named it to _ext.so
To import DCNv2 module from dcn_v2.py in a file outside the directory, I needed to change the import line in dcn_v2.py to: import directory_name._ext as _backend
The following worked for me:
Copied the _ext.cpython-38-x86_64-linux-gnu.so file and named it to _ext.so
To import DCNv2 module from dcn_v2.py in a file outside the directory, I needed to change the import line in dcn_v2.py to: import directory_name._ext as _backend
Where did you find _ext.cpython-38-x86_64-linux-gnu.so file?
Maybe you can try this way: https://github.com/xingyizhou/CenterNet/issues/454#issuecomment-873534568
under DCNv2's root path, there will be a file called _ext.cpython-38-x86_64-linux-gnu.so simply rename it to _ext.so will work.
Notice that you may need to change the line 13 from import ._ext as _backend to import DCNv2._ext as _backend.