junyanz / iGAN

Interactive Image Generation via Generative Adversarial Networks
MIT License
3.97k stars 587 forks source link

Run the script error with message says 'cuda...' #12

Closed gcgeng closed 7 years ago

gcgeng commented 7 years ago

Device Information

ThinkPad R400 with ArchLinux my GPU is AMD rather than Nvidia.

Problem

when I exec

THEANO_FLAGS='device=gpu0, floatX=float32, nvcc.fastmath=True' python iGAN_main.py --model_name outdoor_64'

It says:

Traceback (most recent call last):
  File "iGAN_main.py", line 9, in <module>
    import constrained_opt
  File "/home/konjac/code/iGAN/constrained_opt.py", line 3, in <module>
    from lib.rng import np_rng
  File "/home/konjac/code/iGAN/lib/rng.py", line 2, in <module>
    from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
  File "/usr/lib/python3.6/site-packages/theano/__init__.py", line 67, in <module>
    from theano.configdefaults import config
  File "/usr/lib/python3.6/site-packages/theano/configdefaults.py", line 113, in <module>
    in_c_key=False)
  File "/usr/lib/python3.6/site-packages/theano/configparser.py", line 285, in AddConfigVar
    configparam.__get__(root, type(root), delete_key=True)
  File "/usr/lib/python3.6/site-packages/theano/configparser.py", line 333, in __get__
    self.__set__(cls, val_str)
  File "/usr/lib/python3.6/site-packages/theano/configparser.py", line 344, in __set__
    self.val = self.filter(val)
  File "/usr/lib/python3.6/site-packages/theano/configdefaults.py", line 100, in filter
    % (self.default, val, self.fullname)))
ValueError: Invalid value ("cpu") for configuration variable "gpu0". Valid options start with one of "device", "opencl", "cuda"

What should I do to solve this? Is it caused because of my gpu brand? So is it possible to run this app on amd gpu?