[英]keras Deep Learning Slowness - Example IMDB dataset from Deep Learning with Python Chollet
I am having an issue with keras leading to my processor seemingly getting bogged down while working through examples.我遇到 keras 问题,导致我的处理器在处理示例时似乎陷入困境。
In the IMDB data set for instance (exercise 3.4.1 in Deep Learning with Python by Chollet if anyone knows the book), running the script:例如在 IMDB 数据集中(深度学习中的练习 3.4.1,Chollet 的 Python,如果有人知道这本书的话),运行脚本:
import keras
from keras.datasets import imdb
(train_data, train_labels), (test_data, test_labels) =
imdb.load_data(num_words=10000)
Produces an output looking something like:产生一个 output 看起来像:
[=====>...] - ETA: 59s✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓16105472/17464789
That updates increasingly slowly as the numbers get larger and move toward completion.随着数字变大并接近完成,更新速度越来越慢。
I'm assuming my installation of keras/Tensorflow/CUDA/cuDNN is to blame, but curious if you know of anything obvious that would solve the issue.我假设我安装的 keras/Tensorflow/CUDA/cuDNN 是罪魁祸首,但很好奇您是否知道任何可以解决问题的明显方法。
Running Ubuntu Linux, NVIDIA GTX 1080, Keras/Tensorflow (GPU)/CUDA,cuDNN (maybe, assuming I installed everything correctly which is probably not accurate).运行 Ubuntu Linux、NVIDIA GTX 1080、Keras/Tensorflow (GPU)/CUDA、cuDNN(也许,假设我正确安装了所有东西,这可能不准确)。
Thanks!谢谢!
This progress bar is shown during the first initial download and should not be present on subsequent imports of the data.此进度条在第一次初始下载期间显示,不应出现在随后的数据导入中。 There might be several issues that cause this to slow down and/or fail:可能有几个问题导致速度变慢和/或失败:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.