Comments (3)
Hi @MaajidKhan for a TensorFlow conversion I think you'll need to change L30 in dump_to_cpp.py
: to: for ind, l in enumerate(arch["config"]["layers"]):
as the json file contains an extra key for "config".
You might then also need to make some edits to how the weights are read in too.
Hope this helps!
from keras2cpp.
Hi @JosephPB , your fix worked for me for working around with Tensorflow backend. Thanks.
from keras2cpp.
Hey, from what I remember the code was working with Theano backend. So to use it with TensorFlow you need to provide your own code for transformation (it should be a matter of change in dimension order, so it should be very similar to current code). Sorry that it is not working out of the box.
Please check the following discussion https://stackoverflow.com/questions/36720498/convert-keras-model-to-c to find more similar solutions.
from keras2cpp.
Related Issues (20)
- Support for keras2 HOT 6
- does it support 'Model' model ? HOT 2
- how can I use colored images inputs? HOT 2
- How to port Keras neural network model into C# ? HOT 1
- Looking for a way to receive MSCOCO's Architecture JSON File HOT 1
- When the top layer must be excluded in Keras...
- Running Environment Setting for the Code
- LSTM to CPP, who has good method? HOT 3
- terminate called after throwing an instance of 'std::bad_alloc' HOT 3
- Compatible for python3 and new keras HOT 3
- Right Keras and Tensorflow version? HOT 3
- simpler c++ code HOT 1
- newbie asking
- Conv1D layer support HOT 1
- Cant verify results
- custom model architecture HOT 1
- TypeError: ('Keyword argument not understood:', 'border_mode') HOT 2
- Skip dropout rate error HOT 4
- issue while testing the test_run.sh file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keras2cpp.