Comments (8)
@fabrizioschiano @Bavesh-B Be note don't messy with python
or python3
which might be your virtual env or your system python.
So please check if it is the right interporator you want build with.
from dcnv2_latest.
@fabrizioschiano If you install to your system path, using sudo, if you using anaconda, then you needn't to do that.
from dcnv2_latest.
I have the same problem. It is quite strange since if I run instead the repository https://github.com/lbin/DCNv2.git I don't have any problems doing the ./make.sh
I am using a virtualenvironment and if the environment is active and I do:
python -c "import torch; print(torch.__version__)"
I get (indeed)
1.9.1+cu102
@Bavesh-B , did you figure out how to solve this problem?
from dcnv2_latest.
I probably found a solution to the problem by looking into the make.sh
file.
The make.sh
of this repository looks like this:
#!/usr/bin/env bash
sudo rm *.so
sudo rm -r build/
sudo python3 setup.py build develop
while the make.sh
of the other repo looks like this
#!/usr/bin/env bash
python setup.py build develop
What I just did is to remove the sudo
from the make.sh
file.
I think that this must be related to the fact that in the DCNv2_latest repo they assume you don't use a virtualenvironment maybe.
I hope this helps someone in the same situation. Let me know also if I did something wrong.
(also, I don't like doing sudo python3 ...
to be honest)
from dcnv2_latest.
Hey @fabrizioschiano ,
For me the problem was sudo because when I installed pytorch, I did not use sudo on the command. So in that case, there are 2 solutions. Either remove the sudo in the shell file and run or install pytorch again with sudo. Also, I have a question. Is the dcn_v2.git repository compatible for pytorch 1.9.1?
from dcnv2_latest.
Yes, exactly, the problem was the sudo
for me too. I don't know if it is compatible, that's a good question actually!
What I assumed is that it is since before ending on this repository I was using the following:
https://github.com/lbin/DCNv2.git
This repository has a branch dedicated to pytorch_1.9
@Bavesh-B , are you also using a virtualenvironment or conda or similar?
from dcnv2_latest.
No I am not using any environment. I am just using a virtual instance.
from dcnv2_latest.
@jinfagang , thanks for your comment. is there a particular reason why you needed a sudo
in the make.sh
file?
from dcnv2_latest.
Related Issues (20)
- Error when compiling: 'TORCH_CHECK_ARG' was not declared in this scope HOT 6
- Runtime Error: Error compiling objects for extension HOT 1
- Failed : python 3.8, torch1.8.0+cu111, ubuntu18.06 HOT 2
- How can I add 'groups' into deformable conv?
- what's ATen? HOT 4
- /DCNv2_latest/src/cpu/dcn_v2_cpu.cpp:7:10: fatal error: TH/TH.h: No such file or directory
- using pytorch1.11, I still can not compile DCNv2 because of #include <ATen/ceil_div.h> HOT 11
- testcuda.py returns error but testcpu.py works
- python 3.7、cuda10.2 pytorch1.7可以吗?为什么我这里报了很多错误 HOT 1
- Export to ONNX HOT 3
- DONT ADD MY WECHAT
- No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
- 使用GPU训练时出现error in modulated_deformable_im2col_cuda: out of memory HOT 2
- DCNv2在TensorRT上的布署plugin能用这个吗?
- 编译DCNv2出现这个错误vision.obj : error LNK2001: 无法解析的外部符号 __imp___tls_index_?init@?1??lazy_init_num_threads@internal@at@@YAXXZ@4_NA
- hi,i have a question
- pytorch1.8可以使用吗,不可以的话需要用哪个版本 HOT 1
- RuntimeError: Not compiled with GPU support HOT 3
- pytorch 1.12.1+python 3.7+cuda 11.8 is ok HOT 1
- Error when run testcuda.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dcnv2_latest.