xinntao / EDVR

Winning Solution in NTIRE19 Challenges on Video Restoration and Enhancement (CVPR19 Workshops) - Video Restoration with Enhanced Deformable Convolutional Networks. EDVR has been merged into BasicSR and this repo is a mirror of BasicSR.
https://github.com/xinntao/BasicSR
1.49k stars 318 forks source link

what is 'import _ext as _backend'? #69

Open Confusedisprecious opened 5 years ago

Confusedisprecious commented 5 years ago

what is 'import _ext as _backend'?

xinntao commented 5 years ago

It is the compiled DCN file. After the compilation, you will obtain the _ext file like _ext.cpython-37m-x86_64-linux-gnu.so

Confusedisprecious commented 5 years ago

What should I do under Win10?

iBegFor commented 5 years ago

I encountered a same question. How can i compiled the DCN file on Windows?

iBegFor commented 5 years ago

This url may help you bro: https://github.com/xingyizhou/CenterNet/issues/7

Vidar-Sirius commented 4 years ago

Try following steps:

  1. go to src/cuda/dcn_v2_cuda.cu 2.replace the 11st line to extern THCState state; THCStatestate=at::globalContext().lazyInitCUDA() 3.go back to setup.py 4.run the command: python setup.py build develop