-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
How do I fix this? #67
Comments
I wonder if you have installed the Pytorch with CUDA support. What's the GPU in your iMac? |
Try running on CPU by adding the following option: |
"--gpu_ids -1" doesn't work on mac sadly... I tried --gpu -1 but I still get the same error. |
any news on this? |
Changing the line to: |
请问在windows中怎样解决AttributeError: module 'torch._C' has no attribute '_cuda_setDevice' |
Not sure. It seems to be related to PyTorch. You could post/find the issue on the PyTorch repo. |
Thank you so much for your suggestion let me go through on pytorch repo. |
I am running this on a Mid 2011 IMac OSX 10.10, and so far everything has run smoothly. I am at this step in the instructions:
python train.py --dataroot ./datasets/maps --name maps_cyclegan --model cycle_gan --no_dropout
And I get this as a result:
Traceback (most recent call last):
File "train.py", line 7, in
opt = TrainOptions().parse()
File "/Users/samuellevin/vision/pytorch-CycleGAN-and-pix2pix/options/base_options.py", line 60, in parse
torch.cuda.set_device(self.opt.gpu_ids[0])
File "/Users/samuellevin/anaconda3/lib/python3.6/site-packages/torch/cuda/init.py", line 161, in set_device
torch._C._cuda_setDevice(device)
AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'
How do I fix this?
The text was updated successfully, but these errors were encountered: