-
Notifications
You must be signed in to change notification settings - Fork 36
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
Cant works on theano 1,theano.sandbox.cuda.dnn is discarded in new version #3
Comments
Nice work for 3D reconstructon! I have some simliar issues here. @mjiUST Could you give us some tips to make the code running on a newer system?
Or: Do you have suggestions for running/training without cuDNN? I observed there are some if-branch, like in similarityNet.py:
But in layers.py and SurfaceNet.py, some cudnn functions are hardcoded
Following the same logic in the if-branch, maybe for I might be able to hack it to:
But for other functions like @cdb0y511 How are things going with you? |
Dear @cdb0y511 @Rubikplayer , Thanks for the issue report. I specified the older Theano version Line 34 in 149f6e0
Since the 3D dilated conv layer was implemented using some APIs in CUDNN, I'm not sure whether we could easily discard CUDNN. If you are worried about that the installation may affect your existing packages' version. Please feel free to use the SurfaceNet/installEnv.sh, that will not change anything of your existing python, theano, and ~/.bashrc. What you need to do is to specify the CUDA/CUDNN pathes accordingly. Please refer to the updated README. Hope this may help. |
@mjiUST Even I use theano 0.9. The only way is switching to a new backend theano.gpuarray. Or give up cuda 9.0 and cudnnv7.1.1. Go back to nvidia driver 375, cuda 8.0, cudnn v5.1. Its hard to choose. And it certainly limits your work. @Rubikplayer I cant find gpu_contiguous too,even in theano 0.9's doucuments. So I guess only the original author can fix it. |
@cdb0y511 I don't know whether you have tried this method: say you have both Similarly, one can also specify a cudnn without influence with other projects by changing the 1st line of I highly recommend you install CUDNN outside of CUDA folder, so that you can have any combination of CUDA+CUDNN by defining specific environment variables in different conda_envs. Please feel free to post any queries. |
@mjiUST @cdb0y511
and setting theano config in
@cdb0y511 You can also have a try. I have multiple CUDA installed. Also I installed two versions of CuDNN (although I might have overwritten 7.1 with 5.1). For the error I encountered, I will open another issue. Thanks for the feedback! |
@Rubikplayer
|
@mjiUST Thanks for the response.
|
Could you update your source file layer.py?
Because theano.sandbox.cuda.dnn is discarded in theano 1(>theano 0.9).
from theano.sandbox.cuda.dnn import gpu_contiguous, GpuDnnConvDesc, gpu_alloc_empty, GpuDnnConv3dGradW wont work, and if lasagne.utils.theano.sandbox.cuda.dnn_available() in similarityNet.py.
Could you use theano.gpuarray.dnn instead?
I cant replace gpu_contiguous, GpuDnnConvDesc, gpu_alloc_empty, GpuDnnConv3dGradW with classes of theano.gpuarray.dnn by myself.
And I cant backwards to theano 0.9 either, due to the new vision of cudnn does not support old theano and pygpu.
plz help me,thanks
The text was updated successfully, but these errors were encountered: