Pytorch-cyclegan-and-pix2pix: AssertionError: Torch not compiled with CUDA enabled

Created on 19 Apr 2017  路  4Comments  路  Source: junyanz/pytorch-CycleGAN-and-pix2pix

When I trained a model, I got the below error. I'm using a Mac book pro. Thanks.

  File "/usr/local/lib/python2.7/site-packages/torch/cuda/__init__.py", line 277, in __new__
    _lazy_init()
  File "/usr/local/lib/python2.7/site-packages/torch/cuda/__init__.py", line 89, in _lazy_init
    _check_driver()
  File "/usr/local/lib/python2.7/site-packages/torch/cuda/__init__.py", line 56, in _check_driver
    raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

Most helpful comment

I added --gpu_ids -1 and this issue was resolved. Thanks.

where you added that

All 4 comments

I added --gpu_ids -1 and this issue was resolved. Thanks.

I added --gpu_ids -1 and this issue was resolved. Thanks.

where you added that

have the same issue, where you added that ?

You need to add it in the command line.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JamesChenChina picture JamesChenChina  路  3Comments

AllAwake picture AllAwake  路  5Comments

roypratyush picture roypratyush  路  3Comments

khryang picture khryang  路  3Comments

filmo picture filmo  路  3Comments