Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Converting mxnet checkpoint to Tensorflow model #4882

Open
cheshirecats opened this issue Feb 4, 2017 · 8 comments
Open

Converting mxnet checkpoint to Tensorflow model #4882

cheshirecats opened this issue Feb 4, 2017 · 8 comments

Comments

@cheshirecats
Copy link

Currently the best method to run CNN in browser might be Keras.js (with Tensorflow backend):

https://github.com/transcranial/keras-js

On the other hand, mxnet is probably the fastest in training models.

So I wonder if there's any tools for converting trained mxnet checkpoints (.json & .params) to Tensorflow models. Thanks.

@zihaolucky
Copy link
Member

Is the tool backend relevant? Or it just rely on Keras, which means it uses the Keras output, the graph definition and params. If so, https://github.com/dmlc/keras might do the trick.

@cheshirecats
Copy link
Author

Hi. It just needs the model to be loadable in Keras, and then it can be exported & converted for Keras.js to use (as in Keras.js README).

Regarding https://github.com/dmlc/keras , is it a project to use mxnet as a backend for Keras? Thanks.

@zihaolucky
Copy link
Member

Yes, but I haven't participate in this project. @piiswrong

@cheshirecats
Copy link
Author

@zihaolucky Hi it seems Keras.js requires the model to be a Keras model, so that it be exported using save_weights and to_json, as written in https://github.com/transcranial/keras-js .

Therefore other models need to be converted to Keras models first. It would be great if such a tool can be offered.

@yajiedesign
Copy link
Contributor

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!

@entropymaster
Copy link

I am looking to do the same. Did someone find a way out for this?

@yajiedesign yajiedesign reopened this Oct 14, 2017
@szha
Copy link
Member

szha commented Jan 14, 2018

@apache/mxnet-committers: This issue has been inactive for the past 90 days. It has no label and needs triage.

For general "how-to" questions, our user forum (and Chinese version) is a good place to get help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants