Comments (6)
Hi, @smidm
I apologize for the delayed response and as far I know the TensorFlow.js converter currently does not support converting Keras models saved in the new format .keras
. it's still relatively new and hasn't been fully integrated with the TensorFlow.js converter yet so I completely agree with you in my view, tensorflowjs_converter
should provide a user-friendly error message explicitly stating its lack of support for the .keras
format. An informative message such as " .keras
file format is not currently supported by tensorflowjs_converter. Please refer to the documentation for supported formats" would enhance the user experience by offering clear guidance.
Meanwhile, as an alternative approach, could you explore exporting the model directly to TensorFlow.js Layers format using the Python API? This would allow us to compare the weights of the original Python model and the converted model. I'll discuss this issue within our internal meeting and will update you soon. thank you for bringing this issue to our attention, I really appreciate your efforts and valuable time.
# Python
import tensorflowjs as tfjs
def train(...):
model = keras.models.Sequential() # for example
...
model.compile(...)
model.fit(...)
tfjs.converters.save_keras_model(model, tfjs_target_dir)
Thank you for your cooperation and patience.
from tfjs.
Thanks for the alternative approach. I have already figured out, before submitting the issue, but it took some time. IMO the tensorflowjs_converter
should check if inputs are valid and throw an error if not. It'll save a lot of pain. I had similar problem in #8265.
from tfjs.
Hi, @smidm
Thank you for your suggestion regarding to add a link https://github.com/tensorflow/tfjs/tree/master/tfjs-converter to tensorflowjs_converter --help
. I appreciate you bringing this to our attention.
I will be sure to share your feedback during our next internal meeting. The team will discuss it and take appropriate action if necessary.
If your issue has been resolved, please feel free to close this issue.
Thank you for your cooperation and patience.
from tfjs.
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.
from tfjs.
This issue was closed due to lack of activity after being marked stale for past 7 days.
from tfjs.
Are you satisfied with the resolution of your issue?
Yes
No
from tfjs.
Related Issues (20)
- WebGPU Compute shader execution? HOT 1
- Accuracy issue HOT 4
- TypeError: Cannot read property 'NativeModule' of undefined, js engine: hermes HOT 6
- DQN not learning HOT 4
- Overfitting in DRL HOT 4
- nonMaxSuppressionAsync extremely slow HOT 5
- Provided weight data has no target variable: sequential/conv2d/kernel HOT 6
- The argument numTokens will impact inputLayer's output shape HOT 1
- Unable to import tfjs-node-gpu possibly due to binding.gyp not found HOT 6
- Image channel size is lost after resizing layer. HOT 6
- Input layer's input shape is changed by tf.layers.centerCrop height and width argument. HOT 2
- Memory leak and crash, now and 2 years ago, tfjs-node HOT 8
- Issue running python's tensorflowjs_converter HOT 7
- tfjs.converters.save_keras_model producing model.json file that does not parse properly. HOT 8
- Inaccurate Shoulder Width and Height Measurements on iOS using React Native and Expo HOT 4
- drawBokehEffect less blurred on safari HOT 5
- Could you please extend the tf.loadGraphModel that can load parsed JSON data ? HOT 3
- loadGraphModel very slow on android
- How to save the model `@tensorflow-models/pose-detection` locally for offline use? HOT 3
- Error: Kernel 'RotateWithOffset' not registered for backend 'tensorflow' HOT 4
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 tfjs.