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

_ZN2at19UndefinedTensorImpl10_singletonE #17

Closed 205418367 closed 5 years ago

205418367 commented 5 years ago

hi, I use ubuntu18.04; python 3.6; pytorch 1.1.0. when i run python3 test_Vid4_REDS4_with_GT.py, i meet a follow error:

ImportError: /home/lichen/EDVR/codes/models/modules/DCNv2/_ext.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at19UndefinedTensorImpl10_singletonE

what can i do?

hufengshuo07 commented 5 years ago

@205418367 Have you solved the problem and how ,Thanks??

xiaozhi2015 commented 5 years ago

Delete _ext.cpython-36m-x86_64-linux-gnu.so and build dir, then redo sh make.sh

DwenGu commented 5 years ago

Delete _ext.cpython-36m-x86_64-linux-gnu.so and build dir, then redo sh make.sh

Hi! I want to know what's you mean of build dir. Can U tell me about this command? First, I rm -rf this _ext.cpython.xxx file, Then I redo sh make.sh. But this issue has not been solved.

xiaozhi2015 commented 5 years ago

Delete “_ext.cpython-36m-x86_64-linux-gnu.so and build“, install pytorch by source code, or update your gcc to version 4.9. Since pytorch 1.1 was built with gcc 4.9 when install by pip.