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

from cvpods import _C #2

Open
yjt9299 opened this issue Jan 8, 2021 · 7 comments
Open

from cvpods import _C #2

yjt9299 opened this issue Jan 8, 2021 · 7 comments

Comments

@yjt9299
Copy link

yjt9299 commented Jan 8, 2021

ImportError: cannot import name '_C' from 'cvpods' (/home/yuejiutao/Code/RealSR_exp/CDC/modules/LearnableTreeFilterV2/cvpods/init.py)

@yjt9299
Copy link
Author

yjt9299 commented Jan 8, 2021

I got this error... so can you help me why it?
Thank you....

@StevenGrove
Copy link
Owner

Did you build the project? Please refer to the build-from-source section. By the way, if you have permission issues, please try to use python setup.py build develop --user.

@yjt9299
Copy link
Author

yjt9299 commented Jan 8, 2021

Did you build the project? Please refer to the build-from-source section. By the way, if you have permission issues, please try to use python setup.py build develop --user.

Yes , i have built the project ...
Is it because I tried TreeV1
when i build the project ,i meet this problem

``
warnings.warn(incompatible_device_warn.format(device_name, capability, " ".join(arch_list), device_name))
/usr/local/cuda/bin/nvcc -DWITH_CUDA -I/home/yuejiutao/Code/LearnableTreeFilterV2/cvpods/layers/csrc -I/home/yuejiutao/anaconda3/envs/treeV2/lib/python3.7/site-packages/torch/include -I/home/yuejiutao/anaconda3/envs/treeV2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yuejiutao/anaconda3/envs/treeV2/lib/python3.7/site-packages/torch/include/TH -I/home/yuejiutao/anaconda3/envs/treeV2/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/yuejiutao/anaconda3/envs/treeV2/include/python3.7m -c /home/yuejiutao/Code/LearnableTreeFilterV2/cvpods/layers/csrc/lars/adaptive_lr_cuda.cu -o build/temp.linux-x86_64-3.7/home/yuejiutao/Code/LearnableTreeFilterV2/cvpods/layers/csrc/lars/adaptive_lr_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -O3 -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
nvcc fatal : Unsupported gpu architecture 'compute_75'
error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1

Is this a normal question?

@StevenGrove
Copy link
Owner

You could get some help from this issue: facebookresearch/detectron2#149 (comment).

@yjt9299
Copy link
Author

yjt9299 commented Jan 8, 2021

You could get some help from this issue: facebookresearch/detectron2#149 (comment).

Thanks it works...

@zhaoyue3513247
Copy link

This project did not use any deformable conv .So it only use pytorch can be use. Those package is rubbish

@StevenGrove
Copy link
Owner

Hmmm, this repo indeed has nothing to do with the deformable convolutions, but you need to build kernels for the tree filter.

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