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

AttributeError: 'module' object has no attribute 'cupy' #3

Closed
ghost opened this issue Jul 12, 2016 · 2 comments
Closed

AttributeError: 'module' object has no attribute 'cupy' #3

ghost opened this issue Jul 12, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 12, 2016

Please help me!
First of all, thanks 4 Ur code which is fantastic!
However, I get a problem when I try to use gpu.
It shows that:
simon@John:~/Object_Detection/chainer-simple-fast-rnn-master$ python forward.py --img_fn sample.jpg --out_fn result.jpg --gpu_id 0

Traceback (most recent call last):
File "forward.py", line 152, in
xp = cuda.cupy
AttributeError: 'module' object has no attribute 'cupy'

but it okay when I using cpu.
Please help me handling this problem, THX.

@apple2373
Copy link
Owner

I guess this is the error comes from chainer's settings. Did you install chainer with GPU enabled?

Try official Mnist example with GPU:
https://github.com/pfnet/chainer/tree/master/examples/mnist
python train_mnist.py --gpu 0

If this did not work, please contact chainer's support. If it worked, let's work together to solve the issue.

@ghost
Copy link
Author

ghost commented Jul 18, 2016

Wow! After I install Chainer again with CUDA, this problem DISAPPER!
Thank you so much!

This issue was closed.
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

1 participant