Comments (4)
Hi @pacospace, thank you for raising this to our attention. We'll work on the migration of the ONNX export flows for Keras since that is now deprecated along with the docs. I'll update here once that migration is complete. In the interim, our current Keras export flows are tested with the older versions, so if you're willing to downgrade those should continue to work for you.
Thanks,
Mark
Hi @markurtz, happy to contribute to it. I actually switched to Pytorch where everything works perfectly and managed to deploy a pruned Neural Magic model with deepsparse!
from sparseml.
The cause seems to be the package itself that you suggest to install, that works only with certain version of tf and onnx. Docs should be updated to use https://github.com/onnx/tensorflow-onnx.
from https://github.com/onnx/keras-onnx
We stopped active development of keras2onnx and keras2onnx is now frozen to tf-2.3 and onnx-1.10.
To convert your Keras models you can head over to tf2onnx which can convert Tensorflow, Keras, Tflite and Tensorflow.js models. All keras2onnx unit tests have been added to the tf2onnx ci pipeline to make sure there are no avoidable regressions.
from sparseml.
Hi @pacospace, thank you for raising this to our attention. We'll work on the migration of the ONNX export flows for Keras since that is now deprecated along with the docs. I'll update here once that migration is complete. In the interim, our current Keras export flows are tested with the older versions, so if you're willing to downgrade those should continue to work for you.
Thanks,
Mark
from sparseml.
Closing this issue now. @pacospace great to hear - the keras export migration ended up not landing as keras fell off the roadmap, but happy to take a look at any contributions if you still have them handy.
from sparseml.
Related Issues (20)
- My own model HOT 1
- PyTorch 2.1.0 and Lightning 2.1.0 Support: AssertionError on `assert self._strategy is not None` HOT 13
- Question on quantization size HOT 2
- Add ScheduledModifierManager.from_str HOT 1
- Adding a `.pre-commit-config.yaml` file for maintaining consistent style and code quality. HOT 3
- Oriented Bounding Box support HOT 1
- Sparse ML not working for Transformers HOT 3
- Models with loops in their graph can't be converted to DeepSparse after QAT HOT 4
- RecursionError when converting LlaMa model to ONNX HOT 6
- Error converting mistral to onnx HOT 13
- SparseML/YOLOv5s - ValueError: Unable to find any modifiers in given recipe. HOT 1
- Feature Request: Oriented Bounding Box Sparsification for YOLOv5/YOLOv8 on Custom Models/Datasets HOT 1
- [Roadmap] SparseML Roadmap Q1 2024 HOT 1
- Regarding the execution speed and model size after Sparsifying ResNet-50 HOT 2
- Class Index change observed when validating a yolov5 pruned sparseml model HOT 2
- yolov5 sparse fine tuning error HOT 2
- [Roadmap] SparseML Roadmap Q2 2024
- Does Sparseml support Integer-Arithmetic-Only Inference? HOT 1
- recipe.yaml not found HOT 3
- Missing key(s) in state_dict: "model.0.conv.quant.activation_post_process.scale" HOT 2
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 sparseml.