简体   繁体   English

keras Deep Learning Slowness - 来自 Deep Learning with Python Chollet 的示例 IMDB 数据集

[英]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:可能有几个问题导致速度变慢和/或失败:

  • Your inte.net connection is unstable.您的互联网连接不稳定。
  • There is an issue with the serving of the file.文件服务存在问题。 Maybe the repository server serves a corrupt file?也许存储库服务器提供损坏的文件? (You could try to force download from another repository, see How to setup pip to download from mirror repository by default? ) (您可以尝试强制从另一个存储库下载,请参阅How to setup pip to download from mirror repository by default?
  • Your local disc or or a previously partial download are corrput: You can try to delete a partial download in ~/.keras/datasets/mnist.npz您的本地光盘或以前的部分下载是正确的:您可以尝试删除 ~/.keras/datasets/mnist.npz 中的部分下载
  • Check if your harddisk is full.检查您的硬盘是否已满。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM