Problem mit Keras und dem Tensorflow-Backend

Probleme bei der Installation?
Antworten
Hougou1234
User
Beiträge: 15
Registriert: Dienstag 23. Januar 2018, 22:00

Hallo,
ich fing vor kurzem mit dem Einstieg in Deep Learning ein. Als ich dann Tensorflow als Keras-Backend benutzen wollte kam immer eine Fehlermeldung raus:

Code: Alles auswählen

[code][code]using TensorFlow backend.
C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\framework\dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\framework\dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\framework\dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\framework\dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\framework\dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\framework\dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.


  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
Traceback (most recent call last):
  File "C:/Users/JJLaptop/PycharmProjects/ChinesischVokabeltrainer/3456.py", line 5, in <module>
    train_img = mnist.train_images()
  File "C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\site-packages\mnist\__init__.py", line 161, in train_images
    return download_and_parse_mnist_file('train-images-idx3-ubyte.gz')
  File "C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\site-packages\mnist\__init__.py", line 146, in download_and_parse_mnist_file
    return parse_idx(fd)
  File "C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\site-packages\mnist\__init__.py", line 111, in parse_idx
    data = array.array(data_type, fd.read())
  File "C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\gzip.py", line 276, in read
    return self._buffer.read(size)
  File "C:\Users\JJLaptop\AppData\Local\Programs\Python\Python36\lib\gzip.py", line 482, in read
    raise EOFError("Compressed file ended before the "
EOFError: Compressed file ended before the end-of-stream marker was reached
 
[/code][/code]
Ich hoffe ihr könnt mir da irgendwie helfen
__deets__
User
Beiträge: 14543
Registriert: Mittwoch 14. Oktober 2015, 14:29

Klingt nach einem korrupten Trainingsfile. Kannst du das selbst auf der Kommandozeile mit gzip dekodieren? Wenn nicht, dann ist es kaputt. Wenn ja, dann ist was sehr, sehr komisch.
Benutzeravatar
ThomasL
User
Beiträge: 1366
Registriert: Montag 14. Mai 2018, 14:44
Wohnort: Kreis Unna NRW

Du müsstest da noch mit ein paar mehr Informationen über dein Setup rausrücken.
Ich sehe da Python 3.6 und ein Pycharm Projects Ordner.
Und zeige mal den Code zum Error.
Ich bin Pazifist und greife niemanden an, auch nicht mit Worten.
Für alle meine Code Beispiele gilt: "There is always a better way."
https://projecteuler.net/profile/Brotherluii.png
Hougou1234
User
Beiträge: 15
Registriert: Dienstag 23. Januar 2018, 22:00

Hab alle Pakete mit Pip geupdated und irgendwie funktioniert es jetzt. Trotzdem danke für die Hilfe.
Antworten