-
Notifications
You must be signed in to change notification settings - Fork 151
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
got error, could you give me some help? #8
Comments
There is something wrong with your CuDNN. Does it work when you run other repos? |
@Canjie-Luo my environment is : pytorch0.4.1 + python3.6 + cuda10.0+cudnn7.3.1, is that ok for this code? |
No, please ref to https://github.com/Canjie-Luo/MORAN_v2#requirements. Please use PyTorch0.3. |
maybe PyTorch0.3 is a little old, what's the question of the env "pytorch0.4.1 + python3.6 + cuda10.0+cudnn7.3.1" ? |
Sorry for that. I completed the experiments and submitted the paper one year ago. So the repo was developed under PyTorch0.2, and I upgraded it to 0.3.1 now. There seems some bugs in |
I use another machine to run the demo.py. the env: pytorch0.4.1 + cuda9.0 + cudnn7.1. got the following error: /home/hs/anaconda3/lib/python3.6/site-packages/torch/nn/functional.py:1961: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details. |
@Canjie-Luo thanks for your explaining. how to fix this problem? |
I added an option for CUDA and updated the repo just now. Please try the new one with |
@Canjie-Luo ok,thanks very much, I will update the code and try it |
@Canjie-Luo I have try the new code, the code could run in cpu mode |
So the problem is from your CUDA environment~ |
Traceback (most recent call last):
File "demo.py", line 17, in
MORAN = MORAN.cuda()
File "/root/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 258, in cuda
return self._apply(lambda t: t.cuda(device))
File "/root/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 185, in _apply
module._apply(fn)
File "/root/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 185, in _apply
module._apply(fn)
File "/root/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 185, in _apply
module._apply(fn)
File "/root/anaconda3/lib/python3.6/site-packages/torch/nn/modules/rnn.py", line 112, in _apply
self.flatten_parameters()
File "/root/anaconda3/lib/python3.6/site-packages/torch/nn/modules/rnn.py", line 105, in flatten_parameters
self.batch_first, bool(self.bidirectional))
RuntimeError: CuDNN error: CUDNN_STATUS_SUCCESS
The text was updated successfully, but these errors were encountered: