Comments (17)
@charliememory did you use chainer 3.3.0 or the latest version? With chainer==3.3.0 I keep getting an error:
RuntimeError: CUDA environment is not correctly set up (see https://github.com/chainer/chainer#installation).cannot import name sqrt_fixed
I checked chainer.backends.cuda.available
and it returned False. With the new version of chainer, I get the nvrtc error above even though I have set the CUDA_PATH and LD_LIBRARY_PATH as instructed in the cupy documentation.
from cmr.
The method suggested in https://groups.google.com/forum/#!topic/chainer-jp/GKNe5KY_fm0 worked. Had multiple versions of CUDA installed, need to figure out the right version.
from cmr.
Hi @akshaykjagadish I am facing the same problem. Can you suggest the exact steps you followed to solve the problem?
Thank you
from cmr.
Hi, it has been some time since I solved this issue but I figure you just need to find out the right CUDA version (I had multiple versions on my AWS instance) and set path accordingly.
from cmr.
Hi @akshaykjagadish , I am also facing the same problem. Do you still remember which CUDA version are you using? I currently only have CUDA 9.0 installed on my Linux, but still have the CompileException.
And hi @viralbthakar , did you solve the problem later?
Thank you all.
from cmr.
I use the new version of neural_render git clone [email protected]:charliememory/neural_renderer.git
and install the pre-built cupy with corresponding cuda version number, e.g. pip install cupy-cuda92
. Then, I can avoid this issue.
from cmr.
@charliememory I used neural renderer from the repo that you mentioned and have cuda 9 and hence used the same command but while installing neural renderer I get the below error:
Traceback (most recent call last):
File "setup.py", line 3, in
import neural_renderer
File "/home/nsajjan/WORK/Capstone/cmr/external/neural_renderer/neural_renderer/init.py", line 1, in
from cross import cross
File "/home/nsajjan/WORK/Capstone/cmr/external/neural_renderer/neural_renderer/cross.py", line 2, in
import cupy as cp
File "/home/nsajjan/WORK/Capstone/cmr/venv_cmr/lib/python2.7/site-packages/cupy/init.py", line 7, in
from cupy import _version
ImportError: cannot import name _version
Any idea why I am getting this?
from cmr.
@nikhilaravi I did not have such issue. Maybe you can check whether the CUDA is accessible for other packages first to make sure the problem comes from chainer.
from cmr.
@BornInWater In my case, I modified the setup.py
file. I used cupy-cuda92
, maybe you can try cupy-cuda9
instead.
from cmr.
@charliememory Tried that. Not working. Same error.
from cmr.
@charliememory did you use chainer 3.3.0 or the latest version? With chainer==3.3.0 I keep getting an error:
RuntimeError: CUDA environment is not correctly set up (see https://github.com/chainer/chainer#installation).cannot import name sqrt_fixed
I checkedchainer.backends.cuda.available
and it returned False. With the new version of chainer, I get the nvrtc error above even though I have set the CUDA_PATH and LD_LIBRARY_PATH as instructed in the cupy documentation.
Have you slove this problem?
from cmr.
@ZilinZhou1995 , No, I could not solve it.
from cmr.
@nikhilaravi , @ZilinZhou1995 Its working for me now.
I have CUDA 9. I first installed chainer 5.2.0 version and cupy 5.2.0[pip install cupy-cuda90] version separately. Then installed neural mesh renderer and Perceptual similarity in the external directory. But in the original script, branch v1.1.0 of neural mesh renderer gets installed. This was not working for me, so I installed the most recent one. That works.
After that, in the requirements.txt file, I removed chainer and cupy and just did pip install -r requirements.txt for the rest.
Also, I had to switch to Torch 1.0 version as I think torch 0.3 does not support CUDA 9.0.
Hope this helps!
from cmr.
@charliememory You are installing the newest version of NMR right? Were you able to train the model properly with the newest version of NMR? For me one of the losses was much higher than the cmr with the prescribed nmr. You can see the conversation here
from cmr.
@charliememory You are installing the newest version of NMR right? Were you able to train the model properly with the newest version of NMR? For me one of the losses was much higher than the cmr with the prescribed nmr. You can see the conversation here
Have you run the project successfully?
from cmr.
@nikhilaravi , @ZilinZhou1995 Its working for me now.
I have CUDA 9. I first installed chainer 5.2.0 version and cupy 5.2.0[pip install cupy-cuda90] version separately. Then installed neural mesh renderer and Perceptual similarity in the external directory. But in the original script, branch v1.1.0 of neural mesh renderer gets installed. This was not working for me, so I installed the most recent one. That works.
After that, in the requirements.txt file, I removed chainer and cupy and just did pip install -r requirements.txt for the rest.
Also, I had to switch to Torch 1.0 version as I think torch 0.3 does not support CUDA 9.0.
Hope this helps!
Have you run the project successfully? I have CUDA9.2 and use Torch1.0 but it has errors that says
a value of type "const float *" cannot be used to initialize an entity of type "float *"
from cmr.
python2.7, CUDA8.0, chainer 3.3.0, cupy 2.3.0, pytorch 0.3.1 works for me. Before running the demo command, I run: export PATH="$PATH:/usr/local/cuda-8.0/bin"
, export LD_LIBRARY_PATH="/usr/local/cuda-8.0/lib64"
and reinstall the chainer and cupy.
from cmr.
Related Issues (20)
- Not found https://people.eecs.berkeley.edu/~shubhtuls/cachedir/vpsKps/segkps.zip HOT 1
- triangle_loss_fn returns 'nan' HOT 2
- Do anyone can explain the orth projection? HOT 2
- Simple Question about Data Preprocessing HOT 1
- textured human reconstruction HOT 5
- where is the results saved? HOT 1
- cupy.cuda.cudnn.CuDNNError: CUDNN_STATUS_EXECUTION_FAILED HOT 1
- 360° view HOT 3
- Getting Assertion error when trying to run demo code of CMR HOT 2
- get errors when try to run demo
- 404 error while downloading cachedir.tar.gz HOT 4
- demo.py plot_trisurf
- Annotation mat file of PASCAL HOT 1
- Update to PyTorch1.x and Python3, remove chainer/cupy dependancy. HOT 4
- can you share the code that is used for reconstruction (the results)?
- Dataset!
- Where is the code to calcualte 3D IOU on Pascal 3D+ dataset (aero, car)?
- Did you do the training on Pascal3D+ car and aeroplane together or separately?
- ERROR: Could not find a version that satisfies the requirement h5py
- Where to download the key point annotation for PCK evaluation. HOT 1
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 cmr.