devsisters / DQN-tensorflow

Tensorflow implementation of Human-Level Control through Deep Reinforcement Learning
MIT License
2.48k stars 763 forks source link

I got error about use_gpu flag..... Could you help me out, please? #27

Open wonchul-kim opened 7 years ago

wonchul-kim commented 7 years ago

Traceback (most recent call last): File "main.py", line 69, in tf.app.run() File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 44, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "main.py", line 56, in main raise Exception("use_gpu flag is true when no GPUs are available") Exception: use_gpu flag is true when no GPUs are available

The above is the error message.

Could you help me out??

serialx commented 7 years ago

Please execute main.py with --use_gpu=False

cypreess commented 7 years ago

If you have gpu and its configured properly (e.g. Nvidia gpu require propriate drivers and cudnn library installed) than you probably should install pip install tensorflow_gpu package rather than tensorflow. Error like that might happen that you have tensorflow installed without gpu support (will always return False when checking if GPU is installed.