pplonski / keras2cpp

This is a bunch of code to port Keras neural network model into pure C++.
MIT License
679 stars 153 forks source link

Running Environment Setting for the Code #36

Closed GuokaiLiu closed 6 years ago

GuokaiLiu commented 6 years ago

After a half-day attempt, I think i should share my running environment for the code. Something following may help to avoid potential issues:

#1 Ubuntu 16.04 (If you want to run your model with GPU and python=2.7) #2 Keras = 1.2.2 (as pplonski suggested, there is something wrong with Keras 2.x) #3 theano = 0.9 #4 Make sure your .keras.json as follows which is different from Keras 2.X

{
    "image_dim_ordering": "th", 
    "epsilon": 1e-07, 
    "floatx": "float32", 
    "backend": "theano"
}

Ps: ImportError: cannot import name inplace_increment ↓ Open your Teminal and input theano-cache purge

Sincerely thanks for your great work @pplonski :smiley:

Looking forward to the Keras 2.X methods and examples since it's so popular.