Comments (4)
Hi @vixadd, thank you for raising this issue. Could you point us towards a specific open-sourced model or implementation we could look at further? Additionally, what was the method you used for conversion to ONNX? We can then go through and verify the issue from our side to work on a specific fix for this issue.
Thanks,
Mark
from sparseml.
Hi @markurtz
- Thank you for the reply. Unfortunately, the implementation of the model itself is something I cannot share, however, I can share a general overview of what it is/does.
- I use tf2onnx to convert the keras model to an onnx model in my build.
- The model takes multiple Conv 2D layers and pulls in MaxPooling2D to downsample.
- I've indexed each of the conv2d layers. You can see a 3_1 after the identifier. For some reason sparseml is not pulling the other layers, it keeps trying to re-calculate index 3_1 in the list of Convolutions that take place.
from sparseml.
Since this has gone a little stale, I'll put up an example, and just leave it at that.
import tensorflow.keras as tfk
def build_encoder():
layers = []
for l in rang(0, 10):
layer = []
for b in range(0, 5):
layer.append( tfk.layers.Conv2D(16, 8, 64, use_bias=False, name=f"encoder/conv2d_{l}_{b}" )
layers += [layer]
Building something like that into your model will cause this error.
from sparseml.
Hi @vixadd, thank you for putting up that pull request! The code has been merged in now and will be going out with our 0.8 release. It will be available on nightly starting tonight, so I'm going to close this out for now. If any issues come up feel free to reopen.
Thanks,
Mark
from sparseml.
Related Issues (20)
- 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
- Performance Degradation in YOLOv8s Model Exported to ONNX via SparseML's Exporter HOT 2
- How to export a GPTQ model to ONNX to run in DeepSparse 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.