title: "ValueError: bad marshal data" with Keras on Windows 10
body: <p>I am currently having issue with Keras on Windows 10. I was trying to search for my problem a lot and tried different ways but unfortunately I cannot fix it yet. I would very appreciate your help!</p>
  
  <p>I was trying to install Keras 2.1.1, Tensorflow-gpu 1.4.0 and Python 3.6 on a conda env on Windows 10 (later I tried to create another conda env with Python 3.5.2 but it still didn't work). I got the <code>UnicodeDecodeError: 'rawunicodeescape' codec can't decode bytes in position 111-112: truncated \uXXXX</code> while I was trying to save my model. I then follow <a href="https://stackoverflow.com/questions/41847376/keras-model-to-json-error-rawunicodeescape-codec-cant-decode-bytes-in-posi">this</a> by adding <code>replace(b'\\',b'/')</code> in <code>generic_utils.py</code> and it works well.</p>
  
  <p>However, after that I open another file to load my model, and this error appears: <code>ValueError: bad marshal data (unknown type code)</code> (if it is in env with python 3.6) and <code>SystemError: unknown opcode</code> (if it is in env with python 3.5.2).</p>
  
  <p>I tried to create new envs and reinstall with Keras 2.0.8 with python 3.6/3.5 and tried to change tensorflow-gpu 1.3.0, but it didn't work.</p>
  
  <p>Some links I have tried to follow:</p>
  
  <ol>
  <li><a href="https://github.com/fchollet/keras/issues/7297" rel="nofollow noreferrer">https://github.com/fchollet/keras/issues/7297</a></li>
  <li><a href="https://stackoverflow.com/questions/47328528/encoding-error-when-installing-keras-on-windows-10">Encoding error when installing Keras on Windows 10</a></li>
  </ol>
  
  <p>Does any one know how to fix it or any suggestions? Thank you in advance.</p>
  
  <p>P/S: other information (not sure if it helps): I am using <code>GTX 1080Ti</code> and <code>sublime text 3</code>. </p>