Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot import name 'deform_conv_ext' #280

Closed
penghusile opened this issue Sep 4, 2020 · 4 comments
Closed

cannot import name 'deform_conv_ext' #280

penghusile opened this issue Sep 4, 2020 · 4 comments

Comments

@penghusile
Copy link

/BasicSR/basicsr/models/ops/dcn/deform_conv.py", line 9, in
from . import deform_conv_ext
I find this is a cpp file ,how to import it?

@elezine
Copy link

elezine commented Sep 4, 2020

I also have the same issue!

@xinntao
Copy link
Member

xinntao commented Sep 5, 2020

@penghusile @elezine
Did you run python setup.py develop before import it?

@elezine
Copy link

elezine commented Sep 5, 2020

@xinntao This solved it! Thanks so much, really appreciate your work.

@xinntao xinntao closed this as completed Sep 7, 2020
@xinntao
Copy link
Member

xinntao commented Sep 7, 2020

@xinntao I try to ran this file but system reported my gcc version is too low. My system gcc version is 4.8.5 and Anaconda gcc version is 7.3.0. I ran it in anaconda. Why does it use the system gcc?

@penghusile when compiling, it uses the system gcc. Try to upgrade your gcc version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants